From ad95c292c62f752d7633b0c948caa2ab3f766aaa Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 16 Oct 2026 10:00:46 +0000 Subject: [PATCH 1/3] Generate stackitmarketplace --- .../stackitmarketplace/v1api/api_default.go | 2436 +++++++++++++++++ .../v1api/api_default_mock.go | 287 ++ services/stackitmarketplace/v1api/client.go | 668 +++++ .../stackitmarketplace/v1api/configuration.go | 38 + .../model_approve_subscription_payload.go | 155 ++ ..._consumers_subscriptions_create_payload.go | 236 ++ .../v1api/model_error_response.go | 289 ++ ...odel_marketplace_subscription_v1_assets.go | 265 ++ .../model_marketplace_subscription_v1_file.go | 154 ++ ..._subscription_v1_file_localized_version.go | 193 ++ ...cription_v1_list_subscriptions_response.go | 228 ++ ...arketplace_subscription_v1_subscription.go | 507 ++++ ...ription_v1_subscription_lifecycle_state.go | 126 + ...ce_subscription_v1_subscription_product.go | 608 ++++ ...v1_subscription_product_delivery_method.go | 118 + ...v1_subscription_product_lifecycle_state.go | 116 + ...tion_v1_subscription_product_price_type.go | 120 + ...e_subscription_v1_subscription_redirect.go | 196 ++ .../v1api/model_resolve_customer_payload.go | 168 ++ services/stackitmarketplace/v1api/response.go | 48 + services/stackitmarketplace/v1api/utils.go | 362 +++ 21 files changed, 7318 insertions(+) create mode 100644 services/stackitmarketplace/v1api/api_default.go create mode 100644 services/stackitmarketplace/v1api/api_default_mock.go create mode 100644 services/stackitmarketplace/v1api/client.go create mode 100644 services/stackitmarketplace/v1api/configuration.go create mode 100644 services/stackitmarketplace/v1api/model_approve_subscription_payload.go create mode 100644 services/stackitmarketplace/v1api/model_consumers_subscriptions_create_payload.go create mode 100644 services/stackitmarketplace/v1api/model_error_response.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_assets.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file_localized_version.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_list_subscriptions_response.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_lifecycle_state.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_delivery_method.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_lifecycle_state.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_price_type.go create mode 100644 services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_redirect.go create mode 100644 services/stackitmarketplace/v1api/model_resolve_customer_payload.go create mode 100644 services/stackitmarketplace/v1api/response.go create mode 100644 services/stackitmarketplace/v1api/utils.go diff --git a/services/stackitmarketplace/v1api/api_default.go b/services/stackitmarketplace/v1api/api_default.go new file mode 100644 index 0000000000..b47940c070 --- /dev/null +++ b/services/stackitmarketplace/v1api/api_default.go @@ -0,0 +1,2436 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/stackitcloud/stackit-sdk-go/core/config" + "github.com/stackitcloud/stackit-sdk-go/core/oapierror" +) + +type DefaultAPI interface { + + /* + ApproveSubscription Approve a pending subscription. + + Approve a pending subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiApproveSubscriptionRequest + */ + ApproveSubscription(ctx context.Context, projectId string, subscriptionId string) ApiApproveSubscriptionRequest + + // ApproveSubscriptionExecute executes the request + ApproveSubscriptionExecute(r ApiApproveSubscriptionRequest) error + + /* + ConsumersSubscriptionsCancel Cancel a subscription. + + Cancel a subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsCancelRequest + */ + ConsumersSubscriptionsCancel(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsCancelRequest + + // ConsumersSubscriptionsCancelExecute executes the request + ConsumersSubscriptionsCancelExecute(r ApiConsumersSubscriptionsCancelRequest) error + + /* + ConsumersSubscriptionsCreate Create a new subscription. + + Create a new subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiConsumersSubscriptionsCreateRequest + */ + ConsumersSubscriptionsCreate(ctx context.Context, projectId string) ApiConsumersSubscriptionsCreateRequest + + // ConsumersSubscriptionsCreateExecute executes the request + // @return MarketplaceSubscriptionV1Subscription + ConsumersSubscriptionsCreateExecute(r ApiConsumersSubscriptionsCreateRequest) (*MarketplaceSubscriptionV1Subscription, error) + + /* + ConsumersSubscriptionsGet Get a subscription. + + Get a subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsGetRequest + */ + ConsumersSubscriptionsGet(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsGetRequest + + // ConsumersSubscriptionsGetExecute executes the request + // @return MarketplaceSubscriptionV1Subscription + ConsumersSubscriptionsGetExecute(r ApiConsumersSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) + + /* + ConsumersSubscriptionsListByOrganization List all subscriptions of an organization. + + List all subscriptions of an organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId + @return ApiConsumersSubscriptionsListByOrganizationRequest + */ + ConsumersSubscriptionsListByOrganization(ctx context.Context, organizationId string) ApiConsumersSubscriptionsListByOrganizationRequest + + // ConsumersSubscriptionsListByOrganizationExecute executes the request + // @return MarketplaceSubscriptionV1ListSubscriptionsResponse + ConsumersSubscriptionsListByOrganizationExecute(r ApiConsumersSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + + /* + ConsumersSubscriptionsListByProject List all subscriptions of an project. + + List all subscriptions of an project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiConsumersSubscriptionsListByProjectRequest + */ + ConsumersSubscriptionsListByProject(ctx context.Context, projectId string) ApiConsumersSubscriptionsListByProjectRequest + + // ConsumersSubscriptionsListByProjectExecute executes the request + // @return MarketplaceSubscriptionV1ListSubscriptionsResponse + ConsumersSubscriptionsListByProjectExecute(r ApiConsumersSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + + /* + ConsumersSubscriptionsRedirectsGet Get a subscription redirect. + + Get a subscription redirect. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsRedirectsGetRequest + */ + ConsumersSubscriptionsRedirectsGet(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsRedirectsGetRequest + + // ConsumersSubscriptionsRedirectsGetExecute executes the request + // @return MarketplaceSubscriptionV1SubscriptionRedirect + ConsumersSubscriptionsRedirectsGetExecute(r ApiConsumersSubscriptionsRedirectsGetRequest) (*MarketplaceSubscriptionV1SubscriptionRedirect, error) + + /* + ConsumersSubscriptionsTerminate Terminates a consumer subscription early. + + Terminates a consumer subscription early. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsTerminateRequest + */ + ConsumersSubscriptionsTerminate(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsTerminateRequest + + // ConsumersSubscriptionsTerminateExecute executes the request + ConsumersSubscriptionsTerminateExecute(r ApiConsumersSubscriptionsTerminateRequest) error + + /* + ResolveCustomer Resolve customer. + + Resolve customer. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiResolveCustomerRequest + */ + ResolveCustomer(ctx context.Context, projectId string) ApiResolveCustomerRequest + + // ResolveCustomerExecute executes the request + // @return MarketplaceSubscriptionV1Subscription + ResolveCustomerExecute(r ApiResolveCustomerRequest) (*MarketplaceSubscriptionV1Subscription, error) + + /* + VendorsSubscriptionsGet Get a subscription. + + Get a subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiVendorsSubscriptionsGetRequest + */ + VendorsSubscriptionsGet(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsGetRequest + + // VendorsSubscriptionsGetExecute executes the request + // @return MarketplaceSubscriptionV1Subscription + VendorsSubscriptionsGetExecute(r ApiVendorsSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) + + /* + VendorsSubscriptionsListByOrganization List all subscriptions of an organization. + + List all subscriptions of an organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId + @return ApiVendorsSubscriptionsListByOrganizationRequest + */ + VendorsSubscriptionsListByOrganization(ctx context.Context, organizationId string) ApiVendorsSubscriptionsListByOrganizationRequest + + // VendorsSubscriptionsListByOrganizationExecute executes the request + // @return MarketplaceSubscriptionV1ListSubscriptionsResponse + VendorsSubscriptionsListByOrganizationExecute(r ApiVendorsSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + + /* + VendorsSubscriptionsListByProject List all subscriptions of an project. + + List all subscriptions of an project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiVendorsSubscriptionsListByProjectRequest + */ + VendorsSubscriptionsListByProject(ctx context.Context, projectId string) ApiVendorsSubscriptionsListByProjectRequest + + // VendorsSubscriptionsListByProjectExecute executes the request + // @return MarketplaceSubscriptionV1ListSubscriptionsResponse + VendorsSubscriptionsListByProjectExecute(r ApiVendorsSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + + /* + VendorsSubscriptionsReject Reject a subscription. + + Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiVendorsSubscriptionsRejectRequest + */ + VendorsSubscriptionsReject(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsRejectRequest + + // VendorsSubscriptionsRejectExecute executes the request + VendorsSubscriptionsRejectExecute(r ApiVendorsSubscriptionsRejectRequest) error +} + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiApproveSubscriptionRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string + approveSubscriptionPayload *ApproveSubscriptionPayload +} + +func (r ApiApproveSubscriptionRequest) ApproveSubscriptionPayload(approveSubscriptionPayload ApproveSubscriptionPayload) ApiApproveSubscriptionRequest { + r.approveSubscriptionPayload = &approveSubscriptionPayload + return r +} + +func (r ApiApproveSubscriptionRequest) Execute() error { + return r.ApiService.ApproveSubscriptionExecute(r) +} + +/* +ApproveSubscription Approve a pending subscription. + +Approve a pending subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiApproveSubscriptionRequest +*/ +func (a *DefaultAPIService) ApproveSubscription(ctx context.Context, projectId string, subscriptionId string) ApiApproveSubscriptionRequest { + return ApiApproveSubscriptionRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ApproveSubscriptionExecute(r ApiApproveSubscriptionRequest) error { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApproveSubscription") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.approveSubscriptionPayload == nil { + return reportError("approveSubscriptionPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.approveSubscriptionPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return newErr + } + + return nil +} + +type ApiConsumersSubscriptionsCancelRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string +} + +func (r ApiConsumersSubscriptionsCancelRequest) Execute() error { + return r.ApiService.ConsumersSubscriptionsCancelExecute(r) +} + +/* +ConsumersSubscriptionsCancel Cancel a subscription. + +Cancel a subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsCancelRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsCancel(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsCancelRequest { + return ApiConsumersSubscriptionsCancelRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ConsumersSubscriptionsCancelExecute(r ApiConsumersSubscriptionsCancelRequest) error { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsCancel") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return newErr + } + + return nil +} + +type ApiConsumersSubscriptionsCreateRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + consumersSubscriptionsCreatePayload *ConsumersSubscriptionsCreatePayload +} + +func (r ApiConsumersSubscriptionsCreateRequest) ConsumersSubscriptionsCreatePayload(consumersSubscriptionsCreatePayload ConsumersSubscriptionsCreatePayload) ApiConsumersSubscriptionsCreateRequest { + r.consumersSubscriptionsCreatePayload = &consumersSubscriptionsCreatePayload + return r +} + +func (r ApiConsumersSubscriptionsCreateRequest) Execute() (*MarketplaceSubscriptionV1Subscription, error) { + return r.ApiService.ConsumersSubscriptionsCreateExecute(r) +} + +/* +ConsumersSubscriptionsCreate Create a new subscription. + +Create a new subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiConsumersSubscriptionsCreateRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsCreate(ctx context.Context, projectId string) ApiConsumersSubscriptionsCreateRequest { + return ApiConsumersSubscriptionsCreateRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1Subscription +func (a *DefaultAPIService) ConsumersSubscriptionsCreateExecute(r ApiConsumersSubscriptionsCreateRequest) (*MarketplaceSubscriptionV1Subscription, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsCreate") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/projects/{projectId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.consumersSubscriptionsCreatePayload == nil { + return localVarReturnValue, reportError("consumersSubscriptionsCreatePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.consumersSubscriptionsCreatePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiConsumersSubscriptionsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string + includeExpired *bool +} + +// Flag to control if cancelled or rejected subscriptions should be returned. +func (r ApiConsumersSubscriptionsGetRequest) IncludeExpired(includeExpired bool) ApiConsumersSubscriptionsGetRequest { + r.includeExpired = &includeExpired + return r +} + +func (r ApiConsumersSubscriptionsGetRequest) Execute() (*MarketplaceSubscriptionV1Subscription, error) { + return r.ApiService.ConsumersSubscriptionsGetExecute(r) +} + +/* +ConsumersSubscriptionsGet Get a subscription. + +Get a subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsGetRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsGet(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsGetRequest { + return ApiConsumersSubscriptionsGetRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1Subscription +func (a *DefaultAPIService) ConsumersSubscriptionsGetExecute(r ApiConsumersSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsGet") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeExpired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", r.includeExpired, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", defaultValue, "form", "") + r.includeExpired = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiConsumersSubscriptionsListByOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + organizationId string + cursor *string + limit *int32 + productId *string + includeExpired *bool +} + +func (r ApiConsumersSubscriptionsListByOrganizationRequest) Cursor(cursor string) ApiConsumersSubscriptionsListByOrganizationRequest { + r.cursor = &cursor + return r +} + +func (r ApiConsumersSubscriptionsListByOrganizationRequest) Limit(limit int32) ApiConsumersSubscriptionsListByOrganizationRequest { + r.limit = &limit + return r +} + +func (r ApiConsumersSubscriptionsListByOrganizationRequest) ProductId(productId string) ApiConsumersSubscriptionsListByOrganizationRequest { + r.productId = &productId + return r +} + +// Flag to control if cancelled or rejected subscriptions should be returned. +func (r ApiConsumersSubscriptionsListByOrganizationRequest) IncludeExpired(includeExpired bool) ApiConsumersSubscriptionsListByOrganizationRequest { + r.includeExpired = &includeExpired + return r +} + +func (r ApiConsumersSubscriptionsListByOrganizationRequest) Execute() (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + return r.ApiService.ConsumersSubscriptionsListByOrganizationExecute(r) +} + +/* +ConsumersSubscriptionsListByOrganization List all subscriptions of an organization. + +List all subscriptions of an organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId + @return ApiConsumersSubscriptionsListByOrganizationRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsListByOrganization(ctx context.Context, organizationId string) ApiConsumersSubscriptionsListByOrganizationRequest { + return ApiConsumersSubscriptionsListByOrganizationRequest{ + ApiService: a, + ctx: ctx, + organizationId: organizationId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1ListSubscriptionsResponse +func (a *DefaultAPIService) ConsumersSubscriptionsListByOrganizationExecute(r ApiConsumersSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsListByOrganization") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/organizations/{organizationId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.productId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "productId", r.productId, "form", "") + } + if r.includeExpired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", r.includeExpired, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", defaultValue, "form", "") + r.includeExpired = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiConsumersSubscriptionsListByProjectRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + cursor *string + limit *int32 + productId *string + includeExpired *bool +} + +func (r ApiConsumersSubscriptionsListByProjectRequest) Cursor(cursor string) ApiConsumersSubscriptionsListByProjectRequest { + r.cursor = &cursor + return r +} + +func (r ApiConsumersSubscriptionsListByProjectRequest) Limit(limit int32) ApiConsumersSubscriptionsListByProjectRequest { + r.limit = &limit + return r +} + +func (r ApiConsumersSubscriptionsListByProjectRequest) ProductId(productId string) ApiConsumersSubscriptionsListByProjectRequest { + r.productId = &productId + return r +} + +// Flag to control if cancelled or rejected subscriptions should be returned. +func (r ApiConsumersSubscriptionsListByProjectRequest) IncludeExpired(includeExpired bool) ApiConsumersSubscriptionsListByProjectRequest { + r.includeExpired = &includeExpired + return r +} + +func (r ApiConsumersSubscriptionsListByProjectRequest) Execute() (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + return r.ApiService.ConsumersSubscriptionsListByProjectExecute(r) +} + +/* +ConsumersSubscriptionsListByProject List all subscriptions of an project. + +List all subscriptions of an project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiConsumersSubscriptionsListByProjectRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsListByProject(ctx context.Context, projectId string) ApiConsumersSubscriptionsListByProjectRequest { + return ApiConsumersSubscriptionsListByProjectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1ListSubscriptionsResponse +func (a *DefaultAPIService) ConsumersSubscriptionsListByProjectExecute(r ApiConsumersSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsListByProject") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/projects/{projectId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.productId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "productId", r.productId, "form", "") + } + if r.includeExpired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", r.includeExpired, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", defaultValue, "form", "") + r.includeExpired = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiConsumersSubscriptionsRedirectsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string + redirectTarget *string +} + +func (r ApiConsumersSubscriptionsRedirectsGetRequest) RedirectTarget(redirectTarget string) ApiConsumersSubscriptionsRedirectsGetRequest { + r.redirectTarget = &redirectTarget + return r +} + +func (r ApiConsumersSubscriptionsRedirectsGetRequest) Execute() (*MarketplaceSubscriptionV1SubscriptionRedirect, error) { + return r.ApiService.ConsumersSubscriptionsRedirectsGetExecute(r) +} + +/* +ConsumersSubscriptionsRedirectsGet Get a subscription redirect. + +Get a subscription redirect. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsRedirectsGetRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsRedirectsGet(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsRedirectsGetRequest { + return ApiConsumersSubscriptionsRedirectsGetRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1SubscriptionRedirect +func (a *DefaultAPIService) ConsumersSubscriptionsRedirectsGetExecute(r ApiConsumersSubscriptionsRedirectsGetRequest) (*MarketplaceSubscriptionV1SubscriptionRedirect, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1SubscriptionRedirect + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsRedirectsGet") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/redirects" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.redirectTarget != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "redirectTarget", r.redirectTarget, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiConsumersSubscriptionsTerminateRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string +} + +func (r ApiConsumersSubscriptionsTerminateRequest) Execute() error { + return r.ApiService.ConsumersSubscriptionsTerminateExecute(r) +} + +/* +ConsumersSubscriptionsTerminate Terminates a consumer subscription early. + +Terminates a consumer subscription early. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiConsumersSubscriptionsTerminateRequest +*/ +func (a *DefaultAPIService) ConsumersSubscriptionsTerminate(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsTerminateRequest { + return ApiConsumersSubscriptionsTerminateRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ConsumersSubscriptionsTerminateExecute(r ApiConsumersSubscriptionsTerminateRequest) error { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ConsumersSubscriptionsTerminate") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/consumers/projects/{projectId}/subscriptions/{subscriptionId}/terminate" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return newErr + } + + return nil +} + +type ApiResolveCustomerRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + resolveCustomerPayload *ResolveCustomerPayload +} + +func (r ApiResolveCustomerRequest) ResolveCustomerPayload(resolveCustomerPayload ResolveCustomerPayload) ApiResolveCustomerRequest { + r.resolveCustomerPayload = &resolveCustomerPayload + return r +} + +func (r ApiResolveCustomerRequest) Execute() (*MarketplaceSubscriptionV1Subscription, error) { + return r.ApiService.ResolveCustomerExecute(r) +} + +/* +ResolveCustomer Resolve customer. + +Resolve customer. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiResolveCustomerRequest +*/ +func (a *DefaultAPIService) ResolveCustomer(ctx context.Context, projectId string) ApiResolveCustomerRequest { + return ApiResolveCustomerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1Subscription +func (a *DefaultAPIService) ResolveCustomerExecute(r ApiResolveCustomerRequest) (*MarketplaceSubscriptionV1Subscription, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResolveCustomer") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/vendors/projects/{projectId}/resolve-customer" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.resolveCustomerPayload == nil { + return localVarReturnValue, reportError("resolveCustomerPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.resolveCustomerPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiVendorsSubscriptionsGetRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string + includeExpired *bool +} + +// Flag to control if cancelled or rejected subscriptions should be returned. +func (r ApiVendorsSubscriptionsGetRequest) IncludeExpired(includeExpired bool) ApiVendorsSubscriptionsGetRequest { + r.includeExpired = &includeExpired + return r +} + +func (r ApiVendorsSubscriptionsGetRequest) Execute() (*MarketplaceSubscriptionV1Subscription, error) { + return r.ApiService.VendorsSubscriptionsGetExecute(r) +} + +/* +VendorsSubscriptionsGet Get a subscription. + +Get a subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiVendorsSubscriptionsGetRequest +*/ +func (a *DefaultAPIService) VendorsSubscriptionsGet(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsGetRequest { + return ApiVendorsSubscriptionsGetRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1Subscription +func (a *DefaultAPIService) VendorsSubscriptionsGetExecute(r ApiVendorsSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.VendorsSubscriptionsGet") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeExpired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", r.includeExpired, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", defaultValue, "form", "") + r.includeExpired = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiVendorsSubscriptionsListByOrganizationRequest struct { + ctx context.Context + ApiService DefaultAPI + organizationId string + cursor *string + limit *int32 + productId *string + includeExpired *bool +} + +func (r ApiVendorsSubscriptionsListByOrganizationRequest) Cursor(cursor string) ApiVendorsSubscriptionsListByOrganizationRequest { + r.cursor = &cursor + return r +} + +func (r ApiVendorsSubscriptionsListByOrganizationRequest) Limit(limit int32) ApiVendorsSubscriptionsListByOrganizationRequest { + r.limit = &limit + return r +} + +func (r ApiVendorsSubscriptionsListByOrganizationRequest) ProductId(productId string) ApiVendorsSubscriptionsListByOrganizationRequest { + r.productId = &productId + return r +} + +// Flag to control if cancelled or rejected subscriptions should be returned. +func (r ApiVendorsSubscriptionsListByOrganizationRequest) IncludeExpired(includeExpired bool) ApiVendorsSubscriptionsListByOrganizationRequest { + r.includeExpired = &includeExpired + return r +} + +func (r ApiVendorsSubscriptionsListByOrganizationRequest) Execute() (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + return r.ApiService.VendorsSubscriptionsListByOrganizationExecute(r) +} + +/* +VendorsSubscriptionsListByOrganization List all subscriptions of an organization. + +List all subscriptions of an organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationId + @return ApiVendorsSubscriptionsListByOrganizationRequest +*/ +func (a *DefaultAPIService) VendorsSubscriptionsListByOrganization(ctx context.Context, organizationId string) ApiVendorsSubscriptionsListByOrganizationRequest { + return ApiVendorsSubscriptionsListByOrganizationRequest{ + ApiService: a, + ctx: ctx, + organizationId: organizationId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1ListSubscriptionsResponse +func (a *DefaultAPIService) VendorsSubscriptionsListByOrganizationExecute(r ApiVendorsSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.VendorsSubscriptionsListByOrganization") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/vendors/organizations/{organizationId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"organizationId"+"}", url.PathEscape(parameterValueToString(r.organizationId, "organizationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.productId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "productId", r.productId, "form", "") + } + if r.includeExpired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", r.includeExpired, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", defaultValue, "form", "") + r.includeExpired = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiVendorsSubscriptionsListByProjectRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + cursor *string + limit *int32 + productId *string + includeExpired *bool +} + +func (r ApiVendorsSubscriptionsListByProjectRequest) Cursor(cursor string) ApiVendorsSubscriptionsListByProjectRequest { + r.cursor = &cursor + return r +} + +func (r ApiVendorsSubscriptionsListByProjectRequest) Limit(limit int32) ApiVendorsSubscriptionsListByProjectRequest { + r.limit = &limit + return r +} + +func (r ApiVendorsSubscriptionsListByProjectRequest) ProductId(productId string) ApiVendorsSubscriptionsListByProjectRequest { + r.productId = &productId + return r +} + +// Flag to control if cancelled or rejected subscriptions should be returned. +func (r ApiVendorsSubscriptionsListByProjectRequest) IncludeExpired(includeExpired bool) ApiVendorsSubscriptionsListByProjectRequest { + r.includeExpired = &includeExpired + return r +} + +func (r ApiVendorsSubscriptionsListByProjectRequest) Execute() (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + return r.ApiService.VendorsSubscriptionsListByProjectExecute(r) +} + +/* +VendorsSubscriptionsListByProject List all subscriptions of an project. + +List all subscriptions of an project. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiVendorsSubscriptionsListByProjectRequest +*/ +func (a *DefaultAPIService) VendorsSubscriptionsListByProject(ctx context.Context, projectId string) ApiVendorsSubscriptionsListByProjectRequest { + return ApiVendorsSubscriptionsListByProjectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return MarketplaceSubscriptionV1ListSubscriptionsResponse +func (a *DefaultAPIService) VendorsSubscriptionsListByProjectExecute(r ApiVendorsSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.VendorsSubscriptionsListByProject") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/vendors/projects/{projectId}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.productId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "productId", r.productId, "form", "") + } + if r.includeExpired != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", r.includeExpired, "form", "") + } else { + var defaultValue bool = false + parameterAddToHeaderOrQuery(localVarQueryParams, "includeExpired", defaultValue, "form", "") + r.includeExpired = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiVendorsSubscriptionsRejectRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + subscriptionId string +} + +func (r ApiVendorsSubscriptionsRejectRequest) Execute() error { + return r.ApiService.VendorsSubscriptionsRejectExecute(r) +} + +/* +VendorsSubscriptionsReject Reject a subscription. + +Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param subscriptionId + @return ApiVendorsSubscriptionsRejectRequest +*/ +func (a *DefaultAPIService) VendorsSubscriptionsReject(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsRejectRequest { + return ApiVendorsSubscriptionsRejectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) VendorsSubscriptionsRejectExecute(r ApiVendorsSubscriptionsRejectRequest) error { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.VendorsSubscriptionsReject") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return newErr + } + + return nil +} diff --git a/services/stackitmarketplace/v1api/api_default_mock.go b/services/stackitmarketplace/v1api/api_default_mock.go new file mode 100644 index 0000000000..4dac713abc --- /dev/null +++ b/services/stackitmarketplace/v1api/api_default_mock.go @@ -0,0 +1,287 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "context" +) + +// assert the implementation matches the interface +var _ DefaultAPI = &DefaultAPIServiceMock{} + +// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. +// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. +type DefaultAPIServiceMock struct { + // ApproveSubscriptionExecuteMock can be populated to implement the behavior of the ApproveSubscriptionExecute function of this mock + ApproveSubscriptionExecuteMock *func(r ApiApproveSubscriptionRequest) error + // ConsumersSubscriptionsCancelExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsCancelExecute function of this mock + ConsumersSubscriptionsCancelExecuteMock *func(r ApiConsumersSubscriptionsCancelRequest) error + // ConsumersSubscriptionsCreateExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsCreateExecute function of this mock + ConsumersSubscriptionsCreateExecuteMock *func(r ApiConsumersSubscriptionsCreateRequest) (*MarketplaceSubscriptionV1Subscription, error) + // ConsumersSubscriptionsGetExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsGetExecute function of this mock + ConsumersSubscriptionsGetExecuteMock *func(r ApiConsumersSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) + // ConsumersSubscriptionsListByOrganizationExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsListByOrganizationExecute function of this mock + ConsumersSubscriptionsListByOrganizationExecuteMock *func(r ApiConsumersSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + // ConsumersSubscriptionsListByProjectExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsListByProjectExecute function of this mock + ConsumersSubscriptionsListByProjectExecuteMock *func(r ApiConsumersSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + // ConsumersSubscriptionsRedirectsGetExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsRedirectsGetExecute function of this mock + ConsumersSubscriptionsRedirectsGetExecuteMock *func(r ApiConsumersSubscriptionsRedirectsGetRequest) (*MarketplaceSubscriptionV1SubscriptionRedirect, error) + // ConsumersSubscriptionsTerminateExecuteMock can be populated to implement the behavior of the ConsumersSubscriptionsTerminateExecute function of this mock + ConsumersSubscriptionsTerminateExecuteMock *func(r ApiConsumersSubscriptionsTerminateRequest) error + // ResolveCustomerExecuteMock can be populated to implement the behavior of the ResolveCustomerExecute function of this mock + ResolveCustomerExecuteMock *func(r ApiResolveCustomerRequest) (*MarketplaceSubscriptionV1Subscription, error) + // VendorsSubscriptionsGetExecuteMock can be populated to implement the behavior of the VendorsSubscriptionsGetExecute function of this mock + VendorsSubscriptionsGetExecuteMock *func(r ApiVendorsSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) + // VendorsSubscriptionsListByOrganizationExecuteMock can be populated to implement the behavior of the VendorsSubscriptionsListByOrganizationExecute function of this mock + VendorsSubscriptionsListByOrganizationExecuteMock *func(r ApiVendorsSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + // VendorsSubscriptionsListByProjectExecuteMock can be populated to implement the behavior of the VendorsSubscriptionsListByProjectExecute function of this mock + VendorsSubscriptionsListByProjectExecuteMock *func(r ApiVendorsSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) + // VendorsSubscriptionsRejectExecuteMock can be populated to implement the behavior of the VendorsSubscriptionsRejectExecute function of this mock + VendorsSubscriptionsRejectExecuteMock *func(r ApiVendorsSubscriptionsRejectRequest) error +} + +func (a DefaultAPIServiceMock) ApproveSubscription(ctx context.Context, projectId string, subscriptionId string) ApiApproveSubscriptionRequest { + return ApiApproveSubscriptionRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// ApproveSubscriptionExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ApproveSubscriptionExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ApproveSubscriptionExecute(r ApiApproveSubscriptionRequest) error { + if a.ApproveSubscriptionExecuteMock == nil { + return nil + } + + return (*a.ApproveSubscriptionExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsCancel(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsCancelRequest { + return ApiConsumersSubscriptionsCancelRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// ConsumersSubscriptionsCancelExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsCancelExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsCancelExecute(r ApiConsumersSubscriptionsCancelRequest) error { + if a.ConsumersSubscriptionsCancelExecuteMock == nil { + return nil + } + + return (*a.ConsumersSubscriptionsCancelExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsCreate(ctx context.Context, projectId string) ApiConsumersSubscriptionsCreateRequest { + return ApiConsumersSubscriptionsCreateRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ConsumersSubscriptionsCreateExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsCreateExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsCreateExecute(r ApiConsumersSubscriptionsCreateRequest) (*MarketplaceSubscriptionV1Subscription, error) { + if a.ConsumersSubscriptionsCreateExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1Subscription + return localVarReturnValue, nil + } + + return (*a.ConsumersSubscriptionsCreateExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsGet(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsGetRequest { + return ApiConsumersSubscriptionsGetRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// ConsumersSubscriptionsGetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsGetExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsGetExecute(r ApiConsumersSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) { + if a.ConsumersSubscriptionsGetExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1Subscription + return localVarReturnValue, nil + } + + return (*a.ConsumersSubscriptionsGetExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsListByOrganization(ctx context.Context, organizationId string) ApiConsumersSubscriptionsListByOrganizationRequest { + return ApiConsumersSubscriptionsListByOrganizationRequest{ + ApiService: a, + ctx: ctx, + organizationId: organizationId, + } +} + +// ConsumersSubscriptionsListByOrganizationExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsListByOrganizationExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsListByOrganizationExecute(r ApiConsumersSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + if a.ConsumersSubscriptionsListByOrganizationExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + return localVarReturnValue, nil + } + + return (*a.ConsumersSubscriptionsListByOrganizationExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsListByProject(ctx context.Context, projectId string) ApiConsumersSubscriptionsListByProjectRequest { + return ApiConsumersSubscriptionsListByProjectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ConsumersSubscriptionsListByProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsListByProjectExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsListByProjectExecute(r ApiConsumersSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + if a.ConsumersSubscriptionsListByProjectExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + return localVarReturnValue, nil + } + + return (*a.ConsumersSubscriptionsListByProjectExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsRedirectsGet(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsRedirectsGetRequest { + return ApiConsumersSubscriptionsRedirectsGetRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// ConsumersSubscriptionsRedirectsGetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsRedirectsGetExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsRedirectsGetExecute(r ApiConsumersSubscriptionsRedirectsGetRequest) (*MarketplaceSubscriptionV1SubscriptionRedirect, error) { + if a.ConsumersSubscriptionsRedirectsGetExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1SubscriptionRedirect + return localVarReturnValue, nil + } + + return (*a.ConsumersSubscriptionsRedirectsGetExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ConsumersSubscriptionsTerminate(ctx context.Context, projectId string, subscriptionId string) ApiConsumersSubscriptionsTerminateRequest { + return ApiConsumersSubscriptionsTerminateRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// ConsumersSubscriptionsTerminateExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ConsumersSubscriptionsTerminateExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ConsumersSubscriptionsTerminateExecute(r ApiConsumersSubscriptionsTerminateRequest) error { + if a.ConsumersSubscriptionsTerminateExecuteMock == nil { + return nil + } + + return (*a.ConsumersSubscriptionsTerminateExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ResolveCustomer(ctx context.Context, projectId string) ApiResolveCustomerRequest { + return ApiResolveCustomerRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ResolveCustomerExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ResolveCustomerExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ResolveCustomerExecute(r ApiResolveCustomerRequest) (*MarketplaceSubscriptionV1Subscription, error) { + if a.ResolveCustomerExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1Subscription + return localVarReturnValue, nil + } + + return (*a.ResolveCustomerExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) VendorsSubscriptionsGet(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsGetRequest { + return ApiVendorsSubscriptionsGetRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// VendorsSubscriptionsGetExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the VendorsSubscriptionsGetExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) VendorsSubscriptionsGetExecute(r ApiVendorsSubscriptionsGetRequest) (*MarketplaceSubscriptionV1Subscription, error) { + if a.VendorsSubscriptionsGetExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1Subscription + return localVarReturnValue, nil + } + + return (*a.VendorsSubscriptionsGetExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) VendorsSubscriptionsListByOrganization(ctx context.Context, organizationId string) ApiVendorsSubscriptionsListByOrganizationRequest { + return ApiVendorsSubscriptionsListByOrganizationRequest{ + ApiService: a, + ctx: ctx, + organizationId: organizationId, + } +} + +// VendorsSubscriptionsListByOrganizationExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the VendorsSubscriptionsListByOrganizationExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) VendorsSubscriptionsListByOrganizationExecute(r ApiVendorsSubscriptionsListByOrganizationRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + if a.VendorsSubscriptionsListByOrganizationExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + return localVarReturnValue, nil + } + + return (*a.VendorsSubscriptionsListByOrganizationExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) VendorsSubscriptionsListByProject(ctx context.Context, projectId string) ApiVendorsSubscriptionsListByProjectRequest { + return ApiVendorsSubscriptionsListByProjectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// VendorsSubscriptionsListByProjectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the VendorsSubscriptionsListByProjectExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) VendorsSubscriptionsListByProjectExecute(r ApiVendorsSubscriptionsListByProjectRequest) (*MarketplaceSubscriptionV1ListSubscriptionsResponse, error) { + if a.VendorsSubscriptionsListByProjectExecuteMock == nil { + var localVarReturnValue *MarketplaceSubscriptionV1ListSubscriptionsResponse + return localVarReturnValue, nil + } + + return (*a.VendorsSubscriptionsListByProjectExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) VendorsSubscriptionsReject(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsRejectRequest { + return ApiVendorsSubscriptionsRejectRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + subscriptionId: subscriptionId, + } +} + +// VendorsSubscriptionsRejectExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the VendorsSubscriptionsRejectExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) VendorsSubscriptionsRejectExecute(r ApiVendorsSubscriptionsRejectRequest) error { + if a.VendorsSubscriptionsRejectExecuteMock == nil { + return nil + } + + return (*a.VendorsSubscriptionsRejectExecuteMock)(r) +} diff --git a/services/stackitmarketplace/v1api/client.go b/services/stackitmarketplace/v1api/client.go new file mode 100644 index 0000000000..4cc898c58f --- /dev/null +++ b/services/stackitmarketplace/v1api/client.go @@ -0,0 +1,668 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/stackitcloud/stackit-sdk-go/core/auth" + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the STACKIT Marketplace API API v1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *config.Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI DefaultAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { + cfg := NewConfiguration() + + for _, option := range opts { + err := option(cfg) + if err != nil { + return nil, fmt.Errorf("configuring the client: %w", err) + } + } + + err := config.ConfigureRegion(cfg) + if err != nil { + return nil, fmt.Errorf("configuring region: %w", err) + } + + if cfg.HTTPClient == nil { + cfg.HTTPClient = &http.Client{} + } + + authRoundTripper, err := auth.SetupAuth(cfg) + if err != nil { + return nil, fmt.Errorf("setting up authentication: %w", err) + } + + roundTripper := authRoundTripper + if cfg.Middleware != nil { + roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) + } + + cfg.HTTPClient.Transport = roundTripper + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *config.Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if r, ok := v.(*io.Reader); ok { + *r = bytes.NewReader(b) + return nil + } + // Must stay before the JSON branch: json.Unmarshal would base64-decode into *[]byte. + if p, ok := v.(*[]byte); ok { + *p = b + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/stackitmarketplace/v1api/configuration.go b/services/stackitmarketplace/v1api/configuration.go new file mode 100644 index 0000000000..48268b77ce --- /dev/null +++ b/services/stackitmarketplace/v1api/configuration.go @@ -0,0 +1,38 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *config.Configuration { + cfg := &config.Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "stackit-sdk-go/stackitmarketplace", + Debug: false, + Servers: config.ServerConfigurations{ + { + URL: "https://stackit-marketplace.api.stackit.cloud", + Description: "No description provided", + Variables: map[string]config.ServerVariable{ + "region": { + Description: "No description provided", + DefaultValue: "global", + }, + }, + }, + }, + OperationServers: map[string]config.ServerConfigurations{}, + } + return cfg +} diff --git a/services/stackitmarketplace/v1api/model_approve_subscription_payload.go b/services/stackitmarketplace/v1api/model_approve_subscription_payload.go new file mode 100644 index 0000000000..8b0306f0d7 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_approve_subscription_payload.go @@ -0,0 +1,155 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the ApproveSubscriptionPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApproveSubscriptionPayload{} + +// ApproveSubscriptionPayload struct for ApproveSubscriptionPayload +type ApproveSubscriptionPayload struct { + // The target URL of the user instance, used to redirect the user to the instance after the subscription is active. + InstanceTarget *string `json:"instanceTarget,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ApproveSubscriptionPayload ApproveSubscriptionPayload + +// NewApproveSubscriptionPayload instantiates a new ApproveSubscriptionPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewApproveSubscriptionPayload() *ApproveSubscriptionPayload { + this := ApproveSubscriptionPayload{} + return &this +} + +// NewApproveSubscriptionPayloadWithDefaults instantiates a new ApproveSubscriptionPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewApproveSubscriptionPayloadWithDefaults() *ApproveSubscriptionPayload { + this := ApproveSubscriptionPayload{} + return &this +} + +// GetInstanceTarget returns the InstanceTarget field value if set, zero value otherwise. +func (o *ApproveSubscriptionPayload) GetInstanceTarget() string { + if o == nil || IsNil(o.InstanceTarget) { + var ret string + return ret + } + return *o.InstanceTarget +} + +// GetInstanceTargetOk returns a tuple with the InstanceTarget field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApproveSubscriptionPayload) GetInstanceTargetOk() (*string, bool) { + if o == nil || IsNil(o.InstanceTarget) { + return nil, false + } + return o.InstanceTarget, true +} + +// HasInstanceTarget returns a boolean if a field has been set. +func (o *ApproveSubscriptionPayload) HasInstanceTarget() bool { + if o != nil && !IsNil(o.InstanceTarget) { + return true + } + + return false +} + +// SetInstanceTarget gets a reference to the given string and assigns it to the InstanceTarget field. +func (o *ApproveSubscriptionPayload) SetInstanceTarget(v string) { + o.InstanceTarget = &v +} + +func (o ApproveSubscriptionPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApproveSubscriptionPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InstanceTarget) { + toSerialize["instanceTarget"] = o.InstanceTarget + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ApproveSubscriptionPayload) UnmarshalJSON(data []byte) (err error) { + varApproveSubscriptionPayload := _ApproveSubscriptionPayload{} + + err = json.Unmarshal(data, &varApproveSubscriptionPayload) + + if err != nil { + return err + } + + *o = ApproveSubscriptionPayload(varApproveSubscriptionPayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "instanceTarget") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableApproveSubscriptionPayload struct { + value *ApproveSubscriptionPayload + isSet bool +} + +func (v NullableApproveSubscriptionPayload) Get() *ApproveSubscriptionPayload { + return v.value +} + +func (v *NullableApproveSubscriptionPayload) Set(val *ApproveSubscriptionPayload) { + v.value = val + v.isSet = true +} + +func (v NullableApproveSubscriptionPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableApproveSubscriptionPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApproveSubscriptionPayload(val *ApproveSubscriptionPayload) *NullableApproveSubscriptionPayload { + return &NullableApproveSubscriptionPayload{value: val, isSet: true} +} + +func (v NullableApproveSubscriptionPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApproveSubscriptionPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_consumers_subscriptions_create_payload.go b/services/stackitmarketplace/v1api/model_consumers_subscriptions_create_payload.go new file mode 100644 index 0000000000..d6a043d9ea --- /dev/null +++ b/services/stackitmarketplace/v1api/model_consumers_subscriptions_create_payload.go @@ -0,0 +1,236 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ConsumersSubscriptionsCreatePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConsumersSubscriptionsCreatePayload{} + +// ConsumersSubscriptionsCreatePayload struct for ConsumersSubscriptionsCreatePayload +type ConsumersSubscriptionsCreatePayload struct { + // An E-Mail address the vendor can reach the consuer about subscription updates. + ConsumerNotificationEmail *string `json:"consumerNotificationEmail,omitempty"` + // The user-readable ID of the product. + ProductId string `json:"productId"` + // The concrete variant of the product. + Sku string `json:"sku"` + AdditionalProperties map[string]interface{} +} + +type _ConsumersSubscriptionsCreatePayload ConsumersSubscriptionsCreatePayload + +// NewConsumersSubscriptionsCreatePayload instantiates a new ConsumersSubscriptionsCreatePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConsumersSubscriptionsCreatePayload(productId string, sku string) *ConsumersSubscriptionsCreatePayload { + this := ConsumersSubscriptionsCreatePayload{} + this.ProductId = productId + this.Sku = sku + return &this +} + +// NewConsumersSubscriptionsCreatePayloadWithDefaults instantiates a new ConsumersSubscriptionsCreatePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConsumersSubscriptionsCreatePayloadWithDefaults() *ConsumersSubscriptionsCreatePayload { + this := ConsumersSubscriptionsCreatePayload{} + return &this +} + +// GetConsumerNotificationEmail returns the ConsumerNotificationEmail field value if set, zero value otherwise. +func (o *ConsumersSubscriptionsCreatePayload) GetConsumerNotificationEmail() string { + if o == nil || IsNil(o.ConsumerNotificationEmail) { + var ret string + return ret + } + return *o.ConsumerNotificationEmail +} + +// GetConsumerNotificationEmailOk returns a tuple with the ConsumerNotificationEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsumersSubscriptionsCreatePayload) GetConsumerNotificationEmailOk() (*string, bool) { + if o == nil || IsNil(o.ConsumerNotificationEmail) { + return nil, false + } + return o.ConsumerNotificationEmail, true +} + +// HasConsumerNotificationEmail returns a boolean if a field has been set. +func (o *ConsumersSubscriptionsCreatePayload) HasConsumerNotificationEmail() bool { + if o != nil && !IsNil(o.ConsumerNotificationEmail) { + return true + } + + return false +} + +// SetConsumerNotificationEmail gets a reference to the given string and assigns it to the ConsumerNotificationEmail field. +func (o *ConsumersSubscriptionsCreatePayload) SetConsumerNotificationEmail(v string) { + o.ConsumerNotificationEmail = &v +} + +// GetProductId returns the ProductId field value +func (o *ConsumersSubscriptionsCreatePayload) GetProductId() string { + if o == nil { + var ret string + return ret + } + + return o.ProductId +} + +// GetProductIdOk returns a tuple with the ProductId field value +// and a boolean to check if the value has been set. +func (o *ConsumersSubscriptionsCreatePayload) GetProductIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProductId, true +} + +// SetProductId sets field value +func (o *ConsumersSubscriptionsCreatePayload) SetProductId(v string) { + o.ProductId = v +} + +// GetSku returns the Sku field value +func (o *ConsumersSubscriptionsCreatePayload) GetSku() string { + if o == nil { + var ret string + return ret + } + + return o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value +// and a boolean to check if the value has been set. +func (o *ConsumersSubscriptionsCreatePayload) GetSkuOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Sku, true +} + +// SetSku sets field value +func (o *ConsumersSubscriptionsCreatePayload) SetSku(v string) { + o.Sku = v +} + +func (o ConsumersSubscriptionsCreatePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConsumersSubscriptionsCreatePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConsumerNotificationEmail) { + toSerialize["consumerNotificationEmail"] = o.ConsumerNotificationEmail + } + toSerialize["productId"] = o.ProductId + toSerialize["sku"] = o.Sku + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConsumersSubscriptionsCreatePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "productId", + "sku", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varConsumersSubscriptionsCreatePayload := _ConsumersSubscriptionsCreatePayload{} + + err = json.Unmarshal(data, &varConsumersSubscriptionsCreatePayload) + + if err != nil { + return err + } + + *o = ConsumersSubscriptionsCreatePayload(varConsumersSubscriptionsCreatePayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "consumerNotificationEmail") + delete(additionalProperties, "productId") + delete(additionalProperties, "sku") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConsumersSubscriptionsCreatePayload struct { + value *ConsumersSubscriptionsCreatePayload + isSet bool +} + +func (v NullableConsumersSubscriptionsCreatePayload) Get() *ConsumersSubscriptionsCreatePayload { + return v.value +} + +func (v *NullableConsumersSubscriptionsCreatePayload) Set(val *ConsumersSubscriptionsCreatePayload) { + v.value = val + v.isSet = true +} + +func (v NullableConsumersSubscriptionsCreatePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableConsumersSubscriptionsCreatePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConsumersSubscriptionsCreatePayload(val *ConsumersSubscriptionsCreatePayload) *NullableConsumersSubscriptionsCreatePayload { + return &NullableConsumersSubscriptionsCreatePayload{value: val, isSet: true} +} + +func (v NullableConsumersSubscriptionsCreatePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConsumersSubscriptionsCreatePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_error_response.go b/services/stackitmarketplace/v1api/model_error_response.go new file mode 100644 index 0000000000..fe91aa8756 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_error_response.go @@ -0,0 +1,289 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the ErrorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorResponse{} + +// ErrorResponse struct for ErrorResponse +type ErrorResponse struct { + // Reason phrase of the status code. + Error string `json:"error"` + // Description of the error. + Message string `json:"message"` + // Path which was called. + Path string `json:"path"` + // HTTP response status code. + Status int32 `json:"status"` + // Timestamp at which the error occurred. + TimeStamp time.Time `json:"timeStamp"` + AdditionalProperties map[string]interface{} +} + +type _ErrorResponse ErrorResponse + +// NewErrorResponse instantiates a new ErrorResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorResponse(error_ string, message string, path string, status int32, timeStamp time.Time) *ErrorResponse { + this := ErrorResponse{} + this.Error = error_ + this.Message = message + this.Path = path + this.Status = status + this.TimeStamp = timeStamp + return &this +} + +// NewErrorResponseWithDefaults instantiates a new ErrorResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorResponseWithDefaults() *ErrorResponse { + this := ErrorResponse{} + return &this +} + +// GetError returns the Error field value +func (o *ErrorResponse) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *ErrorResponse) SetError(v string) { + o.Error = v +} + +// GetMessage returns the Message field value +func (o *ErrorResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *ErrorResponse) SetMessage(v string) { + o.Message = v +} + +// GetPath returns the Path field value +func (o *ErrorResponse) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *ErrorResponse) SetPath(v string) { + o.Path = v +} + +// GetStatus returns the Status field value +func (o *ErrorResponse) GetStatus() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetStatusOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ErrorResponse) SetStatus(v int32) { + o.Status = v +} + +// GetTimeStamp returns the TimeStamp field value +func (o *ErrorResponse) GetTimeStamp() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.TimeStamp +} + +// GetTimeStampOk returns a tuple with the TimeStamp field value +// and a boolean to check if the value has been set. +func (o *ErrorResponse) GetTimeStampOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.TimeStamp, true +} + +// SetTimeStamp sets field value +func (o *ErrorResponse) SetTimeStamp(v time.Time) { + o.TimeStamp = v +} + +func (o ErrorResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["error"] = o.Error + toSerialize["message"] = o.Message + toSerialize["path"] = o.Path + toSerialize["status"] = o.Status + toSerialize["timeStamp"] = o.TimeStamp + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "error", + "message", + "path", + "status", + "timeStamp", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varErrorResponse := _ErrorResponse{} + + err = json.Unmarshal(data, &varErrorResponse) + + if err != nil { + return err + } + + *o = ErrorResponse(varErrorResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "error") + delete(additionalProperties, "message") + delete(additionalProperties, "path") + delete(additionalProperties, "status") + delete(additionalProperties, "timeStamp") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableErrorResponse struct { + value *ErrorResponse + isSet bool +} + +func (v NullableErrorResponse) Get() *ErrorResponse { + return v.value +} + +func (v *NullableErrorResponse) Set(val *ErrorResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrorResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse { + return &NullableErrorResponse{value: val, isSet: true} +} + +func (v NullableErrorResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_assets.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_assets.go new file mode 100644 index 0000000000..716382ad63 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_assets.go @@ -0,0 +1,265 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the MarketplaceSubscriptionV1Assets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1Assets{} + +// MarketplaceSubscriptionV1Assets struct for MarketplaceSubscriptionV1Assets +type MarketplaceSubscriptionV1Assets struct { + EndUserLicenseAgreement *MarketplaceSubscriptionV1File `json:"endUserLicenseAgreement,omitempty"` + ProductDescription *MarketplaceSubscriptionV1File `json:"productDescription,omitempty"` + ServiceCertificate *MarketplaceSubscriptionV1File `json:"serviceCertificate,omitempty"` + ServiceLevelAgreement *MarketplaceSubscriptionV1File `json:"serviceLevelAgreement,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1Assets MarketplaceSubscriptionV1Assets + +// NewMarketplaceSubscriptionV1Assets instantiates a new MarketplaceSubscriptionV1Assets object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1Assets() *MarketplaceSubscriptionV1Assets { + this := MarketplaceSubscriptionV1Assets{} + return &this +} + +// NewMarketplaceSubscriptionV1AssetsWithDefaults instantiates a new MarketplaceSubscriptionV1Assets object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1AssetsWithDefaults() *MarketplaceSubscriptionV1Assets { + this := MarketplaceSubscriptionV1Assets{} + return &this +} + +// GetEndUserLicenseAgreement returns the EndUserLicenseAgreement field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Assets) GetEndUserLicenseAgreement() MarketplaceSubscriptionV1File { + if o == nil || IsNil(o.EndUserLicenseAgreement) { + var ret MarketplaceSubscriptionV1File + return ret + } + return *o.EndUserLicenseAgreement +} + +// GetEndUserLicenseAgreementOk returns a tuple with the EndUserLicenseAgreement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Assets) GetEndUserLicenseAgreementOk() (*MarketplaceSubscriptionV1File, bool) { + if o == nil || IsNil(o.EndUserLicenseAgreement) { + return nil, false + } + return o.EndUserLicenseAgreement, true +} + +// HasEndUserLicenseAgreement returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Assets) HasEndUserLicenseAgreement() bool { + if o != nil && !IsNil(o.EndUserLicenseAgreement) { + return true + } + + return false +} + +// SetEndUserLicenseAgreement gets a reference to the given MarketplaceSubscriptionV1File and assigns it to the EndUserLicenseAgreement field. +func (o *MarketplaceSubscriptionV1Assets) SetEndUserLicenseAgreement(v MarketplaceSubscriptionV1File) { + o.EndUserLicenseAgreement = &v +} + +// GetProductDescription returns the ProductDescription field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Assets) GetProductDescription() MarketplaceSubscriptionV1File { + if o == nil || IsNil(o.ProductDescription) { + var ret MarketplaceSubscriptionV1File + return ret + } + return *o.ProductDescription +} + +// GetProductDescriptionOk returns a tuple with the ProductDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Assets) GetProductDescriptionOk() (*MarketplaceSubscriptionV1File, bool) { + if o == nil || IsNil(o.ProductDescription) { + return nil, false + } + return o.ProductDescription, true +} + +// HasProductDescription returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Assets) HasProductDescription() bool { + if o != nil && !IsNil(o.ProductDescription) { + return true + } + + return false +} + +// SetProductDescription gets a reference to the given MarketplaceSubscriptionV1File and assigns it to the ProductDescription field. +func (o *MarketplaceSubscriptionV1Assets) SetProductDescription(v MarketplaceSubscriptionV1File) { + o.ProductDescription = &v +} + +// GetServiceCertificate returns the ServiceCertificate field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Assets) GetServiceCertificate() MarketplaceSubscriptionV1File { + if o == nil || IsNil(o.ServiceCertificate) { + var ret MarketplaceSubscriptionV1File + return ret + } + return *o.ServiceCertificate +} + +// GetServiceCertificateOk returns a tuple with the ServiceCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Assets) GetServiceCertificateOk() (*MarketplaceSubscriptionV1File, bool) { + if o == nil || IsNil(o.ServiceCertificate) { + return nil, false + } + return o.ServiceCertificate, true +} + +// HasServiceCertificate returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Assets) HasServiceCertificate() bool { + if o != nil && !IsNil(o.ServiceCertificate) { + return true + } + + return false +} + +// SetServiceCertificate gets a reference to the given MarketplaceSubscriptionV1File and assigns it to the ServiceCertificate field. +func (o *MarketplaceSubscriptionV1Assets) SetServiceCertificate(v MarketplaceSubscriptionV1File) { + o.ServiceCertificate = &v +} + +// GetServiceLevelAgreement returns the ServiceLevelAgreement field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Assets) GetServiceLevelAgreement() MarketplaceSubscriptionV1File { + if o == nil || IsNil(o.ServiceLevelAgreement) { + var ret MarketplaceSubscriptionV1File + return ret + } + return *o.ServiceLevelAgreement +} + +// GetServiceLevelAgreementOk returns a tuple with the ServiceLevelAgreement field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Assets) GetServiceLevelAgreementOk() (*MarketplaceSubscriptionV1File, bool) { + if o == nil || IsNil(o.ServiceLevelAgreement) { + return nil, false + } + return o.ServiceLevelAgreement, true +} + +// HasServiceLevelAgreement returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Assets) HasServiceLevelAgreement() bool { + if o != nil && !IsNil(o.ServiceLevelAgreement) { + return true + } + + return false +} + +// SetServiceLevelAgreement gets a reference to the given MarketplaceSubscriptionV1File and assigns it to the ServiceLevelAgreement field. +func (o *MarketplaceSubscriptionV1Assets) SetServiceLevelAgreement(v MarketplaceSubscriptionV1File) { + o.ServiceLevelAgreement = &v +} + +func (o MarketplaceSubscriptionV1Assets) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1Assets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EndUserLicenseAgreement) { + toSerialize["endUserLicenseAgreement"] = o.EndUserLicenseAgreement + } + if !IsNil(o.ProductDescription) { + toSerialize["productDescription"] = o.ProductDescription + } + if !IsNil(o.ServiceCertificate) { + toSerialize["serviceCertificate"] = o.ServiceCertificate + } + if !IsNil(o.ServiceLevelAgreement) { + toSerialize["serviceLevelAgreement"] = o.ServiceLevelAgreement + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1Assets) UnmarshalJSON(data []byte) (err error) { + varMarketplaceSubscriptionV1Assets := _MarketplaceSubscriptionV1Assets{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1Assets) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1Assets(varMarketplaceSubscriptionV1Assets) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "endUserLicenseAgreement") + delete(additionalProperties, "productDescription") + delete(additionalProperties, "serviceCertificate") + delete(additionalProperties, "serviceLevelAgreement") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1Assets struct { + value *MarketplaceSubscriptionV1Assets + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1Assets) Get() *MarketplaceSubscriptionV1Assets { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1Assets) Set(val *MarketplaceSubscriptionV1Assets) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1Assets) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1Assets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1Assets(val *MarketplaceSubscriptionV1Assets) *NullableMarketplaceSubscriptionV1Assets { + return &NullableMarketplaceSubscriptionV1Assets{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1Assets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1Assets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file.go new file mode 100644 index 0000000000..389883e709 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file.go @@ -0,0 +1,154 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the MarketplaceSubscriptionV1File type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1File{} + +// MarketplaceSubscriptionV1File struct for MarketplaceSubscriptionV1File +type MarketplaceSubscriptionV1File struct { + Version *MarketplaceSubscriptionV1FileLocalizedVersion `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1File MarketplaceSubscriptionV1File + +// NewMarketplaceSubscriptionV1File instantiates a new MarketplaceSubscriptionV1File object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1File() *MarketplaceSubscriptionV1File { + this := MarketplaceSubscriptionV1File{} + return &this +} + +// NewMarketplaceSubscriptionV1FileWithDefaults instantiates a new MarketplaceSubscriptionV1File object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1FileWithDefaults() *MarketplaceSubscriptionV1File { + this := MarketplaceSubscriptionV1File{} + return &this +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1File) GetVersion() MarketplaceSubscriptionV1FileLocalizedVersion { + if o == nil || IsNil(o.Version) { + var ret MarketplaceSubscriptionV1FileLocalizedVersion + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1File) GetVersionOk() (*MarketplaceSubscriptionV1FileLocalizedVersion, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1File) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given MarketplaceSubscriptionV1FileLocalizedVersion and assigns it to the Version field. +func (o *MarketplaceSubscriptionV1File) SetVersion(v MarketplaceSubscriptionV1FileLocalizedVersion) { + o.Version = &v +} + +func (o MarketplaceSubscriptionV1File) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1File) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1File) UnmarshalJSON(data []byte) (err error) { + varMarketplaceSubscriptionV1File := _MarketplaceSubscriptionV1File{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1File) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1File(varMarketplaceSubscriptionV1File) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1File struct { + value *MarketplaceSubscriptionV1File + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1File) Get() *MarketplaceSubscriptionV1File { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1File) Set(val *MarketplaceSubscriptionV1File) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1File) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1File) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1File(val *MarketplaceSubscriptionV1File) *NullableMarketplaceSubscriptionV1File { + return &NullableMarketplaceSubscriptionV1File{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1File) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1File) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file_localized_version.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file_localized_version.go new file mode 100644 index 0000000000..cbbec3988a --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_file_localized_version.go @@ -0,0 +1,193 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the MarketplaceSubscriptionV1FileLocalizedVersion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1FileLocalizedVersion{} + +// MarketplaceSubscriptionV1FileLocalizedVersion struct for MarketplaceSubscriptionV1FileLocalizedVersion +type MarketplaceSubscriptionV1FileLocalizedVersion struct { + // The file version matching the file name (localized). + De *string `json:"de,omitempty"` + // The file version matching the file name (localized). + En *string `json:"en,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1FileLocalizedVersion MarketplaceSubscriptionV1FileLocalizedVersion + +// NewMarketplaceSubscriptionV1FileLocalizedVersion instantiates a new MarketplaceSubscriptionV1FileLocalizedVersion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1FileLocalizedVersion() *MarketplaceSubscriptionV1FileLocalizedVersion { + this := MarketplaceSubscriptionV1FileLocalizedVersion{} + return &this +} + +// NewMarketplaceSubscriptionV1FileLocalizedVersionWithDefaults instantiates a new MarketplaceSubscriptionV1FileLocalizedVersion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1FileLocalizedVersionWithDefaults() *MarketplaceSubscriptionV1FileLocalizedVersion { + this := MarketplaceSubscriptionV1FileLocalizedVersion{} + return &this +} + +// GetDe returns the De field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) GetDe() string { + if o == nil || IsNil(o.De) { + var ret string + return ret + } + return *o.De +} + +// GetDeOk returns a tuple with the De field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) GetDeOk() (*string, bool) { + if o == nil || IsNil(o.De) { + return nil, false + } + return o.De, true +} + +// HasDe returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) HasDe() bool { + if o != nil && !IsNil(o.De) { + return true + } + + return false +} + +// SetDe gets a reference to the given string and assigns it to the De field. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) SetDe(v string) { + o.De = &v +} + +// GetEn returns the En field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) GetEn() string { + if o == nil || IsNil(o.En) { + var ret string + return ret + } + return *o.En +} + +// GetEnOk returns a tuple with the En field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) GetEnOk() (*string, bool) { + if o == nil || IsNil(o.En) { + return nil, false + } + return o.En, true +} + +// HasEn returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) HasEn() bool { + if o != nil && !IsNil(o.En) { + return true + } + + return false +} + +// SetEn gets a reference to the given string and assigns it to the En field. +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) SetEn(v string) { + o.En = &v +} + +func (o MarketplaceSubscriptionV1FileLocalizedVersion) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1FileLocalizedVersion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.De) { + toSerialize["de"] = o.De + } + if !IsNil(o.En) { + toSerialize["en"] = o.En + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1FileLocalizedVersion) UnmarshalJSON(data []byte) (err error) { + varMarketplaceSubscriptionV1FileLocalizedVersion := _MarketplaceSubscriptionV1FileLocalizedVersion{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1FileLocalizedVersion) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1FileLocalizedVersion(varMarketplaceSubscriptionV1FileLocalizedVersion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "de") + delete(additionalProperties, "en") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1FileLocalizedVersion struct { + value *MarketplaceSubscriptionV1FileLocalizedVersion + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1FileLocalizedVersion) Get() *MarketplaceSubscriptionV1FileLocalizedVersion { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1FileLocalizedVersion) Set(val *MarketplaceSubscriptionV1FileLocalizedVersion) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1FileLocalizedVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1FileLocalizedVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1FileLocalizedVersion(val *MarketplaceSubscriptionV1FileLocalizedVersion) *NullableMarketplaceSubscriptionV1FileLocalizedVersion { + return &NullableMarketplaceSubscriptionV1FileLocalizedVersion{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1FileLocalizedVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1FileLocalizedVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_list_subscriptions_response.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_list_subscriptions_response.go new file mode 100644 index 0000000000..84e8785b4b --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_list_subscriptions_response.go @@ -0,0 +1,228 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the MarketplaceSubscriptionV1ListSubscriptionsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1ListSubscriptionsResponse{} + +// MarketplaceSubscriptionV1ListSubscriptionsResponse struct for MarketplaceSubscriptionV1ListSubscriptionsResponse +type MarketplaceSubscriptionV1ListSubscriptionsResponse struct { + Cursor *string `json:"cursor,omitempty"` + Items []MarketplaceSubscriptionV1Subscription `json:"items,omitempty"` + Limit *int32 `json:"limit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1ListSubscriptionsResponse MarketplaceSubscriptionV1ListSubscriptionsResponse + +// NewMarketplaceSubscriptionV1ListSubscriptionsResponse instantiates a new MarketplaceSubscriptionV1ListSubscriptionsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1ListSubscriptionsResponse() *MarketplaceSubscriptionV1ListSubscriptionsResponse { + this := MarketplaceSubscriptionV1ListSubscriptionsResponse{} + return &this +} + +// NewMarketplaceSubscriptionV1ListSubscriptionsResponseWithDefaults instantiates a new MarketplaceSubscriptionV1ListSubscriptionsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1ListSubscriptionsResponseWithDefaults() *MarketplaceSubscriptionV1ListSubscriptionsResponse { + this := MarketplaceSubscriptionV1ListSubscriptionsResponse{} + return &this +} + +// GetCursor returns the Cursor field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) GetCursor() string { + if o == nil || IsNil(o.Cursor) { + var ret string + return ret + } + return *o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) GetCursorOk() (*string, bool) { + if o == nil || IsNil(o.Cursor) { + return nil, false + } + return o.Cursor, true +} + +// HasCursor returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) HasCursor() bool { + if o != nil && !IsNil(o.Cursor) { + return true + } + + return false +} + +// SetCursor gets a reference to the given string and assigns it to the Cursor field. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) SetCursor(v string) { + o.Cursor = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) GetItems() []MarketplaceSubscriptionV1Subscription { + if o == nil || IsNil(o.Items) { + var ret []MarketplaceSubscriptionV1Subscription + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) GetItemsOk() ([]MarketplaceSubscriptionV1Subscription, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) HasItems() bool { + if o != nil && !IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []MarketplaceSubscriptionV1Subscription and assigns it to the Items field. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) SetItems(v []MarketplaceSubscriptionV1Subscription) { + o.Items = v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) GetLimit() int32 { + if o == nil || IsNil(o.Limit) { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) GetLimitOk() (*int32, bool) { + if o == nil || IsNil(o.Limit) { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) HasLimit() bool { + if o != nil && !IsNil(o.Limit) { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) SetLimit(v int32) { + o.Limit = &v +} + +func (o MarketplaceSubscriptionV1ListSubscriptionsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1ListSubscriptionsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cursor) { + toSerialize["cursor"] = o.Cursor + } + if !IsNil(o.Items) { + toSerialize["items"] = o.Items + } + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1ListSubscriptionsResponse) UnmarshalJSON(data []byte) (err error) { + varMarketplaceSubscriptionV1ListSubscriptionsResponse := _MarketplaceSubscriptionV1ListSubscriptionsResponse{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1ListSubscriptionsResponse) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1ListSubscriptionsResponse(varMarketplaceSubscriptionV1ListSubscriptionsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cursor") + delete(additionalProperties, "items") + delete(additionalProperties, "limit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1ListSubscriptionsResponse struct { + value *MarketplaceSubscriptionV1ListSubscriptionsResponse + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1ListSubscriptionsResponse) Get() *MarketplaceSubscriptionV1ListSubscriptionsResponse { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1ListSubscriptionsResponse) Set(val *MarketplaceSubscriptionV1ListSubscriptionsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1ListSubscriptionsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1ListSubscriptionsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1ListSubscriptionsResponse(val *MarketplaceSubscriptionV1ListSubscriptionsResponse) *NullableMarketplaceSubscriptionV1ListSubscriptionsResponse { + return &NullableMarketplaceSubscriptionV1ListSubscriptionsResponse{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1ListSubscriptionsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1ListSubscriptionsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription.go new file mode 100644 index 0000000000..0c13a04b0f --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription.go @@ -0,0 +1,507 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// checks if the MarketplaceSubscriptionV1Subscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1Subscription{} + +// MarketplaceSubscriptionV1Subscription struct for MarketplaceSubscriptionV1Subscription +type MarketplaceSubscriptionV1Subscription struct { + // Period between the subscription was created until the approval needs to happen. + ApprovalTimeout *string `json:"approvalTimeout,omitempty"` + // If true, the the subscription will extend its validity automatically at the end of the current period. + AutoRenewal *bool `json:"autoRenewal,omitempty"` + LifecycleState MarketplaceSubscriptionV1SubscriptionLifecycleState `json:"lifecycleState"` + // When the subscription was ordered. + OrderedAt string `json:"orderedAt"` + // The UUID of the organization. + OrganizationId string `json:"organizationId"` + // The product to the subscription. + Product MarketplaceSubscriptionV1SubscriptionProduct `json:"product"` + // The UUID of the project. + ProjectId string `json:"projectId"` + // The UUID of the subscription. + SubscriptionId string `json:"subscriptionId"` + // Timestamp when the subscription will finally terminate. + TerminatesAt *string `json:"terminatesAt,omitempty"` + // Timestamp when the subscription validity has started. + ValidFrom *string `json:"validFrom,omitempty"` + // Timestamp when the current subscription validity will end. May be automatically renewed. + ValidUntil *string `json:"validUntil,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1Subscription MarketplaceSubscriptionV1Subscription + +// NewMarketplaceSubscriptionV1Subscription instantiates a new MarketplaceSubscriptionV1Subscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1Subscription(lifecycleState MarketplaceSubscriptionV1SubscriptionLifecycleState, orderedAt string, organizationId string, product MarketplaceSubscriptionV1SubscriptionProduct, projectId string, subscriptionId string) *MarketplaceSubscriptionV1Subscription { + this := MarketplaceSubscriptionV1Subscription{} + this.LifecycleState = lifecycleState + this.OrderedAt = orderedAt + this.OrganizationId = organizationId + this.Product = product + this.ProjectId = projectId + this.SubscriptionId = subscriptionId + return &this +} + +// NewMarketplaceSubscriptionV1SubscriptionWithDefaults instantiates a new MarketplaceSubscriptionV1Subscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1SubscriptionWithDefaults() *MarketplaceSubscriptionV1Subscription { + this := MarketplaceSubscriptionV1Subscription{} + return &this +} + +// GetApprovalTimeout returns the ApprovalTimeout field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Subscription) GetApprovalTimeout() string { + if o == nil || IsNil(o.ApprovalTimeout) { + var ret string + return ret + } + return *o.ApprovalTimeout +} + +// GetApprovalTimeoutOk returns a tuple with the ApprovalTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetApprovalTimeoutOk() (*string, bool) { + if o == nil || IsNil(o.ApprovalTimeout) { + return nil, false + } + return o.ApprovalTimeout, true +} + +// HasApprovalTimeout returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Subscription) HasApprovalTimeout() bool { + if o != nil && !IsNil(o.ApprovalTimeout) { + return true + } + + return false +} + +// SetApprovalTimeout gets a reference to the given string and assigns it to the ApprovalTimeout field. +func (o *MarketplaceSubscriptionV1Subscription) SetApprovalTimeout(v string) { + o.ApprovalTimeout = &v +} + +// GetAutoRenewal returns the AutoRenewal field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Subscription) GetAutoRenewal() bool { + if o == nil || IsNil(o.AutoRenewal) { + var ret bool + return ret + } + return *o.AutoRenewal +} + +// GetAutoRenewalOk returns a tuple with the AutoRenewal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetAutoRenewalOk() (*bool, bool) { + if o == nil || IsNil(o.AutoRenewal) { + return nil, false + } + return o.AutoRenewal, true +} + +// HasAutoRenewal returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Subscription) HasAutoRenewal() bool { + if o != nil && !IsNil(o.AutoRenewal) { + return true + } + + return false +} + +// SetAutoRenewal gets a reference to the given bool and assigns it to the AutoRenewal field. +func (o *MarketplaceSubscriptionV1Subscription) SetAutoRenewal(v bool) { + o.AutoRenewal = &v +} + +// GetLifecycleState returns the LifecycleState field value +func (o *MarketplaceSubscriptionV1Subscription) GetLifecycleState() MarketplaceSubscriptionV1SubscriptionLifecycleState { + if o == nil { + var ret MarketplaceSubscriptionV1SubscriptionLifecycleState + return ret + } + + return o.LifecycleState +} + +// GetLifecycleStateOk returns a tuple with the LifecycleState field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetLifecycleStateOk() (*MarketplaceSubscriptionV1SubscriptionLifecycleState, bool) { + if o == nil { + return nil, false + } + return &o.LifecycleState, true +} + +// SetLifecycleState sets field value +func (o *MarketplaceSubscriptionV1Subscription) SetLifecycleState(v MarketplaceSubscriptionV1SubscriptionLifecycleState) { + o.LifecycleState = v +} + +// GetOrderedAt returns the OrderedAt field value +func (o *MarketplaceSubscriptionV1Subscription) GetOrderedAt() string { + if o == nil { + var ret string + return ret + } + + return o.OrderedAt +} + +// GetOrderedAtOk returns a tuple with the OrderedAt field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetOrderedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrderedAt, true +} + +// SetOrderedAt sets field value +func (o *MarketplaceSubscriptionV1Subscription) SetOrderedAt(v string) { + o.OrderedAt = v +} + +// GetOrganizationId returns the OrganizationId field value +func (o *MarketplaceSubscriptionV1Subscription) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *MarketplaceSubscriptionV1Subscription) SetOrganizationId(v string) { + o.OrganizationId = v +} + +// GetProduct returns the Product field value +func (o *MarketplaceSubscriptionV1Subscription) GetProduct() MarketplaceSubscriptionV1SubscriptionProduct { + if o == nil { + var ret MarketplaceSubscriptionV1SubscriptionProduct + return ret + } + + return o.Product +} + +// GetProductOk returns a tuple with the Product field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetProductOk() (*MarketplaceSubscriptionV1SubscriptionProduct, bool) { + if o == nil { + return nil, false + } + return &o.Product, true +} + +// SetProduct sets field value +func (o *MarketplaceSubscriptionV1Subscription) SetProduct(v MarketplaceSubscriptionV1SubscriptionProduct) { + o.Product = v +} + +// GetProjectId returns the ProjectId field value +func (o *MarketplaceSubscriptionV1Subscription) GetProjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetProjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *MarketplaceSubscriptionV1Subscription) SetProjectId(v string) { + o.ProjectId = v +} + +// GetSubscriptionId returns the SubscriptionId field value +func (o *MarketplaceSubscriptionV1Subscription) GetSubscriptionId() string { + if o == nil { + var ret string + return ret + } + + return o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetSubscriptionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionId, true +} + +// SetSubscriptionId sets field value +func (o *MarketplaceSubscriptionV1Subscription) SetSubscriptionId(v string) { + o.SubscriptionId = v +} + +// GetTerminatesAt returns the TerminatesAt field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Subscription) GetTerminatesAt() string { + if o == nil || IsNil(o.TerminatesAt) { + var ret string + return ret + } + return *o.TerminatesAt +} + +// GetTerminatesAtOk returns a tuple with the TerminatesAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetTerminatesAtOk() (*string, bool) { + if o == nil || IsNil(o.TerminatesAt) { + return nil, false + } + return o.TerminatesAt, true +} + +// HasTerminatesAt returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Subscription) HasTerminatesAt() bool { + if o != nil && !IsNil(o.TerminatesAt) { + return true + } + + return false +} + +// SetTerminatesAt gets a reference to the given string and assigns it to the TerminatesAt field. +func (o *MarketplaceSubscriptionV1Subscription) SetTerminatesAt(v string) { + o.TerminatesAt = &v +} + +// GetValidFrom returns the ValidFrom field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Subscription) GetValidFrom() string { + if o == nil || IsNil(o.ValidFrom) { + var ret string + return ret + } + return *o.ValidFrom +} + +// GetValidFromOk returns a tuple with the ValidFrom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetValidFromOk() (*string, bool) { + if o == nil || IsNil(o.ValidFrom) { + return nil, false + } + return o.ValidFrom, true +} + +// HasValidFrom returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Subscription) HasValidFrom() bool { + if o != nil && !IsNil(o.ValidFrom) { + return true + } + + return false +} + +// SetValidFrom gets a reference to the given string and assigns it to the ValidFrom field. +func (o *MarketplaceSubscriptionV1Subscription) SetValidFrom(v string) { + o.ValidFrom = &v +} + +// GetValidUntil returns the ValidUntil field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1Subscription) GetValidUntil() string { + if o == nil || IsNil(o.ValidUntil) { + var ret string + return ret + } + return *o.ValidUntil +} + +// GetValidUntilOk returns a tuple with the ValidUntil field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1Subscription) GetValidUntilOk() (*string, bool) { + if o == nil || IsNil(o.ValidUntil) { + return nil, false + } + return o.ValidUntil, true +} + +// HasValidUntil returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1Subscription) HasValidUntil() bool { + if o != nil && !IsNil(o.ValidUntil) { + return true + } + + return false +} + +// SetValidUntil gets a reference to the given string and assigns it to the ValidUntil field. +func (o *MarketplaceSubscriptionV1Subscription) SetValidUntil(v string) { + o.ValidUntil = &v +} + +func (o MarketplaceSubscriptionV1Subscription) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1Subscription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ApprovalTimeout) { + toSerialize["approvalTimeout"] = o.ApprovalTimeout + } + if !IsNil(o.AutoRenewal) { + toSerialize["autoRenewal"] = o.AutoRenewal + } + toSerialize["lifecycleState"] = o.LifecycleState + toSerialize["orderedAt"] = o.OrderedAt + toSerialize["organizationId"] = o.OrganizationId + toSerialize["product"] = o.Product + toSerialize["projectId"] = o.ProjectId + toSerialize["subscriptionId"] = o.SubscriptionId + if !IsNil(o.TerminatesAt) { + toSerialize["terminatesAt"] = o.TerminatesAt + } + if !IsNil(o.ValidFrom) { + toSerialize["validFrom"] = o.ValidFrom + } + if !IsNil(o.ValidUntil) { + toSerialize["validUntil"] = o.ValidUntil + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1Subscription) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "lifecycleState", + "orderedAt", + "organizationId", + "product", + "projectId", + "subscriptionId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMarketplaceSubscriptionV1Subscription := _MarketplaceSubscriptionV1Subscription{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1Subscription) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1Subscription(varMarketplaceSubscriptionV1Subscription) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "approvalTimeout") + delete(additionalProperties, "autoRenewal") + delete(additionalProperties, "lifecycleState") + delete(additionalProperties, "orderedAt") + delete(additionalProperties, "organizationId") + delete(additionalProperties, "product") + delete(additionalProperties, "projectId") + delete(additionalProperties, "subscriptionId") + delete(additionalProperties, "terminatesAt") + delete(additionalProperties, "validFrom") + delete(additionalProperties, "validUntil") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1Subscription struct { + value *MarketplaceSubscriptionV1Subscription + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1Subscription) Get() *MarketplaceSubscriptionV1Subscription { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1Subscription) Set(val *MarketplaceSubscriptionV1Subscription) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1Subscription) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1Subscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1Subscription(val *MarketplaceSubscriptionV1Subscription) *NullableMarketplaceSubscriptionV1Subscription { + return &NullableMarketplaceSubscriptionV1Subscription{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1Subscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1Subscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_lifecycle_state.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_lifecycle_state.go new file mode 100644 index 0000000000..66e66b8fea --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_lifecycle_state.go @@ -0,0 +1,126 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// MarketplaceSubscriptionV1SubscriptionLifecycleState the model 'MarketplaceSubscriptionV1SubscriptionLifecycleState' +type MarketplaceSubscriptionV1SubscriptionLifecycleState string + +// List of marketplace_subscription_v1_Subscription_lifecycleState +const ( + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_STATE_UNSPECIFIED MarketplaceSubscriptionV1SubscriptionLifecycleState = "STATE_UNSPECIFIED" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_PENDING MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_PENDING" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_ACTIVE MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_ACTIVE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_INACTIVE MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_INACTIVE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_CANCELLING MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_CANCELLING" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_CANCELLED MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_CANCELLED" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_REJECTED MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_REJECTED" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_SUBSCRIPTION_APPROVAL_TIMED_OUT MarketplaceSubscriptionV1SubscriptionLifecycleState = "SUBSCRIPTION_APPROVAL_TIMED_OUT" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_UNKNOWN_DEFAULT_OPEN_API MarketplaceSubscriptionV1SubscriptionLifecycleState = "unknown_default_open_api" +) + +// All allowed values of MarketplaceSubscriptionV1SubscriptionLifecycleState enum +var AllowedMarketplaceSubscriptionV1SubscriptionLifecycleStateEnumValues = []MarketplaceSubscriptionV1SubscriptionLifecycleState{ + "STATE_UNSPECIFIED", + "SUBSCRIPTION_PENDING", + "SUBSCRIPTION_ACTIVE", + "SUBSCRIPTION_INACTIVE", + "SUBSCRIPTION_CANCELLING", + "SUBSCRIPTION_CANCELLED", + "SUBSCRIPTION_REJECTED", + "SUBSCRIPTION_APPROVAL_TIMED_OUT", + "unknown_default_open_api", +} + +func (v *MarketplaceSubscriptionV1SubscriptionLifecycleState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := MarketplaceSubscriptionV1SubscriptionLifecycleState(value) + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionLifecycleStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONLIFECYCLESTATE_UNKNOWN_DEFAULT_OPEN_API + return nil +} + +// NewMarketplaceSubscriptionV1SubscriptionLifecycleStateFromValue returns a pointer to a valid MarketplaceSubscriptionV1SubscriptionLifecycleState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMarketplaceSubscriptionV1SubscriptionLifecycleStateFromValue(v string) (*MarketplaceSubscriptionV1SubscriptionLifecycleState, error) { + ev := MarketplaceSubscriptionV1SubscriptionLifecycleState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for MarketplaceSubscriptionV1SubscriptionLifecycleState: valid values are %v", v, AllowedMarketplaceSubscriptionV1SubscriptionLifecycleStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v MarketplaceSubscriptionV1SubscriptionLifecycleState) IsValid() bool { + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionLifecycleStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to marketplace_subscription_v1_Subscription_lifecycleState value +func (v MarketplaceSubscriptionV1SubscriptionLifecycleState) Ptr() *MarketplaceSubscriptionV1SubscriptionLifecycleState { + return &v +} + +type NullableMarketplaceSubscriptionV1SubscriptionLifecycleState struct { + value *MarketplaceSubscriptionV1SubscriptionLifecycleState + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionLifecycleState) Get() *MarketplaceSubscriptionV1SubscriptionLifecycleState { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionLifecycleState) Set(val *MarketplaceSubscriptionV1SubscriptionLifecycleState) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionLifecycleState) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionLifecycleState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1SubscriptionLifecycleState(val *MarketplaceSubscriptionV1SubscriptionLifecycleState) *NullableMarketplaceSubscriptionV1SubscriptionLifecycleState { + return &NullableMarketplaceSubscriptionV1SubscriptionLifecycleState{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionLifecycleState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionLifecycleState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product.go new file mode 100644 index 0000000000..78be1004e7 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product.go @@ -0,0 +1,608 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// checks if the MarketplaceSubscriptionV1SubscriptionProduct type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1SubscriptionProduct{} + +// MarketplaceSubscriptionV1SubscriptionProduct struct for MarketplaceSubscriptionV1SubscriptionProduct +type MarketplaceSubscriptionV1SubscriptionProduct struct { + Assets *MarketplaceSubscriptionV1Assets `json:"assets,omitempty"` + DeliveryMethod MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod `json:"deliveryMethod"` + LifecycleState MarketplaceSubscriptionV1SubscriptionProductLifecycleState `json:"lifecycleState"` + // The cancellation notice period of the subscription. + NoticePeriod string `json:"noticePeriod"` + // The user-readable plan ID of a pricing option. + PlanId string `json:"planId"` + PriceType MarketplaceSubscriptionV1SubscriptionProductPriceType `json:"priceType"` + // Additional price type information. + PricingPlan string `json:"pricingPlan"` + // The user-readable ID of the product. + ProductId string `json:"productId"` + // The name of the product. + ProductName string `json:"productName"` + // The price of the product (per unit). + Rate string `json:"rate"` + // The period the subscription is valid for before it will be renewed. + ValidityPeriod string `json:"validityPeriod"` + // The product vendor's name. + VendorName string `json:"vendorName"` + // The vendor provided plan ID. + VendorPlanId *string `json:"vendorPlanId,omitempty"` + // The vendor provided prduct ID. + VendorProductId *string `json:"vendorProductId,omitempty"` + // The vendor's website. + VendorWebsiteUrl string `json:"vendorWebsiteUrl"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1SubscriptionProduct MarketplaceSubscriptionV1SubscriptionProduct + +// NewMarketplaceSubscriptionV1SubscriptionProduct instantiates a new MarketplaceSubscriptionV1SubscriptionProduct object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1SubscriptionProduct(deliveryMethod MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod, lifecycleState MarketplaceSubscriptionV1SubscriptionProductLifecycleState, noticePeriod string, planId string, priceType MarketplaceSubscriptionV1SubscriptionProductPriceType, pricingPlan string, productId string, productName string, rate string, validityPeriod string, vendorName string, vendorWebsiteUrl string) *MarketplaceSubscriptionV1SubscriptionProduct { + this := MarketplaceSubscriptionV1SubscriptionProduct{} + this.DeliveryMethod = deliveryMethod + this.LifecycleState = lifecycleState + this.NoticePeriod = noticePeriod + this.PlanId = planId + this.PriceType = priceType + this.PricingPlan = pricingPlan + this.ProductId = productId + this.ProductName = productName + this.Rate = rate + this.ValidityPeriod = validityPeriod + this.VendorName = vendorName + this.VendorWebsiteUrl = vendorWebsiteUrl + return &this +} + +// NewMarketplaceSubscriptionV1SubscriptionProductWithDefaults instantiates a new MarketplaceSubscriptionV1SubscriptionProduct object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1SubscriptionProductWithDefaults() *MarketplaceSubscriptionV1SubscriptionProduct { + this := MarketplaceSubscriptionV1SubscriptionProduct{} + return &this +} + +// GetAssets returns the Assets field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetAssets() MarketplaceSubscriptionV1Assets { + if o == nil || IsNil(o.Assets) { + var ret MarketplaceSubscriptionV1Assets + return ret + } + return *o.Assets +} + +// GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetAssetsOk() (*MarketplaceSubscriptionV1Assets, bool) { + if o == nil || IsNil(o.Assets) { + return nil, false + } + return o.Assets, true +} + +// HasAssets returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) HasAssets() bool { + if o != nil && !IsNil(o.Assets) { + return true + } + + return false +} + +// SetAssets gets a reference to the given MarketplaceSubscriptionV1Assets and assigns it to the Assets field. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetAssets(v MarketplaceSubscriptionV1Assets) { + o.Assets = &v +} + +// GetDeliveryMethod returns the DeliveryMethod field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetDeliveryMethod() MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod { + if o == nil { + var ret MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod + return ret + } + + return o.DeliveryMethod +} + +// GetDeliveryMethodOk returns a tuple with the DeliveryMethod field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetDeliveryMethodOk() (*MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod, bool) { + if o == nil { + return nil, false + } + return &o.DeliveryMethod, true +} + +// SetDeliveryMethod sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetDeliveryMethod(v MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) { + o.DeliveryMethod = v +} + +// GetLifecycleState returns the LifecycleState field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetLifecycleState() MarketplaceSubscriptionV1SubscriptionProductLifecycleState { + if o == nil { + var ret MarketplaceSubscriptionV1SubscriptionProductLifecycleState + return ret + } + + return o.LifecycleState +} + +// GetLifecycleStateOk returns a tuple with the LifecycleState field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetLifecycleStateOk() (*MarketplaceSubscriptionV1SubscriptionProductLifecycleState, bool) { + if o == nil { + return nil, false + } + return &o.LifecycleState, true +} + +// SetLifecycleState sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetLifecycleState(v MarketplaceSubscriptionV1SubscriptionProductLifecycleState) { + o.LifecycleState = v +} + +// GetNoticePeriod returns the NoticePeriod field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetNoticePeriod() string { + if o == nil { + var ret string + return ret + } + + return o.NoticePeriod +} + +// GetNoticePeriodOk returns a tuple with the NoticePeriod field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetNoticePeriodOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NoticePeriod, true +} + +// SetNoticePeriod sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetNoticePeriod(v string) { + o.NoticePeriod = v +} + +// GetPlanId returns the PlanId field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetPlanId(v string) { + o.PlanId = v +} + +// GetPriceType returns the PriceType field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetPriceType() MarketplaceSubscriptionV1SubscriptionProductPriceType { + if o == nil { + var ret MarketplaceSubscriptionV1SubscriptionProductPriceType + return ret + } + + return o.PriceType +} + +// GetPriceTypeOk returns a tuple with the PriceType field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetPriceTypeOk() (*MarketplaceSubscriptionV1SubscriptionProductPriceType, bool) { + if o == nil { + return nil, false + } + return &o.PriceType, true +} + +// SetPriceType sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetPriceType(v MarketplaceSubscriptionV1SubscriptionProductPriceType) { + o.PriceType = v +} + +// GetPricingPlan returns the PricingPlan field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetPricingPlan() string { + if o == nil { + var ret string + return ret + } + + return o.PricingPlan +} + +// GetPricingPlanOk returns a tuple with the PricingPlan field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetPricingPlanOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PricingPlan, true +} + +// SetPricingPlan sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetPricingPlan(v string) { + o.PricingPlan = v +} + +// GetProductId returns the ProductId field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetProductId() string { + if o == nil { + var ret string + return ret + } + + return o.ProductId +} + +// GetProductIdOk returns a tuple with the ProductId field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetProductIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProductId, true +} + +// SetProductId sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetProductId(v string) { + o.ProductId = v +} + +// GetProductName returns the ProductName field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetProductName() string { + if o == nil { + var ret string + return ret + } + + return o.ProductName +} + +// GetProductNameOk returns a tuple with the ProductName field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetProductNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProductName, true +} + +// SetProductName sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetProductName(v string) { + o.ProductName = v +} + +// GetRate returns the Rate field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetRate() string { + if o == nil { + var ret string + return ret + } + + return o.Rate +} + +// GetRateOk returns a tuple with the Rate field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetRateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Rate, true +} + +// SetRate sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetRate(v string) { + o.Rate = v +} + +// GetValidityPeriod returns the ValidityPeriod field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetValidityPeriod() string { + if o == nil { + var ret string + return ret + } + + return o.ValidityPeriod +} + +// GetValidityPeriodOk returns a tuple with the ValidityPeriod field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetValidityPeriodOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ValidityPeriod, true +} + +// SetValidityPeriod sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetValidityPeriod(v string) { + o.ValidityPeriod = v +} + +// GetVendorName returns the VendorName field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorName() string { + if o == nil { + var ret string + return ret + } + + return o.VendorName +} + +// GetVendorNameOk returns a tuple with the VendorName field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VendorName, true +} + +// SetVendorName sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetVendorName(v string) { + o.VendorName = v +} + +// GetVendorPlanId returns the VendorPlanId field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorPlanId() string { + if o == nil || IsNil(o.VendorPlanId) { + var ret string + return ret + } + return *o.VendorPlanId +} + +// GetVendorPlanIdOk returns a tuple with the VendorPlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorPlanIdOk() (*string, bool) { + if o == nil || IsNil(o.VendorPlanId) { + return nil, false + } + return o.VendorPlanId, true +} + +// HasVendorPlanId returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) HasVendorPlanId() bool { + if o != nil && !IsNil(o.VendorPlanId) { + return true + } + + return false +} + +// SetVendorPlanId gets a reference to the given string and assigns it to the VendorPlanId field. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetVendorPlanId(v string) { + o.VendorPlanId = &v +} + +// GetVendorProductId returns the VendorProductId field value if set, zero value otherwise. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorProductId() string { + if o == nil || IsNil(o.VendorProductId) { + var ret string + return ret + } + return *o.VendorProductId +} + +// GetVendorProductIdOk returns a tuple with the VendorProductId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorProductIdOk() (*string, bool) { + if o == nil || IsNil(o.VendorProductId) { + return nil, false + } + return o.VendorProductId, true +} + +// HasVendorProductId returns a boolean if a field has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) HasVendorProductId() bool { + if o != nil && !IsNil(o.VendorProductId) { + return true + } + + return false +} + +// SetVendorProductId gets a reference to the given string and assigns it to the VendorProductId field. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetVendorProductId(v string) { + o.VendorProductId = &v +} + +// GetVendorWebsiteUrl returns the VendorWebsiteUrl field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorWebsiteUrl() string { + if o == nil { + var ret string + return ret + } + + return o.VendorWebsiteUrl +} + +// GetVendorWebsiteUrlOk returns a tuple with the VendorWebsiteUrl field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionProduct) GetVendorWebsiteUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VendorWebsiteUrl, true +} + +// SetVendorWebsiteUrl sets field value +func (o *MarketplaceSubscriptionV1SubscriptionProduct) SetVendorWebsiteUrl(v string) { + o.VendorWebsiteUrl = v +} + +func (o MarketplaceSubscriptionV1SubscriptionProduct) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1SubscriptionProduct) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Assets) { + toSerialize["assets"] = o.Assets + } + toSerialize["deliveryMethod"] = o.DeliveryMethod + toSerialize["lifecycleState"] = o.LifecycleState + toSerialize["noticePeriod"] = o.NoticePeriod + toSerialize["planId"] = o.PlanId + toSerialize["priceType"] = o.PriceType + toSerialize["pricingPlan"] = o.PricingPlan + toSerialize["productId"] = o.ProductId + toSerialize["productName"] = o.ProductName + toSerialize["rate"] = o.Rate + toSerialize["validityPeriod"] = o.ValidityPeriod + toSerialize["vendorName"] = o.VendorName + if !IsNil(o.VendorPlanId) { + toSerialize["vendorPlanId"] = o.VendorPlanId + } + if !IsNil(o.VendorProductId) { + toSerialize["vendorProductId"] = o.VendorProductId + } + toSerialize["vendorWebsiteUrl"] = o.VendorWebsiteUrl + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1SubscriptionProduct) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "deliveryMethod", + "lifecycleState", + "noticePeriod", + "planId", + "priceType", + "pricingPlan", + "productId", + "productName", + "rate", + "validityPeriod", + "vendorName", + "vendorWebsiteUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMarketplaceSubscriptionV1SubscriptionProduct := _MarketplaceSubscriptionV1SubscriptionProduct{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1SubscriptionProduct) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1SubscriptionProduct(varMarketplaceSubscriptionV1SubscriptionProduct) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assets") + delete(additionalProperties, "deliveryMethod") + delete(additionalProperties, "lifecycleState") + delete(additionalProperties, "noticePeriod") + delete(additionalProperties, "planId") + delete(additionalProperties, "priceType") + delete(additionalProperties, "pricingPlan") + delete(additionalProperties, "productId") + delete(additionalProperties, "productName") + delete(additionalProperties, "rate") + delete(additionalProperties, "validityPeriod") + delete(additionalProperties, "vendorName") + delete(additionalProperties, "vendorPlanId") + delete(additionalProperties, "vendorProductId") + delete(additionalProperties, "vendorWebsiteUrl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1SubscriptionProduct struct { + value *MarketplaceSubscriptionV1SubscriptionProduct + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProduct) Get() *MarketplaceSubscriptionV1SubscriptionProduct { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProduct) Set(val *MarketplaceSubscriptionV1SubscriptionProduct) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProduct) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProduct) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1SubscriptionProduct(val *MarketplaceSubscriptionV1SubscriptionProduct) *NullableMarketplaceSubscriptionV1SubscriptionProduct { + return &NullableMarketplaceSubscriptionV1SubscriptionProduct{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProduct) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProduct) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_delivery_method.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_delivery_method.go new file mode 100644 index 0000000000..74f7c33d5c --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_delivery_method.go @@ -0,0 +1,118 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod The product delivery method/type. For reference: SAAS - Software as a Service, CLOUD_IMAGE - STACKIT Cloud Image +type MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod string + +// List of marketplace_subscription_v1_SubscriptionProduct_deliveryMethod +const ( + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTDELIVERYMETHOD_SAAS MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = "SAAS" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTDELIVERYMETHOD_CONTAINER_IMAGE MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = "CONTAINER_IMAGE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTDELIVERYMETHOD_CLOUD_IMAGE MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = "CLOUD_IMAGE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTDELIVERYMETHOD_PROFESSIONAL_SERVICE MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = "PROFESSIONAL_SERVICE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTDELIVERYMETHOD_UNKNOWN_DEFAULT_OPEN_API MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod = "unknown_default_open_api" +) + +// All allowed values of MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod enum +var AllowedMarketplaceSubscriptionV1SubscriptionProductDeliveryMethodEnumValues = []MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod{ + "SAAS", + "CONTAINER_IMAGE", + "CLOUD_IMAGE", + "PROFESSIONAL_SERVICE", + "unknown_default_open_api", +} + +func (v *MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod(value) + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionProductDeliveryMethodEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTDELIVERYMETHOD_UNKNOWN_DEFAULT_OPEN_API + return nil +} + +// NewMarketplaceSubscriptionV1SubscriptionProductDeliveryMethodFromValue returns a pointer to a valid MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMarketplaceSubscriptionV1SubscriptionProductDeliveryMethodFromValue(v string) (*MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod, error) { + ev := MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod: valid values are %v", v, AllowedMarketplaceSubscriptionV1SubscriptionProductDeliveryMethodEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) IsValid() bool { + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionProductDeliveryMethodEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to marketplace_subscription_v1_SubscriptionProduct_deliveryMethod value +func (v MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) Ptr() *MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod { + return &v +} + +type NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod struct { + value *MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) Get() *MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) Set(val *MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod(val *MarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) *NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod { + return &NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductDeliveryMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_lifecycle_state.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_lifecycle_state.go new file mode 100644 index 0000000000..5f731d59d8 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_lifecycle_state.go @@ -0,0 +1,116 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// MarketplaceSubscriptionV1SubscriptionProductLifecycleState The lifecycle state of the product. +type MarketplaceSubscriptionV1SubscriptionProductLifecycleState string + +// List of marketplace_subscription_v1_SubscriptionProduct_lifecycleState +const ( + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTLIFECYCLESTATE_PRODUCT_LIVE MarketplaceSubscriptionV1SubscriptionProductLifecycleState = "PRODUCT_LIVE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTLIFECYCLESTATE_PRODUCT_PENDING_APPROVAL MarketplaceSubscriptionV1SubscriptionProductLifecycleState = "PRODUCT_PENDING_APPROVAL" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTLIFECYCLESTATE_PRODUCT_PREVIEW MarketplaceSubscriptionV1SubscriptionProductLifecycleState = "PRODUCT_PREVIEW" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTLIFECYCLESTATE_UNKNOWN_DEFAULT_OPEN_API MarketplaceSubscriptionV1SubscriptionProductLifecycleState = "unknown_default_open_api" +) + +// All allowed values of MarketplaceSubscriptionV1SubscriptionProductLifecycleState enum +var AllowedMarketplaceSubscriptionV1SubscriptionProductLifecycleStateEnumValues = []MarketplaceSubscriptionV1SubscriptionProductLifecycleState{ + "PRODUCT_LIVE", + "PRODUCT_PENDING_APPROVAL", + "PRODUCT_PREVIEW", + "unknown_default_open_api", +} + +func (v *MarketplaceSubscriptionV1SubscriptionProductLifecycleState) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := MarketplaceSubscriptionV1SubscriptionProductLifecycleState(value) + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionProductLifecycleStateEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTLIFECYCLESTATE_UNKNOWN_DEFAULT_OPEN_API + return nil +} + +// NewMarketplaceSubscriptionV1SubscriptionProductLifecycleStateFromValue returns a pointer to a valid MarketplaceSubscriptionV1SubscriptionProductLifecycleState +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMarketplaceSubscriptionV1SubscriptionProductLifecycleStateFromValue(v string) (*MarketplaceSubscriptionV1SubscriptionProductLifecycleState, error) { + ev := MarketplaceSubscriptionV1SubscriptionProductLifecycleState(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for MarketplaceSubscriptionV1SubscriptionProductLifecycleState: valid values are %v", v, AllowedMarketplaceSubscriptionV1SubscriptionProductLifecycleStateEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v MarketplaceSubscriptionV1SubscriptionProductLifecycleState) IsValid() bool { + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionProductLifecycleStateEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to marketplace_subscription_v1_SubscriptionProduct_lifecycleState value +func (v MarketplaceSubscriptionV1SubscriptionProductLifecycleState) Ptr() *MarketplaceSubscriptionV1SubscriptionProductLifecycleState { + return &v +} + +type NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState struct { + value *MarketplaceSubscriptionV1SubscriptionProductLifecycleState + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState) Get() *MarketplaceSubscriptionV1SubscriptionProductLifecycleState { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState) Set(val *MarketplaceSubscriptionV1SubscriptionProductLifecycleState) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState(val *MarketplaceSubscriptionV1SubscriptionProductLifecycleState) *NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState { + return &NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductLifecycleState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_price_type.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_price_type.go new file mode 100644 index 0000000000..246f2179e3 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_product_price_type.go @@ -0,0 +1,120 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// MarketplaceSubscriptionV1SubscriptionProductPriceType The product's price type. +type MarketplaceSubscriptionV1SubscriptionProductPriceType string + +// List of marketplace_subscription_v1_SubscriptionProduct_priceType +const ( + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_CONTRACT MarketplaceSubscriptionV1SubscriptionProductPriceType = "CONTRACT" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_FREE MarketplaceSubscriptionV1SubscriptionProductPriceType = "FREE" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_FREE_TRIAL MarketplaceSubscriptionV1SubscriptionProductPriceType = "FREE_TRIAL" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_BYOL MarketplaceSubscriptionV1SubscriptionProductPriceType = "BYOL" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_PAYG MarketplaceSubscriptionV1SubscriptionProductPriceType = "PAYG" + MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_UNKNOWN_DEFAULT_OPEN_API MarketplaceSubscriptionV1SubscriptionProductPriceType = "unknown_default_open_api" +) + +// All allowed values of MarketplaceSubscriptionV1SubscriptionProductPriceType enum +var AllowedMarketplaceSubscriptionV1SubscriptionProductPriceTypeEnumValues = []MarketplaceSubscriptionV1SubscriptionProductPriceType{ + "CONTRACT", + "FREE", + "FREE_TRIAL", + "BYOL", + "PAYG", + "unknown_default_open_api", +} + +func (v *MarketplaceSubscriptionV1SubscriptionProductPriceType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := MarketplaceSubscriptionV1SubscriptionProductPriceType(value) + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionProductPriceTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = MARKETPLACESUBSCRIPTIONV1SUBSCRIPTIONPRODUCTPRICETYPE_UNKNOWN_DEFAULT_OPEN_API + return nil +} + +// NewMarketplaceSubscriptionV1SubscriptionProductPriceTypeFromValue returns a pointer to a valid MarketplaceSubscriptionV1SubscriptionProductPriceType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMarketplaceSubscriptionV1SubscriptionProductPriceTypeFromValue(v string) (*MarketplaceSubscriptionV1SubscriptionProductPriceType, error) { + ev := MarketplaceSubscriptionV1SubscriptionProductPriceType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for MarketplaceSubscriptionV1SubscriptionProductPriceType: valid values are %v", v, AllowedMarketplaceSubscriptionV1SubscriptionProductPriceTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v MarketplaceSubscriptionV1SubscriptionProductPriceType) IsValid() bool { + for _, existing := range AllowedMarketplaceSubscriptionV1SubscriptionProductPriceTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to marketplace_subscription_v1_SubscriptionProduct_priceType value +func (v MarketplaceSubscriptionV1SubscriptionProductPriceType) Ptr() *MarketplaceSubscriptionV1SubscriptionProductPriceType { + return &v +} + +type NullableMarketplaceSubscriptionV1SubscriptionProductPriceType struct { + value *MarketplaceSubscriptionV1SubscriptionProductPriceType + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductPriceType) Get() *MarketplaceSubscriptionV1SubscriptionProductPriceType { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductPriceType) Set(val *MarketplaceSubscriptionV1SubscriptionProductPriceType) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductPriceType) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductPriceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1SubscriptionProductPriceType(val *MarketplaceSubscriptionV1SubscriptionProductPriceType) *NullableMarketplaceSubscriptionV1SubscriptionProductPriceType { + return &NullableMarketplaceSubscriptionV1SubscriptionProductPriceType{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionProductPriceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionProductPriceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_redirect.go b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_redirect.go new file mode 100644 index 0000000000..2d98dc1176 --- /dev/null +++ b/services/stackitmarketplace/v1api/model_marketplace_subscription_v1_subscription_redirect.go @@ -0,0 +1,196 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// checks if the MarketplaceSubscriptionV1SubscriptionRedirect type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketplaceSubscriptionV1SubscriptionRedirect{} + +// MarketplaceSubscriptionV1SubscriptionRedirect struct for MarketplaceSubscriptionV1SubscriptionRedirect +type MarketplaceSubscriptionV1SubscriptionRedirect struct { + RedirectTarget string `json:"redirectTarget"` + RedirectUrl string `json:"redirectUrl"` + AdditionalProperties map[string]interface{} +} + +type _MarketplaceSubscriptionV1SubscriptionRedirect MarketplaceSubscriptionV1SubscriptionRedirect + +// NewMarketplaceSubscriptionV1SubscriptionRedirect instantiates a new MarketplaceSubscriptionV1SubscriptionRedirect object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketplaceSubscriptionV1SubscriptionRedirect(redirectTarget string, redirectUrl string) *MarketplaceSubscriptionV1SubscriptionRedirect { + this := MarketplaceSubscriptionV1SubscriptionRedirect{} + this.RedirectTarget = redirectTarget + this.RedirectUrl = redirectUrl + return &this +} + +// NewMarketplaceSubscriptionV1SubscriptionRedirectWithDefaults instantiates a new MarketplaceSubscriptionV1SubscriptionRedirect object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketplaceSubscriptionV1SubscriptionRedirectWithDefaults() *MarketplaceSubscriptionV1SubscriptionRedirect { + this := MarketplaceSubscriptionV1SubscriptionRedirect{} + return &this +} + +// GetRedirectTarget returns the RedirectTarget field value +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) GetRedirectTarget() string { + if o == nil { + var ret string + return ret + } + + return o.RedirectTarget +} + +// GetRedirectTargetOk returns a tuple with the RedirectTarget field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) GetRedirectTargetOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RedirectTarget, true +} + +// SetRedirectTarget sets field value +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) SetRedirectTarget(v string) { + o.RedirectTarget = v +} + +// GetRedirectUrl returns the RedirectUrl field value +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) GetRedirectUrl() string { + if o == nil { + var ret string + return ret + } + + return o.RedirectUrl +} + +// GetRedirectUrlOk returns a tuple with the RedirectUrl field value +// and a boolean to check if the value has been set. +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) GetRedirectUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RedirectUrl, true +} + +// SetRedirectUrl sets field value +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) SetRedirectUrl(v string) { + o.RedirectUrl = v +} + +func (o MarketplaceSubscriptionV1SubscriptionRedirect) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketplaceSubscriptionV1SubscriptionRedirect) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["redirectTarget"] = o.RedirectTarget + toSerialize["redirectUrl"] = o.RedirectUrl + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MarketplaceSubscriptionV1SubscriptionRedirect) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "redirectTarget", + "redirectUrl", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMarketplaceSubscriptionV1SubscriptionRedirect := _MarketplaceSubscriptionV1SubscriptionRedirect{} + + err = json.Unmarshal(data, &varMarketplaceSubscriptionV1SubscriptionRedirect) + + if err != nil { + return err + } + + *o = MarketplaceSubscriptionV1SubscriptionRedirect(varMarketplaceSubscriptionV1SubscriptionRedirect) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "redirectTarget") + delete(additionalProperties, "redirectUrl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMarketplaceSubscriptionV1SubscriptionRedirect struct { + value *MarketplaceSubscriptionV1SubscriptionRedirect + isSet bool +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionRedirect) Get() *MarketplaceSubscriptionV1SubscriptionRedirect { + return v.value +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionRedirect) Set(val *MarketplaceSubscriptionV1SubscriptionRedirect) { + v.value = val + v.isSet = true +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionRedirect) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionRedirect) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketplaceSubscriptionV1SubscriptionRedirect(val *MarketplaceSubscriptionV1SubscriptionRedirect) *NullableMarketplaceSubscriptionV1SubscriptionRedirect { + return &NullableMarketplaceSubscriptionV1SubscriptionRedirect{value: val, isSet: true} +} + +func (v NullableMarketplaceSubscriptionV1SubscriptionRedirect) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketplaceSubscriptionV1SubscriptionRedirect) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/model_resolve_customer_payload.go b/services/stackitmarketplace/v1api/model_resolve_customer_payload.go new file mode 100644 index 0000000000..23bd44150f --- /dev/null +++ b/services/stackitmarketplace/v1api/model_resolve_customer_payload.go @@ -0,0 +1,168 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// checks if the ResolveCustomerPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResolveCustomerPayload{} + +// ResolveCustomerPayload struct for ResolveCustomerPayload +type ResolveCustomerPayload struct { + // Opaque token exchangeable for subscription details. + Token string `json:"token"` + AdditionalProperties map[string]interface{} +} + +type _ResolveCustomerPayload ResolveCustomerPayload + +// NewResolveCustomerPayload instantiates a new ResolveCustomerPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResolveCustomerPayload(token string) *ResolveCustomerPayload { + this := ResolveCustomerPayload{} + this.Token = token + return &this +} + +// NewResolveCustomerPayloadWithDefaults instantiates a new ResolveCustomerPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResolveCustomerPayloadWithDefaults() *ResolveCustomerPayload { + this := ResolveCustomerPayload{} + return &this +} + +// GetToken returns the Token field value +func (o *ResolveCustomerPayload) GetToken() string { + if o == nil { + var ret string + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *ResolveCustomerPayload) GetTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *ResolveCustomerPayload) SetToken(v string) { + o.Token = v +} + +func (o ResolveCustomerPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResolveCustomerPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["token"] = o.Token + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResolveCustomerPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "token", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varResolveCustomerPayload := _ResolveCustomerPayload{} + + err = json.Unmarshal(data, &varResolveCustomerPayload) + + if err != nil { + return err + } + + *o = ResolveCustomerPayload(varResolveCustomerPayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "token") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResolveCustomerPayload struct { + value *ResolveCustomerPayload + isSet bool +} + +func (v NullableResolveCustomerPayload) Get() *ResolveCustomerPayload { + return v.value +} + +func (v *NullableResolveCustomerPayload) Set(val *ResolveCustomerPayload) { + v.value = val + v.isSet = true +} + +func (v NullableResolveCustomerPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableResolveCustomerPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResolveCustomerPayload(val *ResolveCustomerPayload) *NullableResolveCustomerPayload { + return &NullableResolveCustomerPayload{value: val, isSet: true} +} + +func (v NullableResolveCustomerPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResolveCustomerPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/stackitmarketplace/v1api/response.go b/services/stackitmarketplace/v1api/response.go new file mode 100644 index 0000000000..006dc303f7 --- /dev/null +++ b/services/stackitmarketplace/v1api/response.go @@ -0,0 +1,48 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/stackitmarketplace/v1api/utils.go b/services/stackitmarketplace/v1api/utils.go new file mode 100644 index 0000000000..4f9ea43623 --- /dev/null +++ b/services/stackitmarketplace/v1api/utils.go @@ -0,0 +1,362 @@ +/* +STACKIT Marketplace API + +API to manage STACKIT Marketplace. + +API version: 1 +Contact: marketplace@digits.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} From 37d968f3ab6182c468c432d160579448798f4fa2 Mon Sep 17 00:00:00 2001 From: Ruben Hoenle Date: Fri, 16 Oct 2026 12:32:39 +0200 Subject: [PATCH 2/3] deprecation of old sdk layer --- services/stackitmarketplace/api_default.go | 19 ++ services/stackitmarketplace/client.go | 5 + services/stackitmarketplace/configuration.go | 2 + .../model_approve_subscription_payload.go | 19 ++ services/stackitmarketplace/model_assets.go | 41 ++++ ...model_assets_end_user_license_agreement.go | 21 ++ .../model_assets_product_description.go | 21 ++ .../model_assets_service_level_agreement.go | 21 ++ .../stackitmarketplace/model_become_vendor.go | 29 +++ .../model_catalog_pricing_option_highlight.go | 21 ++ .../model_catalog_product_detail.go | 225 ++++++++++++++++++ .../model_catalog_product_details_vendor.go | 61 +++++ ...odel_catalog_product_facets_value_inner.go | 29 +++ .../model_catalog_product_highlight.go | 39 +++ .../model_catalog_product_overview.go | 79 ++++++ .../model_catalog_product_overview_vendor.go | 37 +++ .../model_catalog_product_pricing_option.go | 122 ++++++++++ .../model_catalog_product_support_resource.go | 30 +++ .../model_catalog_product_vendor_terms.go | 37 +++ .../stackitmarketplace/model_contact_sales.go | 29 +++ .../model_delivery_method.go | 24 +- .../model_error_response.go | 53 +++++ .../stackitmarketplace/model_free_trial.go | 21 ++ .../model_inquiries_create_inquiry_payload.go | 17 ++ .../model_inquiry_become_vendor.go | 29 +++ .../model_inquiry_contact_sales.go | 53 +++++ .../model_inquiry_form_type.go | 27 ++- .../model_inquiry_register_testing.go | 37 +++ .../model_inquiry_request_private_plan.go | 53 +++++ .../model_inquiry_suggest_product.go | 46 ++++ .../model_list_catalog_products_response.go | 46 ++++ ...odel_list_vendor_subscriptions_response.go | 37 +++ .../model_localized_version.go | 30 +++ .../stackitmarketplace/model_notice_period.go | 43 ++++ .../stackitmarketplace/model_offer_type.go | 18 +- .../stackitmarketplace/model_price_type.go | 27 ++- .../model_pricing_option_unit.go | 15 ++ .../model_product_lifecycle_state.go | 18 +- .../model_register_testing.go | 29 +++ .../model_request_private_plan.go | 29 +++ .../model_resolve_customer_payload.go | 21 ++ services/stackitmarketplace/model_scope.go | 21 +- .../model_service_certificate.go | 21 ++ .../model_subscription_id.go | 12 + .../model_subscription_lifecycle_state.go | 30 ++- .../model_subscription_product.go | 112 +++++++++ .../model_suggest_product.go | 29 +++ .../stackitmarketplace/model_vendor_id.go | 12 + .../model_vendor_subscription.go | 53 +++++ services/stackitmarketplace/oas_commit | 1 + services/stackitmarketplace/utils.go | 80 +++++++ 51 files changed, 1911 insertions(+), 20 deletions(-) create mode 100644 services/stackitmarketplace/oas_commit diff --git a/services/stackitmarketplace/api_default.go b/services/stackitmarketplace/api_default.go index 1a6c2a430d..cba61cf93b 100644 --- a/services/stackitmarketplace/api_default.go +++ b/services/stackitmarketplace/api_default.go @@ -8,6 +8,7 @@ API version: 1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead package stackitmarketplace import ( @@ -23,6 +24,7 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type DefaultApi interface { /* ApproveSubscription Approve a subscription @@ -162,26 +164,31 @@ type DefaultApi interface { VendorsSubscriptionsRejectExecute(ctx context.Context, projectId string, subscriptionId string) error } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiApproveSubscriptionRequest interface { ApproveSubscriptionPayload(approveSubscriptionPayload ApproveSubscriptionPayload) ApiApproveSubscriptionRequest Execute() error } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiGetCatalogProductRequest interface { // The language of the response. Locale(locale string) ApiGetCatalogProductRequest Execute() (*CatalogProductDetail, error) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiGetVendorSubscriptionRequest interface { Execute() (*VendorSubscription, error) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiInquiriesCreateInquiryRequest interface { InquiriesCreateInquiryPayload(inquiriesCreateInquiryPayload InquiriesCreateInquiryPayload) ApiInquiriesCreateInquiryRequest Execute() error } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiListCatalogProductsRequest interface { // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. Cursor(cursor string) ApiListCatalogProductsRequest @@ -196,6 +203,7 @@ type ApiListCatalogProductsRequest interface { Execute() (*ListCatalogProductsResponse, error) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiListVendorSubscriptionsRequest interface { // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. Cursor(cursor string) ApiListVendorSubscriptionsRequest @@ -206,18 +214,22 @@ type ApiListVendorSubscriptionsRequest interface { Execute() (*ListVendorSubscriptionsResponse, error) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiResolveCustomerRequest interface { ResolveCustomerPayload(resolveCustomerPayload ResolveCustomerPayload) ApiResolveCustomerRequest Execute() (*VendorSubscription, error) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApiVendorsSubscriptionsRejectRequest interface { Execute() error } // DefaultApiService DefaultApi service +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type DefaultApiService service +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApproveSubscriptionRequest struct { ctx context.Context apiService *DefaultApiService @@ -396,6 +408,7 @@ func (a *APIClient) ApproveSubscriptionExecute(ctx context.Context, projectId st return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type GetCatalogProductRequest struct { ctx context.Context apiService *DefaultApiService @@ -580,6 +593,7 @@ func (a *APIClient) GetCatalogProductExecute(ctx context.Context, productId stri return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type GetVendorSubscriptionRequest struct { ctx context.Context apiService *DefaultApiService @@ -761,6 +775,7 @@ func (a *APIClient) GetVendorSubscriptionExecute(ctx context.Context, projectId return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiriesCreateInquiryRequest struct { ctx context.Context apiService *DefaultApiService @@ -923,6 +938,7 @@ func (a *APIClient) InquiriesCreateInquiryExecute(ctx context.Context) error { return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsRequest struct { ctx context.Context apiService *DefaultApiService @@ -1129,6 +1145,7 @@ func (a *APIClient) ListCatalogProductsExecute(ctx context.Context) (*ListCatalo return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsRequest struct { ctx context.Context apiService *DefaultApiService @@ -1321,6 +1338,7 @@ func (a *APIClient) ListVendorSubscriptionsExecute(ctx context.Context, projectI return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ResolveCustomerRequest struct { ctx context.Context apiService *DefaultApiService @@ -1502,6 +1520,7 @@ func (a *APIClient) ResolveCustomerExecute(ctx context.Context, projectId string return r.Execute() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorsSubscriptionsRejectRequest struct { ctx context.Context apiService *DefaultApiService diff --git a/services/stackitmarketplace/client.go b/services/stackitmarketplace/client.go index faf96b1648..8003921cb1 100644 --- a/services/stackitmarketplace/client.go +++ b/services/stackitmarketplace/client.go @@ -8,6 +8,7 @@ API version: 1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead package stackitmarketplace import ( @@ -44,6 +45,7 @@ var ( // APIClient manages communication with the STACKIT Marketplace API API v1 // In most cases there should be only one, shared, APIClient. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type APIClient struct { cfg *config.Configuration common service // Reuse a single struct instead of allocating one for each service on the heap. @@ -56,6 +58,7 @@ type service struct { // NewAPIClient creates a new API client. // Optionally receives configuration options +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { cfg := NewConfiguration() @@ -147,6 +150,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func ParameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { return fmt.Sprintf("%v", obj) @@ -598,6 +602,7 @@ func parseCacheControl(headers http.Header) cacheControl { } // CacheExpires helper function to determine remaining time before repeating a request. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func CacheExpires(r *http.Response) time.Time { // Figure out when the cache expires. var expires time.Time diff --git a/services/stackitmarketplace/configuration.go b/services/stackitmarketplace/configuration.go index 40f2f79e98..525cea60cf 100644 --- a/services/stackitmarketplace/configuration.go +++ b/services/stackitmarketplace/configuration.go @@ -8,6 +8,7 @@ API version: 1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead package stackitmarketplace import ( @@ -15,6 +16,7 @@ import ( ) // NewConfiguration returns a new Configuration object +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewConfiguration() *config.Configuration { cfg := &config.Configuration{ DefaultHeader: make(map[string]string), diff --git a/services/stackitmarketplace/model_approve_subscription_payload.go b/services/stackitmarketplace/model_approve_subscription_payload.go index 956d25c1f0..cebf079424 100644 --- a/services/stackitmarketplace/model_approve_subscription_payload.go +++ b/services/stackitmarketplace/model_approve_subscription_payload.go @@ -8,6 +8,7 @@ API version: 1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead package stackitmarketplace import ( @@ -22,6 +23,7 @@ var _ MappedNullable = &ApproveSubscriptionPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApproveSubscriptionPayloadGetInstanceTargetAttributeType = *string func getApproveSubscriptionPayloadGetInstanceTargetAttributeTypeOk(arg ApproveSubscriptionPayloadGetInstanceTargetAttributeType) (ret ApproveSubscriptionPayloadGetInstanceTargetRetType, ok bool) { @@ -35,10 +37,13 @@ func setApproveSubscriptionPayloadGetInstanceTargetAttributeType(arg *ApproveSub *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApproveSubscriptionPayloadGetInstanceTargetArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApproveSubscriptionPayloadGetInstanceTargetRetType = string // ApproveSubscriptionPayload struct for ApproveSubscriptionPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ApproveSubscriptionPayload struct { // Uniform Resource Locator. InstanceTarget ApproveSubscriptionPayloadGetInstanceTargetAttributeType `json:"instanceTarget,omitempty"` @@ -48,6 +53,7 @@ type ApproveSubscriptionPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewApproveSubscriptionPayload() *ApproveSubscriptionPayload { this := ApproveSubscriptionPayload{} return &this @@ -56,12 +62,14 @@ func NewApproveSubscriptionPayload() *ApproveSubscriptionPayload { // NewApproveSubscriptionPayloadWithDefaults instantiates a new ApproveSubscriptionPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewApproveSubscriptionPayloadWithDefaults() *ApproveSubscriptionPayload { this := ApproveSubscriptionPayload{} return &this } // GetInstanceTarget returns the InstanceTarget field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ApproveSubscriptionPayload) GetInstanceTarget() (res ApproveSubscriptionPayloadGetInstanceTargetRetType) { res, _ = o.GetInstanceTargetOk() return @@ -74,16 +82,19 @@ func (o *ApproveSubscriptionPayload) GetInstanceTargetOk() (ret ApproveSubscript } // HasInstanceTarget returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ApproveSubscriptionPayload) HasInstanceTarget() bool { _, ok := o.GetInstanceTargetOk() return ok } // SetInstanceTarget gets a reference to the given string and assigns it to the InstanceTarget field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ApproveSubscriptionPayload) SetInstanceTarget(v ApproveSubscriptionPayloadGetInstanceTargetRetType) { setApproveSubscriptionPayloadGetInstanceTargetAttributeType(&o.InstanceTarget, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ApproveSubscriptionPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getApproveSubscriptionPayloadGetInstanceTargetAttributeTypeOk(o.InstanceTarget); ok { @@ -92,37 +103,45 @@ func (o ApproveSubscriptionPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableApproveSubscriptionPayload struct { value *ApproveSubscriptionPayload isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableApproveSubscriptionPayload) Get() *ApproveSubscriptionPayload { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableApproveSubscriptionPayload) Set(val *ApproveSubscriptionPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableApproveSubscriptionPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableApproveSubscriptionPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableApproveSubscriptionPayload(val *ApproveSubscriptionPayload) *NullableApproveSubscriptionPayload { return &NullableApproveSubscriptionPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableApproveSubscriptionPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableApproveSubscriptionPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_assets.go b/services/stackitmarketplace/model_assets.go index 3051ba58cb..b74d2acfdc 100644 --- a/services/stackitmarketplace/model_assets.go +++ b/services/stackitmarketplace/model_assets.go @@ -8,6 +8,7 @@ API version: 1 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead package stackitmarketplace import ( @@ -22,8 +23,11 @@ var _ MappedNullable = &Assets{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetEndUserLicenseAgreementAttributeType = *AssetsEndUserLicenseAgreement +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetEndUserLicenseAgreementArgType = AssetsEndUserLicenseAgreement +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetEndUserLicenseAgreementRetType = AssetsEndUserLicenseAgreement func getAssetsGetEndUserLicenseAgreementAttributeTypeOk(arg AssetsGetEndUserLicenseAgreementAttributeType) (ret AssetsGetEndUserLicenseAgreementRetType, ok bool) { @@ -42,8 +46,11 @@ func setAssetsGetEndUserLicenseAgreementAttributeType(arg *AssetsGetEndUserLicen */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetProductDescriptionAttributeType = *AssetsProductDescription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetProductDescriptionArgType = AssetsProductDescription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetProductDescriptionRetType = AssetsProductDescription func getAssetsGetProductDescriptionAttributeTypeOk(arg AssetsGetProductDescriptionAttributeType) (ret AssetsGetProductDescriptionRetType, ok bool) { @@ -62,8 +69,11 @@ func setAssetsGetProductDescriptionAttributeType(arg *AssetsGetProductDescriptio */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetServiceCertificateAttributeType = *ServiceCertificate +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetServiceCertificateArgType = ServiceCertificate +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetServiceCertificateRetType = ServiceCertificate func getAssetsGetServiceCertificateAttributeTypeOk(arg AssetsGetServiceCertificateAttributeType) (ret AssetsGetServiceCertificateRetType, ok bool) { @@ -82,8 +92,11 @@ func setAssetsGetServiceCertificateAttributeType(arg *AssetsGetServiceCertificat */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetServiceLevelAgreementAttributeType = *AssetsServiceLevelAgreement +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetServiceLevelAgreementArgType = AssetsServiceLevelAgreement +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsGetServiceLevelAgreementRetType = AssetsServiceLevelAgreement func getAssetsGetServiceLevelAgreementAttributeTypeOk(arg AssetsGetServiceLevelAgreementAttributeType) (ret AssetsGetServiceLevelAgreementRetType, ok bool) { @@ -98,6 +111,7 @@ func setAssetsGetServiceLevelAgreementAttributeType(arg *AssetsGetServiceLevelAg } // Assets The assets associated with the product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type Assets struct { EndUserLicenseAgreement AssetsGetEndUserLicenseAgreementAttributeType `json:"endUserLicenseAgreement,omitempty"` ProductDescription AssetsGetProductDescriptionAttributeType `json:"productDescription,omitempty"` @@ -109,6 +123,7 @@ type Assets struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssets() *Assets { this := Assets{} return &this @@ -117,12 +132,14 @@ func NewAssets() *Assets { // NewAssetsWithDefaults instantiates a new Assets object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsWithDefaults() *Assets { this := Assets{} return &this } // GetEndUserLicenseAgreement returns the EndUserLicenseAgreement field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetEndUserLicenseAgreement() (res AssetsGetEndUserLicenseAgreementRetType) { res, _ = o.GetEndUserLicenseAgreementOk() return @@ -130,22 +147,26 @@ func (o *Assets) GetEndUserLicenseAgreement() (res AssetsGetEndUserLicenseAgreem // GetEndUserLicenseAgreementOk returns a tuple with the EndUserLicenseAgreement field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetEndUserLicenseAgreementOk() (ret AssetsGetEndUserLicenseAgreementRetType, ok bool) { return getAssetsGetEndUserLicenseAgreementAttributeTypeOk(o.EndUserLicenseAgreement) } // HasEndUserLicenseAgreement returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) HasEndUserLicenseAgreement() bool { _, ok := o.GetEndUserLicenseAgreementOk() return ok } // SetEndUserLicenseAgreement gets a reference to the given AssetsEndUserLicenseAgreement and assigns it to the EndUserLicenseAgreement field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) SetEndUserLicenseAgreement(v AssetsGetEndUserLicenseAgreementRetType) { setAssetsGetEndUserLicenseAgreementAttributeType(&o.EndUserLicenseAgreement, v) } // GetProductDescription returns the ProductDescription field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetProductDescription() (res AssetsGetProductDescriptionRetType) { res, _ = o.GetProductDescriptionOk() return @@ -153,22 +174,26 @@ func (o *Assets) GetProductDescription() (res AssetsGetProductDescriptionRetType // GetProductDescriptionOk returns a tuple with the ProductDescription field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetProductDescriptionOk() (ret AssetsGetProductDescriptionRetType, ok bool) { return getAssetsGetProductDescriptionAttributeTypeOk(o.ProductDescription) } // HasProductDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) HasProductDescription() bool { _, ok := o.GetProductDescriptionOk() return ok } // SetProductDescription gets a reference to the given AssetsProductDescription and assigns it to the ProductDescription field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) SetProductDescription(v AssetsGetProductDescriptionRetType) { setAssetsGetProductDescriptionAttributeType(&o.ProductDescription, v) } // GetServiceCertificate returns the ServiceCertificate field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetServiceCertificate() (res AssetsGetServiceCertificateRetType) { res, _ = o.GetServiceCertificateOk() return @@ -176,22 +201,26 @@ func (o *Assets) GetServiceCertificate() (res AssetsGetServiceCertificateRetType // GetServiceCertificateOk returns a tuple with the ServiceCertificate field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetServiceCertificateOk() (ret AssetsGetServiceCertificateRetType, ok bool) { return getAssetsGetServiceCertificateAttributeTypeOk(o.ServiceCertificate) } // HasServiceCertificate returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) HasServiceCertificate() bool { _, ok := o.GetServiceCertificateOk() return ok } // SetServiceCertificate gets a reference to the given ServiceCertificate and assigns it to the ServiceCertificate field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) SetServiceCertificate(v AssetsGetServiceCertificateRetType) { setAssetsGetServiceCertificateAttributeType(&o.ServiceCertificate, v) } // GetServiceLevelAgreement returns the ServiceLevelAgreement field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetServiceLevelAgreement() (res AssetsGetServiceLevelAgreementRetType) { res, _ = o.GetServiceLevelAgreementOk() return @@ -199,21 +228,25 @@ func (o *Assets) GetServiceLevelAgreement() (res AssetsGetServiceLevelAgreementR // GetServiceLevelAgreementOk returns a tuple with the ServiceLevelAgreement field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) GetServiceLevelAgreementOk() (ret AssetsGetServiceLevelAgreementRetType, ok bool) { return getAssetsGetServiceLevelAgreementAttributeTypeOk(o.ServiceLevelAgreement) } // HasServiceLevelAgreement returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) HasServiceLevelAgreement() bool { _, ok := o.GetServiceLevelAgreementOk() return ok } // SetServiceLevelAgreement gets a reference to the given AssetsServiceLevelAgreement and assigns it to the ServiceLevelAgreement field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *Assets) SetServiceLevelAgreement(v AssetsGetServiceLevelAgreementRetType) { setAssetsGetServiceLevelAgreementAttributeType(&o.ServiceLevelAgreement, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o Assets) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAssetsGetEndUserLicenseAgreementAttributeTypeOk(o.EndUserLicenseAgreement); ok { @@ -231,37 +264,45 @@ func (o Assets) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableAssets struct { value *Assets isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssets) Get() *Assets { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssets) Set(val *Assets) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssets) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssets) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableAssets(val *Assets) *NullableAssets { return &NullableAssets{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssets) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssets) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_assets_end_user_license_agreement.go b/services/stackitmarketplace/model_assets_end_user_license_agreement.go index 185634792a..4911386baf 100644 --- a/services/stackitmarketplace/model_assets_end_user_license_agreement.go +++ b/services/stackitmarketplace/model_assets_end_user_license_agreement.go @@ -22,10 +22,14 @@ var _ MappedNullable = &AssetsEndUserLicenseAgreement{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsEndUserLicenseAgreementGetVersionAttributeType = *LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsEndUserLicenseAgreementGetVersionArgType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsEndUserLicenseAgreementGetVersionRetType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getAssetsEndUserLicenseAgreementGetVersionAttributeTypeOk(arg AssetsEndUserLicenseAgreementGetVersionAttributeType) (ret AssetsEndUserLicenseAgreementGetVersionRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +37,13 @@ func getAssetsEndUserLicenseAgreementGetVersionAttributeTypeOk(arg AssetsEndUser return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setAssetsEndUserLicenseAgreementGetVersionAttributeType(arg *AssetsEndUserLicenseAgreementGetVersionAttributeType, val AssetsEndUserLicenseAgreementGetVersionRetType) { *arg = &val } // AssetsEndUserLicenseAgreement The related end user license agreement of the (subscription) product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsEndUserLicenseAgreement struct { Version AssetsEndUserLicenseAgreementGetVersionAttributeType `json:"version,omitempty"` } @@ -46,6 +52,7 @@ type AssetsEndUserLicenseAgreement struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsEndUserLicenseAgreement() *AssetsEndUserLicenseAgreement { this := AssetsEndUserLicenseAgreement{} return &this @@ -54,12 +61,14 @@ func NewAssetsEndUserLicenseAgreement() *AssetsEndUserLicenseAgreement { // NewAssetsEndUserLicenseAgreementWithDefaults instantiates a new AssetsEndUserLicenseAgreement object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsEndUserLicenseAgreementWithDefaults() *AssetsEndUserLicenseAgreement { this := AssetsEndUserLicenseAgreement{} return &this } // GetVersion returns the Version field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsEndUserLicenseAgreement) GetVersion() (res AssetsEndUserLicenseAgreementGetVersionRetType) { res, _ = o.GetVersionOk() return @@ -67,21 +76,25 @@ func (o *AssetsEndUserLicenseAgreement) GetVersion() (res AssetsEndUserLicenseAg // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsEndUserLicenseAgreement) GetVersionOk() (ret AssetsEndUserLicenseAgreementGetVersionRetType, ok bool) { return getAssetsEndUserLicenseAgreementGetVersionAttributeTypeOk(o.Version) } // HasVersion returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsEndUserLicenseAgreement) HasVersion() bool { _, ok := o.GetVersionOk() return ok } // SetVersion gets a reference to the given LocalizedVersion and assigns it to the Version field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsEndUserLicenseAgreement) SetVersion(v AssetsEndUserLicenseAgreementGetVersionRetType) { setAssetsEndUserLicenseAgreementGetVersionAttributeType(&o.Version, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o AssetsEndUserLicenseAgreement) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAssetsEndUserLicenseAgreementGetVersionAttributeTypeOk(o.Version); ok { @@ -90,37 +103,45 @@ func (o AssetsEndUserLicenseAgreement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableAssetsEndUserLicenseAgreement struct { value *AssetsEndUserLicenseAgreement isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsEndUserLicenseAgreement) Get() *AssetsEndUserLicenseAgreement { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsEndUserLicenseAgreement) Set(val *AssetsEndUserLicenseAgreement) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsEndUserLicenseAgreement) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsEndUserLicenseAgreement) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableAssetsEndUserLicenseAgreement(val *AssetsEndUserLicenseAgreement) *NullableAssetsEndUserLicenseAgreement { return &NullableAssetsEndUserLicenseAgreement{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsEndUserLicenseAgreement) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsEndUserLicenseAgreement) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_assets_product_description.go b/services/stackitmarketplace/model_assets_product_description.go index 40e859f044..b0ea29168c 100644 --- a/services/stackitmarketplace/model_assets_product_description.go +++ b/services/stackitmarketplace/model_assets_product_description.go @@ -22,10 +22,14 @@ var _ MappedNullable = &AssetsProductDescription{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsProductDescriptionGetVersionAttributeType = *LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsProductDescriptionGetVersionArgType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsProductDescriptionGetVersionRetType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getAssetsProductDescriptionGetVersionAttributeTypeOk(arg AssetsProductDescriptionGetVersionAttributeType) (ret AssetsProductDescriptionGetVersionRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +37,13 @@ func getAssetsProductDescriptionGetVersionAttributeTypeOk(arg AssetsProductDescr return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setAssetsProductDescriptionGetVersionAttributeType(arg *AssetsProductDescriptionGetVersionAttributeType, val AssetsProductDescriptionGetVersionRetType) { *arg = &val } // AssetsProductDescription The related product description of the (subscription) product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsProductDescription struct { Version AssetsProductDescriptionGetVersionAttributeType `json:"version,omitempty"` } @@ -46,6 +52,7 @@ type AssetsProductDescription struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsProductDescription() *AssetsProductDescription { this := AssetsProductDescription{} return &this @@ -54,12 +61,14 @@ func NewAssetsProductDescription() *AssetsProductDescription { // NewAssetsProductDescriptionWithDefaults instantiates a new AssetsProductDescription object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsProductDescriptionWithDefaults() *AssetsProductDescription { this := AssetsProductDescription{} return &this } // GetVersion returns the Version field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsProductDescription) GetVersion() (res AssetsProductDescriptionGetVersionRetType) { res, _ = o.GetVersionOk() return @@ -67,21 +76,25 @@ func (o *AssetsProductDescription) GetVersion() (res AssetsProductDescriptionGet // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsProductDescription) GetVersionOk() (ret AssetsProductDescriptionGetVersionRetType, ok bool) { return getAssetsProductDescriptionGetVersionAttributeTypeOk(o.Version) } // HasVersion returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsProductDescription) HasVersion() bool { _, ok := o.GetVersionOk() return ok } // SetVersion gets a reference to the given LocalizedVersion and assigns it to the Version field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsProductDescription) SetVersion(v AssetsProductDescriptionGetVersionRetType) { setAssetsProductDescriptionGetVersionAttributeType(&o.Version, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o AssetsProductDescription) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAssetsProductDescriptionGetVersionAttributeTypeOk(o.Version); ok { @@ -90,37 +103,45 @@ func (o AssetsProductDescription) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableAssetsProductDescription struct { value *AssetsProductDescription isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsProductDescription) Get() *AssetsProductDescription { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsProductDescription) Set(val *AssetsProductDescription) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsProductDescription) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsProductDescription) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableAssetsProductDescription(val *AssetsProductDescription) *NullableAssetsProductDescription { return &NullableAssetsProductDescription{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsProductDescription) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsProductDescription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_assets_service_level_agreement.go b/services/stackitmarketplace/model_assets_service_level_agreement.go index ffb33d5223..b8288ebcad 100644 --- a/services/stackitmarketplace/model_assets_service_level_agreement.go +++ b/services/stackitmarketplace/model_assets_service_level_agreement.go @@ -22,10 +22,14 @@ var _ MappedNullable = &AssetsServiceLevelAgreement{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsServiceLevelAgreementGetVersionAttributeType = *LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsServiceLevelAgreementGetVersionArgType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsServiceLevelAgreementGetVersionRetType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getAssetsServiceLevelAgreementGetVersionAttributeTypeOk(arg AssetsServiceLevelAgreementGetVersionAttributeType) (ret AssetsServiceLevelAgreementGetVersionRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +37,13 @@ func getAssetsServiceLevelAgreementGetVersionAttributeTypeOk(arg AssetsServiceLe return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setAssetsServiceLevelAgreementGetVersionAttributeType(arg *AssetsServiceLevelAgreementGetVersionAttributeType, val AssetsServiceLevelAgreementGetVersionRetType) { *arg = &val } // AssetsServiceLevelAgreement The related service level agreement of the (subscription) product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type AssetsServiceLevelAgreement struct { Version AssetsServiceLevelAgreementGetVersionAttributeType `json:"version,omitempty"` } @@ -46,6 +52,7 @@ type AssetsServiceLevelAgreement struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsServiceLevelAgreement() *AssetsServiceLevelAgreement { this := AssetsServiceLevelAgreement{} return &this @@ -54,12 +61,14 @@ func NewAssetsServiceLevelAgreement() *AssetsServiceLevelAgreement { // NewAssetsServiceLevelAgreementWithDefaults instantiates a new AssetsServiceLevelAgreement object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewAssetsServiceLevelAgreementWithDefaults() *AssetsServiceLevelAgreement { this := AssetsServiceLevelAgreement{} return &this } // GetVersion returns the Version field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsServiceLevelAgreement) GetVersion() (res AssetsServiceLevelAgreementGetVersionRetType) { res, _ = o.GetVersionOk() return @@ -67,21 +76,25 @@ func (o *AssetsServiceLevelAgreement) GetVersion() (res AssetsServiceLevelAgreem // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsServiceLevelAgreement) GetVersionOk() (ret AssetsServiceLevelAgreementGetVersionRetType, ok bool) { return getAssetsServiceLevelAgreementGetVersionAttributeTypeOk(o.Version) } // HasVersion returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsServiceLevelAgreement) HasVersion() bool { _, ok := o.GetVersionOk() return ok } // SetVersion gets a reference to the given LocalizedVersion and assigns it to the Version field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *AssetsServiceLevelAgreement) SetVersion(v AssetsServiceLevelAgreementGetVersionRetType) { setAssetsServiceLevelAgreementGetVersionAttributeType(&o.Version, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o AssetsServiceLevelAgreement) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getAssetsServiceLevelAgreementGetVersionAttributeTypeOk(o.Version); ok { @@ -90,37 +103,45 @@ func (o AssetsServiceLevelAgreement) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableAssetsServiceLevelAgreement struct { value *AssetsServiceLevelAgreement isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsServiceLevelAgreement) Get() *AssetsServiceLevelAgreement { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsServiceLevelAgreement) Set(val *AssetsServiceLevelAgreement) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsServiceLevelAgreement) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsServiceLevelAgreement) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableAssetsServiceLevelAgreement(val *AssetsServiceLevelAgreement) *NullableAssetsServiceLevelAgreement { return &NullableAssetsServiceLevelAgreement{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableAssetsServiceLevelAgreement) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableAssetsServiceLevelAgreement) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_become_vendor.go b/services/stackitmarketplace/model_become_vendor.go index 8e0412783a..f23c398e42 100644 --- a/services/stackitmarketplace/model_become_vendor.go +++ b/services/stackitmarketplace/model_become_vendor.go @@ -22,10 +22,14 @@ var _ MappedNullable = &BecomeVendor{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendorGetBecomeVendorAttributeType = *InquiryBecomeVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendorGetBecomeVendorArgType = InquiryBecomeVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendorGetBecomeVendorRetType = InquiryBecomeVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getBecomeVendorGetBecomeVendorAttributeTypeOk(arg BecomeVendorGetBecomeVendorAttributeType) (ret BecomeVendorGetBecomeVendorRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getBecomeVendorGetBecomeVendorAttributeTypeOk(arg BecomeVendorGetBecomeVend return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setBecomeVendorGetBecomeVendorAttributeType(arg *BecomeVendorGetBecomeVendorAttributeType, val BecomeVendorGetBecomeVendorRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setBecomeVendorGetBecomeVendorAttributeType(arg *BecomeVendorGetBecomeVendo */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendorGetTypeAttributeType = *InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendorGetTypeArgType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendorGetTypeRetType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getBecomeVendorGetTypeAttributeTypeOk(arg BecomeVendorGetTypeAttributeType) (ret BecomeVendorGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +62,13 @@ func getBecomeVendorGetTypeAttributeTypeOk(arg BecomeVendorGetTypeAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setBecomeVendorGetTypeAttributeType(arg *BecomeVendorGetTypeAttributeType, val BecomeVendorGetTypeRetType) { *arg = &val } // BecomeVendor Become a Vendor. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type BecomeVendor struct { // REQUIRED BecomeVendor BecomeVendorGetBecomeVendorAttributeType `json:"becomeVendor" required:"true"` @@ -65,12 +76,14 @@ type BecomeVendor struct { Type BecomeVendorGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _BecomeVendor BecomeVendor // NewBecomeVendor instantiates a new BecomeVendor object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewBecomeVendor(becomeVendor BecomeVendorGetBecomeVendorArgType, types BecomeVendorGetTypeArgType) *BecomeVendor { this := BecomeVendor{} setBecomeVendorGetBecomeVendorAttributeType(&this.BecomeVendor, becomeVendor) @@ -81,12 +94,14 @@ func NewBecomeVendor(becomeVendor BecomeVendorGetBecomeVendorArgType, types Beco // NewBecomeVendorWithDefaults instantiates a new BecomeVendor object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewBecomeVendorWithDefaults() *BecomeVendor { this := BecomeVendor{} return &this } // GetBecomeVendor returns the BecomeVendor field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *BecomeVendor) GetBecomeVendor() (ret BecomeVendorGetBecomeVendorRetType) { ret, _ = o.GetBecomeVendorOk() return ret @@ -94,16 +109,19 @@ func (o *BecomeVendor) GetBecomeVendor() (ret BecomeVendorGetBecomeVendorRetType // GetBecomeVendorOk returns a tuple with the BecomeVendor field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *BecomeVendor) GetBecomeVendorOk() (ret BecomeVendorGetBecomeVendorRetType, ok bool) { return getBecomeVendorGetBecomeVendorAttributeTypeOk(o.BecomeVendor) } // SetBecomeVendor sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *BecomeVendor) SetBecomeVendor(v BecomeVendorGetBecomeVendorRetType) { setBecomeVendorGetBecomeVendorAttributeType(&o.BecomeVendor, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *BecomeVendor) GetType() (ret BecomeVendorGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -111,15 +129,18 @@ func (o *BecomeVendor) GetType() (ret BecomeVendorGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *BecomeVendor) GetTypeOk() (ret BecomeVendorGetTypeRetType, ok bool) { return getBecomeVendorGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *BecomeVendor) SetType(v BecomeVendorGetTypeRetType) { setBecomeVendorGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o BecomeVendor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBecomeVendorGetBecomeVendorAttributeTypeOk(o.BecomeVendor); ok { @@ -131,37 +152,45 @@ func (o BecomeVendor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableBecomeVendor struct { value *BecomeVendor isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableBecomeVendor) Get() *BecomeVendor { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableBecomeVendor) Set(val *BecomeVendor) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableBecomeVendor) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableBecomeVendor) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableBecomeVendor(val *BecomeVendor) *NullableBecomeVendor { return &NullableBecomeVendor{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableBecomeVendor) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableBecomeVendor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_pricing_option_highlight.go b/services/stackitmarketplace/model_catalog_pricing_option_highlight.go index 2fb8a589b6..8bcaff0719 100644 --- a/services/stackitmarketplace/model_catalog_pricing_option_highlight.go +++ b/services/stackitmarketplace/model_catalog_pricing_option_highlight.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogPricingOptionHighlight{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogPricingOptionHighlightGetHighlightContentAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogPricingOptionHighlightGetHighlightContentAttributeTypeOk(arg CatalogPricingOptionHighlightGetHighlightContentAttributeType) (ret CatalogPricingOptionHighlightGetHighlightContentRetType, ok bool) { if arg == nil { return ret, false @@ -31,14 +33,18 @@ func getCatalogPricingOptionHighlightGetHighlightContentAttributeTypeOk(arg Cata return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogPricingOptionHighlightGetHighlightContentAttributeType(arg *CatalogPricingOptionHighlightGetHighlightContentAttributeType, val CatalogPricingOptionHighlightGetHighlightContentRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogPricingOptionHighlightGetHighlightContentArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogPricingOptionHighlightGetHighlightContentRetType = string // CatalogPricingOptionHighlight struct for CatalogPricingOptionHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogPricingOptionHighlight struct { // The highlight content. HighlightContent CatalogPricingOptionHighlightGetHighlightContentAttributeType `json:"highlightContent,omitempty"` @@ -48,6 +54,7 @@ type CatalogPricingOptionHighlight struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogPricingOptionHighlight() *CatalogPricingOptionHighlight { this := CatalogPricingOptionHighlight{} return &this @@ -56,12 +63,14 @@ func NewCatalogPricingOptionHighlight() *CatalogPricingOptionHighlight { // NewCatalogPricingOptionHighlightWithDefaults instantiates a new CatalogPricingOptionHighlight object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogPricingOptionHighlightWithDefaults() *CatalogPricingOptionHighlight { this := CatalogPricingOptionHighlight{} return &this } // GetHighlightContent returns the HighlightContent field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogPricingOptionHighlight) GetHighlightContent() (res CatalogPricingOptionHighlightGetHighlightContentRetType) { res, _ = o.GetHighlightContentOk() return @@ -69,21 +78,25 @@ func (o *CatalogPricingOptionHighlight) GetHighlightContent() (res CatalogPricin // GetHighlightContentOk returns a tuple with the HighlightContent field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogPricingOptionHighlight) GetHighlightContentOk() (ret CatalogPricingOptionHighlightGetHighlightContentRetType, ok bool) { return getCatalogPricingOptionHighlightGetHighlightContentAttributeTypeOk(o.HighlightContent) } // HasHighlightContent returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogPricingOptionHighlight) HasHighlightContent() bool { _, ok := o.GetHighlightContentOk() return ok } // SetHighlightContent gets a reference to the given string and assigns it to the HighlightContent field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogPricingOptionHighlight) SetHighlightContent(v CatalogPricingOptionHighlightGetHighlightContentRetType) { setCatalogPricingOptionHighlightGetHighlightContentAttributeType(&o.HighlightContent, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogPricingOptionHighlight) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogPricingOptionHighlightGetHighlightContentAttributeTypeOk(o.HighlightContent); ok { @@ -92,37 +105,45 @@ func (o CatalogPricingOptionHighlight) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogPricingOptionHighlight struct { value *CatalogPricingOptionHighlight isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogPricingOptionHighlight) Get() *CatalogPricingOptionHighlight { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogPricingOptionHighlight) Set(val *CatalogPricingOptionHighlight) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogPricingOptionHighlight) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogPricingOptionHighlight) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogPricingOptionHighlight(val *CatalogPricingOptionHighlight) *NullableCatalogPricingOptionHighlight { return &NullableCatalogPricingOptionHighlight{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogPricingOptionHighlight) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogPricingOptionHighlight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_detail.go b/services/stackitmarketplace/model_catalog_product_detail.go index 2e3c6da102..78fa8aa3fd 100644 --- a/services/stackitmarketplace/model_catalog_product_detail.go +++ b/services/stackitmarketplace/model_catalog_product_detail.go @@ -22,10 +22,14 @@ var _ MappedNullable = &CatalogProductDetail{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetAssetsAttributeType = *Assets +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetAssetsArgType = Assets +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetAssetsRetType = Assets +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetAssetsAttributeTypeOk(arg CatalogProductDetailGetAssetsAttributeType) (ret CatalogProductDetailGetAssetsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getCatalogProductDetailGetAssetsAttributeTypeOk(arg CatalogProductDetailGet return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetAssetsAttributeType(arg *CatalogProductDetailGetAssetsAttributeType, val CatalogProductDetailGetAssetsRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setCatalogProductDetailGetAssetsAttributeType(arg *CatalogProductDetailGetA */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetCategoriesAttributeType = *[]string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetCategoriesArgType = []string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetCategoriesRetType = []string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetCategoriesAttributeTypeOk(arg CatalogProductDetailGetCategoriesAttributeType) (ret CatalogProductDetailGetCategoriesRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +62,7 @@ func getCatalogProductDetailGetCategoriesAttributeTypeOk(arg CatalogProductDetai return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetCategoriesAttributeType(arg *CatalogProductDetailGetCategoriesAttributeType, val CatalogProductDetailGetCategoriesRetType) { *arg = &val } @@ -62,10 +72,14 @@ func setCatalogProductDetailGetCategoriesAttributeType(arg *CatalogProductDetail */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDeliveryMethodAttributeType = *DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDeliveryMethodArgType = DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDeliveryMethodRetType = DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetDeliveryMethodAttributeTypeOk(arg CatalogProductDetailGetDeliveryMethodAttributeType) (ret CatalogProductDetailGetDeliveryMethodRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +87,7 @@ func getCatalogProductDetailGetDeliveryMethodAttributeTypeOk(arg CatalogProductD return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetDeliveryMethodAttributeType(arg *CatalogProductDetailGetDeliveryMethodAttributeType, val CatalogProductDetailGetDeliveryMethodRetType) { *arg = &val } @@ -82,8 +97,10 @@ func setCatalogProductDetailGetDeliveryMethodAttributeType(arg *CatalogProductDe */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDemoUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetDemoUrlAttributeTypeOk(arg CatalogProductDetailGetDemoUrlAttributeType) (ret CatalogProductDetailGetDemoUrlRetType, ok bool) { if arg == nil { return ret, false @@ -91,11 +108,14 @@ func getCatalogProductDetailGetDemoUrlAttributeTypeOk(arg CatalogProductDetailGe return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetDemoUrlAttributeType(arg *CatalogProductDetailGetDemoUrlAttributeType, val CatalogProductDetailGetDemoUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDemoUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDemoUrlRetType = string /* @@ -103,8 +123,10 @@ type CatalogProductDetailGetDemoUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetDescriptionAttributeTypeOk(arg CatalogProductDetailGetDescriptionAttributeType) (ret CatalogProductDetailGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -112,11 +134,14 @@ func getCatalogProductDetailGetDescriptionAttributeTypeOk(arg CatalogProductDeta return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetDescriptionAttributeType(arg *CatalogProductDetailGetDescriptionAttributeType, val CatalogProductDetailGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDescriptionArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDescriptionRetType = string /* @@ -124,8 +149,10 @@ type CatalogProductDetailGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDocumentationUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetDocumentationUrlAttributeTypeOk(arg CatalogProductDetailGetDocumentationUrlAttributeType) (ret CatalogProductDetailGetDocumentationUrlRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +160,14 @@ func getCatalogProductDetailGetDocumentationUrlAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetDocumentationUrlAttributeType(arg *CatalogProductDetailGetDocumentationUrlAttributeType, val CatalogProductDetailGetDocumentationUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDocumentationUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetDocumentationUrlRetType = string /* @@ -145,8 +175,10 @@ type CatalogProductDetailGetDocumentationUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetEmailAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetEmailAttributeTypeOk(arg CatalogProductDetailGetEmailAttributeType) (ret CatalogProductDetailGetEmailRetType, ok bool) { if arg == nil { return ret, false @@ -154,11 +186,14 @@ func getCatalogProductDetailGetEmailAttributeTypeOk(arg CatalogProductDetailGetE return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetEmailAttributeType(arg *CatalogProductDetailGetEmailAttributeType, val CatalogProductDetailGetEmailRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetEmailArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetEmailRetType = string /* @@ -166,10 +201,14 @@ type CatalogProductDetailGetEmailRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetHasDemoAttributeType = *bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetHasDemoArgType = bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetHasDemoRetType = bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailgetHasDemoAttributeTypeOk(arg CatalogProductDetailgetHasDemoAttributeType) (ret CatalogProductDetailgetHasDemoRetType, ok bool) { if arg == nil { return ret, false @@ -177,6 +216,7 @@ func getCatalogProductDetailgetHasDemoAttributeTypeOk(arg CatalogProductDetailge return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailgetHasDemoAttributeType(arg *CatalogProductDetailgetHasDemoAttributeType, val CatalogProductDetailgetHasDemoRetType) { *arg = &val } @@ -186,10 +226,14 @@ func setCatalogProductDetailgetHasDemoAttributeType(arg *CatalogProductDetailget */ // isBoolean +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetHasPrivatePlanOptionAttributeType = *bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetHasPrivatePlanOptionArgType = bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetHasPrivatePlanOptionRetType = bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailgetHasPrivatePlanOptionAttributeTypeOk(arg CatalogProductDetailgetHasPrivatePlanOptionAttributeType) (ret CatalogProductDetailgetHasPrivatePlanOptionRetType, ok bool) { if arg == nil { return ret, false @@ -197,6 +241,7 @@ func getCatalogProductDetailgetHasPrivatePlanOptionAttributeTypeOk(arg CatalogPr return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailgetHasPrivatePlanOptionAttributeType(arg *CatalogProductDetailgetHasPrivatePlanOptionAttributeType, val CatalogProductDetailgetHasPrivatePlanOptionRetType) { *arg = &val } @@ -206,10 +251,14 @@ func setCatalogProductDetailgetHasPrivatePlanOptionAttributeType(arg *CatalogPro */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetHighlightsAttributeType = *[]CatalogProductHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetHighlightsArgType = []CatalogProductHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetHighlightsRetType = []CatalogProductHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetHighlightsAttributeTypeOk(arg CatalogProductDetailGetHighlightsAttributeType) (ret CatalogProductDetailGetHighlightsRetType, ok bool) { if arg == nil { return ret, false @@ -217,6 +266,7 @@ func getCatalogProductDetailGetHighlightsAttributeTypeOk(arg CatalogProductDetai return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetHighlightsAttributeType(arg *CatalogProductDetailGetHighlightsAttributeType, val CatalogProductDetailGetHighlightsRetType) { *arg = &val } @@ -226,10 +276,14 @@ func setCatalogProductDetailGetHighlightsAttributeType(arg *CatalogProductDetail */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetIndustriesAttributeType = *[]string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetIndustriesArgType = []string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetIndustriesRetType = []string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetIndustriesAttributeTypeOk(arg CatalogProductDetailGetIndustriesAttributeType) (ret CatalogProductDetailGetIndustriesRetType, ok bool) { if arg == nil { return ret, false @@ -237,6 +291,7 @@ func getCatalogProductDetailGetIndustriesAttributeTypeOk(arg CatalogProductDetai return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetIndustriesAttributeType(arg *CatalogProductDetailGetIndustriesAttributeType, val CatalogProductDetailGetIndustriesRetType) { *arg = &val } @@ -246,10 +301,14 @@ func setCatalogProductDetailGetIndustriesAttributeType(arg *CatalogProductDetail */ // isBoolean +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetIsProductListingAttributeType = *bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetIsProductListingArgType = bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailgetIsProductListingRetType = bool +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailgetIsProductListingAttributeTypeOk(arg CatalogProductDetailgetIsProductListingAttributeType) (ret CatalogProductDetailgetIsProductListingRetType, ok bool) { if arg == nil { return ret, false @@ -257,6 +316,7 @@ func getCatalogProductDetailgetIsProductListingAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailgetIsProductListingAttributeType(arg *CatalogProductDetailgetIsProductListingAttributeType, val CatalogProductDetailgetIsProductListingRetType) { *arg = &val } @@ -266,10 +326,14 @@ func setCatalogProductDetailgetIsProductListingAttributeType(arg *CatalogProduct */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetLifecycleStateAttributeType = *ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetLifecycleStateArgType = ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetLifecycleStateRetType = ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetLifecycleStateAttributeTypeOk(arg CatalogProductDetailGetLifecycleStateAttributeType) (ret CatalogProductDetailGetLifecycleStateRetType, ok bool) { if arg == nil { return ret, false @@ -277,6 +341,7 @@ func getCatalogProductDetailGetLifecycleStateAttributeTypeOk(arg CatalogProductD return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetLifecycleStateAttributeType(arg *CatalogProductDetailGetLifecycleStateAttributeType, val CatalogProductDetailGetLifecycleStateRetType) { *arg = &val } @@ -286,8 +351,10 @@ func setCatalogProductDetailGetLifecycleStateAttributeType(arg *CatalogProductDe */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetLogoAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetLogoAttributeTypeOk(arg CatalogProductDetailGetLogoAttributeType) (ret CatalogProductDetailGetLogoRetType, ok bool) { if arg == nil { return ret, false @@ -295,11 +362,14 @@ func getCatalogProductDetailGetLogoAttributeTypeOk(arg CatalogProductDetailGetLo return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetLogoAttributeType(arg *CatalogProductDetailGetLogoAttributeType, val CatalogProductDetailGetLogoRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetLogoArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetLogoRetType = string /* @@ -307,8 +377,10 @@ type CatalogProductDetailGetLogoRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetNameAttributeTypeOk(arg CatalogProductDetailGetNameAttributeType) (ret CatalogProductDetailGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -316,11 +388,14 @@ func getCatalogProductDetailGetNameAttributeTypeOk(arg CatalogProductDetailGetNa return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetNameAttributeType(arg *CatalogProductDetailGetNameAttributeType, val CatalogProductDetailGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetNameRetType = string /* @@ -328,10 +403,14 @@ type CatalogProductDetailGetNameRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetOfferTypeAttributeType = *OfferType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetOfferTypeArgType = OfferType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetOfferTypeRetType = OfferType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetOfferTypeAttributeTypeOk(arg CatalogProductDetailGetOfferTypeAttributeType) (ret CatalogProductDetailGetOfferTypeRetType, ok bool) { if arg == nil { return ret, false @@ -339,6 +418,7 @@ func getCatalogProductDetailGetOfferTypeAttributeTypeOk(arg CatalogProductDetail return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetOfferTypeAttributeType(arg *CatalogProductDetailGetOfferTypeAttributeType, val CatalogProductDetailGetOfferTypeRetType) { *arg = &val } @@ -348,10 +428,14 @@ func setCatalogProductDetailGetOfferTypeAttributeType(arg *CatalogProductDetailG */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetPricingOptionsAttributeType = *[]CatalogProductPricingOption +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetPricingOptionsArgType = []CatalogProductPricingOption +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetPricingOptionsRetType = []CatalogProductPricingOption +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetPricingOptionsAttributeTypeOk(arg CatalogProductDetailGetPricingOptionsAttributeType) (ret CatalogProductDetailGetPricingOptionsRetType, ok bool) { if arg == nil { return ret, false @@ -359,6 +443,7 @@ func getCatalogProductDetailGetPricingOptionsAttributeTypeOk(arg CatalogProductD return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetPricingOptionsAttributeType(arg *CatalogProductDetailGetPricingOptionsAttributeType, val CatalogProductDetailGetPricingOptionsRetType) { *arg = &val } @@ -368,8 +453,10 @@ func setCatalogProductDetailGetPricingOptionsAttributeType(arg *CatalogProductDe */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetProductIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetProductIdAttributeTypeOk(arg CatalogProductDetailGetProductIdAttributeType) (ret CatalogProductDetailGetProductIdRetType, ok bool) { if arg == nil { return ret, false @@ -377,11 +464,14 @@ func getCatalogProductDetailGetProductIdAttributeTypeOk(arg CatalogProductDetail return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetProductIdAttributeType(arg *CatalogProductDetailGetProductIdAttributeType, val CatalogProductDetailGetProductIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetProductIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetProductIdRetType = string /* @@ -389,8 +479,10 @@ type CatalogProductDetailGetProductIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSummaryAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetSummaryAttributeTypeOk(arg CatalogProductDetailGetSummaryAttributeType) (ret CatalogProductDetailGetSummaryRetType, ok bool) { if arg == nil { return ret, false @@ -398,11 +490,14 @@ func getCatalogProductDetailGetSummaryAttributeTypeOk(arg CatalogProductDetailGe return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetSummaryAttributeType(arg *CatalogProductDetailGetSummaryAttributeType, val CatalogProductDetailGetSummaryRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSummaryArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSummaryRetType = string /* @@ -410,8 +505,10 @@ type CatalogProductDetailGetSummaryRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportFaqAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetSupportFaqAttributeTypeOk(arg CatalogProductDetailGetSupportFaqAttributeType) (ret CatalogProductDetailGetSupportFaqRetType, ok bool) { if arg == nil { return ret, false @@ -419,11 +516,14 @@ func getCatalogProductDetailGetSupportFaqAttributeTypeOk(arg CatalogProductDetai return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetSupportFaqAttributeType(arg *CatalogProductDetailGetSupportFaqAttributeType, val CatalogProductDetailGetSupportFaqRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportFaqArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportFaqRetType = string /* @@ -431,8 +531,10 @@ type CatalogProductDetailGetSupportFaqRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportPhoneAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetSupportPhoneAttributeTypeOk(arg CatalogProductDetailGetSupportPhoneAttributeType) (ret CatalogProductDetailGetSupportPhoneRetType, ok bool) { if arg == nil { return ret, false @@ -440,11 +542,14 @@ func getCatalogProductDetailGetSupportPhoneAttributeTypeOk(arg CatalogProductDet return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetSupportPhoneAttributeType(arg *CatalogProductDetailGetSupportPhoneAttributeType, val CatalogProductDetailGetSupportPhoneRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportPhoneArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportPhoneRetType = string /* @@ -452,10 +557,14 @@ type CatalogProductDetailGetSupportPhoneRetType = string */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportResourcesAttributeType = *[]CatalogProductSupportResource +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportResourcesArgType = []CatalogProductSupportResource +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetSupportResourcesRetType = []CatalogProductSupportResource +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetSupportResourcesAttributeTypeOk(arg CatalogProductDetailGetSupportResourcesAttributeType) (ret CatalogProductDetailGetSupportResourcesRetType, ok bool) { if arg == nil { return ret, false @@ -463,6 +572,7 @@ func getCatalogProductDetailGetSupportResourcesAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetSupportResourcesAttributeType(arg *CatalogProductDetailGetSupportResourcesAttributeType, val CatalogProductDetailGetSupportResourcesRetType) { *arg = &val } @@ -472,10 +582,14 @@ func setCatalogProductDetailGetSupportResourcesAttributeType(arg *CatalogProduct */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVendorAttributeType = *CatalogProductDetailsVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVendorArgType = CatalogProductDetailsVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVendorRetType = CatalogProductDetailsVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetVendorAttributeTypeOk(arg CatalogProductDetailGetVendorAttributeType) (ret CatalogProductDetailGetVendorRetType, ok bool) { if arg == nil { return ret, false @@ -483,6 +597,7 @@ func getCatalogProductDetailGetVendorAttributeTypeOk(arg CatalogProductDetailGet return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetVendorAttributeType(arg *CatalogProductDetailGetVendorAttributeType, val CatalogProductDetailGetVendorRetType) { *arg = &val } @@ -492,10 +607,14 @@ func setCatalogProductDetailGetVendorAttributeType(arg *CatalogProductDetailGetV */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVendorTermsAttributeType = *[]CatalogProductVendorTerms +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVendorTermsArgType = []CatalogProductVendorTerms +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVendorTermsRetType = []CatalogProductVendorTerms +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetVendorTermsAttributeTypeOk(arg CatalogProductDetailGetVendorTermsAttributeType) (ret CatalogProductDetailGetVendorTermsRetType, ok bool) { if arg == nil { return ret, false @@ -503,6 +622,7 @@ func getCatalogProductDetailGetVendorTermsAttributeTypeOk(arg CatalogProductDeta return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetVendorTermsAttributeType(arg *CatalogProductDetailGetVendorTermsAttributeType, val CatalogProductDetailGetVendorTermsRetType) { *arg = &val } @@ -512,8 +632,10 @@ func setCatalogProductDetailGetVendorTermsAttributeType(arg *CatalogProductDetai */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVideoUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailGetVideoUrlAttributeTypeOk(arg CatalogProductDetailGetVideoUrlAttributeType) (ret CatalogProductDetailGetVideoUrlRetType, ok bool) { if arg == nil { return ret, false @@ -521,14 +643,18 @@ func getCatalogProductDetailGetVideoUrlAttributeTypeOk(arg CatalogProductDetailG return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailGetVideoUrlAttributeType(arg *CatalogProductDetailGetVideoUrlAttributeType, val CatalogProductDetailGetVideoUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVideoUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailGetVideoUrlRetType = string // CatalogProductDetail struct for CatalogProductDetail +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetail struct { Assets CatalogProductDetailGetAssetsAttributeType `json:"assets,omitempty"` // The list of categories associated to the product. @@ -590,12 +716,14 @@ type CatalogProductDetail struct { VideoUrl CatalogProductDetailGetVideoUrlAttributeType `json:"videoUrl" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductDetail CatalogProductDetail // NewCatalogProductDetail instantiates a new CatalogProductDetail object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductDetail(deliveryMethod CatalogProductDetailGetDeliveryMethodArgType, description CatalogProductDetailGetDescriptionArgType, documentationUrl CatalogProductDetailGetDocumentationUrlArgType, highlights CatalogProductDetailGetHighlightsArgType, lifecycleState CatalogProductDetailGetLifecycleStateArgType, logo CatalogProductDetailGetLogoArgType, name CatalogProductDetailGetNameArgType, offerType CatalogProductDetailGetOfferTypeArgType, pricingOptions CatalogProductDetailGetPricingOptionsArgType, productId CatalogProductDetailGetProductIdArgType, summary CatalogProductDetailGetSummaryArgType, vendor CatalogProductDetailGetVendorArgType, videoUrl CatalogProductDetailGetVideoUrlArgType) *CatalogProductDetail { this := CatalogProductDetail{} setCatalogProductDetailGetDeliveryMethodAttributeType(&this.DeliveryMethod, deliveryMethod) @@ -617,12 +745,14 @@ func NewCatalogProductDetail(deliveryMethod CatalogProductDetailGetDeliveryMetho // NewCatalogProductDetailWithDefaults instantiates a new CatalogProductDetail object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductDetailWithDefaults() *CatalogProductDetail { this := CatalogProductDetail{} return &this } // GetAssets returns the Assets field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetAssets() (res CatalogProductDetailGetAssetsRetType) { res, _ = o.GetAssetsOk() return @@ -630,22 +760,26 @@ func (o *CatalogProductDetail) GetAssets() (res CatalogProductDetailGetAssetsRet // GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetAssetsOk() (ret CatalogProductDetailGetAssetsRetType, ok bool) { return getCatalogProductDetailGetAssetsAttributeTypeOk(o.Assets) } // HasAssets returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasAssets() bool { _, ok := o.GetAssetsOk() return ok } // SetAssets gets a reference to the given Assets and assigns it to the Assets field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetAssets(v CatalogProductDetailGetAssetsRetType) { setCatalogProductDetailGetAssetsAttributeType(&o.Assets, v) } // GetCategories returns the Categories field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetCategories() (res CatalogProductDetailGetCategoriesRetType) { res, _ = o.GetCategoriesOk() return @@ -653,22 +787,26 @@ func (o *CatalogProductDetail) GetCategories() (res CatalogProductDetailGetCateg // GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetCategoriesOk() (ret CatalogProductDetailGetCategoriesRetType, ok bool) { return getCatalogProductDetailGetCategoriesAttributeTypeOk(o.Categories) } // HasCategories returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasCategories() bool { _, ok := o.GetCategoriesOk() return ok } // SetCategories gets a reference to the given []string and assigns it to the Categories field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetCategories(v CatalogProductDetailGetCategoriesRetType) { setCatalogProductDetailGetCategoriesAttributeType(&o.Categories, v) } // GetDeliveryMethod returns the DeliveryMethod field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDeliveryMethod() (ret CatalogProductDetailGetDeliveryMethodRetType) { ret, _ = o.GetDeliveryMethodOk() return ret @@ -676,16 +814,19 @@ func (o *CatalogProductDetail) GetDeliveryMethod() (ret CatalogProductDetailGetD // GetDeliveryMethodOk returns a tuple with the DeliveryMethod field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDeliveryMethodOk() (ret CatalogProductDetailGetDeliveryMethodRetType, ok bool) { return getCatalogProductDetailGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod) } // SetDeliveryMethod sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetDeliveryMethod(v CatalogProductDetailGetDeliveryMethodRetType) { setCatalogProductDetailGetDeliveryMethodAttributeType(&o.DeliveryMethod, v) } // GetDemoUrl returns the DemoUrl field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDemoUrl() (res CatalogProductDetailGetDemoUrlRetType) { res, _ = o.GetDemoUrlOk() return @@ -693,22 +834,26 @@ func (o *CatalogProductDetail) GetDemoUrl() (res CatalogProductDetailGetDemoUrlR // GetDemoUrlOk returns a tuple with the DemoUrl field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDemoUrlOk() (ret CatalogProductDetailGetDemoUrlRetType, ok bool) { return getCatalogProductDetailGetDemoUrlAttributeTypeOk(o.DemoUrl) } // HasDemoUrl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasDemoUrl() bool { _, ok := o.GetDemoUrlOk() return ok } // SetDemoUrl gets a reference to the given string and assigns it to the DemoUrl field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetDemoUrl(v CatalogProductDetailGetDemoUrlRetType) { setCatalogProductDetailGetDemoUrlAttributeType(&o.DemoUrl, v) } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDescription() (ret CatalogProductDetailGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -716,16 +861,19 @@ func (o *CatalogProductDetail) GetDescription() (ret CatalogProductDetailGetDesc // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDescriptionOk() (ret CatalogProductDetailGetDescriptionRetType, ok bool) { return getCatalogProductDetailGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetDescription(v CatalogProductDetailGetDescriptionRetType) { setCatalogProductDetailGetDescriptionAttributeType(&o.Description, v) } // GetDocumentationUrl returns the DocumentationUrl field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDocumentationUrl() (ret CatalogProductDetailGetDocumentationUrlRetType) { ret, _ = o.GetDocumentationUrlOk() return ret @@ -733,16 +881,19 @@ func (o *CatalogProductDetail) GetDocumentationUrl() (ret CatalogProductDetailGe // GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetDocumentationUrlOk() (ret CatalogProductDetailGetDocumentationUrlRetType, ok bool) { return getCatalogProductDetailGetDocumentationUrlAttributeTypeOk(o.DocumentationUrl) } // SetDocumentationUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetDocumentationUrl(v CatalogProductDetailGetDocumentationUrlRetType) { setCatalogProductDetailGetDocumentationUrlAttributeType(&o.DocumentationUrl, v) } // GetEmail returns the Email field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetEmail() (res CatalogProductDetailGetEmailRetType) { res, _ = o.GetEmailOk() return @@ -750,22 +901,26 @@ func (o *CatalogProductDetail) GetEmail() (res CatalogProductDetailGetEmailRetTy // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetEmailOk() (ret CatalogProductDetailGetEmailRetType, ok bool) { return getCatalogProductDetailGetEmailAttributeTypeOk(o.Email) } // HasEmail returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasEmail() bool { _, ok := o.GetEmailOk() return ok } // SetEmail gets a reference to the given string and assigns it to the Email field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetEmail(v CatalogProductDetailGetEmailRetType) { setCatalogProductDetailGetEmailAttributeType(&o.Email, v) } // GetHasDemo returns the HasDemo field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetHasDemo() (res CatalogProductDetailgetHasDemoRetType) { res, _ = o.GetHasDemoOk() return @@ -773,22 +928,26 @@ func (o *CatalogProductDetail) GetHasDemo() (res CatalogProductDetailgetHasDemoR // GetHasDemoOk returns a tuple with the HasDemo field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetHasDemoOk() (ret CatalogProductDetailgetHasDemoRetType, ok bool) { return getCatalogProductDetailgetHasDemoAttributeTypeOk(o.HasDemo) } // HasHasDemo returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasHasDemo() bool { _, ok := o.GetHasDemoOk() return ok } // SetHasDemo gets a reference to the given bool and assigns it to the HasDemo field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetHasDemo(v CatalogProductDetailgetHasDemoRetType) { setCatalogProductDetailgetHasDemoAttributeType(&o.HasDemo, v) } // GetHasPrivatePlanOption returns the HasPrivatePlanOption field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetHasPrivatePlanOption() (res CatalogProductDetailgetHasPrivatePlanOptionRetType) { res, _ = o.GetHasPrivatePlanOptionOk() return @@ -796,22 +955,26 @@ func (o *CatalogProductDetail) GetHasPrivatePlanOption() (res CatalogProductDeta // GetHasPrivatePlanOptionOk returns a tuple with the HasPrivatePlanOption field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetHasPrivatePlanOptionOk() (ret CatalogProductDetailgetHasPrivatePlanOptionRetType, ok bool) { return getCatalogProductDetailgetHasPrivatePlanOptionAttributeTypeOk(o.HasPrivatePlanOption) } // HasHasPrivatePlanOption returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasHasPrivatePlanOption() bool { _, ok := o.GetHasPrivatePlanOptionOk() return ok } // SetHasPrivatePlanOption gets a reference to the given bool and assigns it to the HasPrivatePlanOption field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetHasPrivatePlanOption(v CatalogProductDetailgetHasPrivatePlanOptionRetType) { setCatalogProductDetailgetHasPrivatePlanOptionAttributeType(&o.HasPrivatePlanOption, v) } // GetHighlights returns the Highlights field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetHighlights() (ret CatalogProductDetailGetHighlightsRetType) { ret, _ = o.GetHighlightsOk() return ret @@ -819,16 +982,19 @@ func (o *CatalogProductDetail) GetHighlights() (ret CatalogProductDetailGetHighl // GetHighlightsOk returns a tuple with the Highlights field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetHighlightsOk() (ret CatalogProductDetailGetHighlightsRetType, ok bool) { return getCatalogProductDetailGetHighlightsAttributeTypeOk(o.Highlights) } // SetHighlights sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetHighlights(v CatalogProductDetailGetHighlightsRetType) { setCatalogProductDetailGetHighlightsAttributeType(&o.Highlights, v) } // GetIndustries returns the Industries field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetIndustries() (res CatalogProductDetailGetIndustriesRetType) { res, _ = o.GetIndustriesOk() return @@ -836,22 +1002,26 @@ func (o *CatalogProductDetail) GetIndustries() (res CatalogProductDetailGetIndus // GetIndustriesOk returns a tuple with the Industries field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetIndustriesOk() (ret CatalogProductDetailGetIndustriesRetType, ok bool) { return getCatalogProductDetailGetIndustriesAttributeTypeOk(o.Industries) } // HasIndustries returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasIndustries() bool { _, ok := o.GetIndustriesOk() return ok } // SetIndustries gets a reference to the given []string and assigns it to the Industries field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetIndustries(v CatalogProductDetailGetIndustriesRetType) { setCatalogProductDetailGetIndustriesAttributeType(&o.Industries, v) } // GetIsProductListing returns the IsProductListing field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetIsProductListing() (res CatalogProductDetailgetIsProductListingRetType) { res, _ = o.GetIsProductListingOk() return @@ -859,22 +1029,26 @@ func (o *CatalogProductDetail) GetIsProductListing() (res CatalogProductDetailge // GetIsProductListingOk returns a tuple with the IsProductListing field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetIsProductListingOk() (ret CatalogProductDetailgetIsProductListingRetType, ok bool) { return getCatalogProductDetailgetIsProductListingAttributeTypeOk(o.IsProductListing) } // HasIsProductListing returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasIsProductListing() bool { _, ok := o.GetIsProductListingOk() return ok } // SetIsProductListing gets a reference to the given bool and assigns it to the IsProductListing field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetIsProductListing(v CatalogProductDetailgetIsProductListingRetType) { setCatalogProductDetailgetIsProductListingAttributeType(&o.IsProductListing, v) } // GetLifecycleState returns the LifecycleState field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetLifecycleState() (ret CatalogProductDetailGetLifecycleStateRetType) { ret, _ = o.GetLifecycleStateOk() return ret @@ -882,16 +1056,19 @@ func (o *CatalogProductDetail) GetLifecycleState() (ret CatalogProductDetailGetL // GetLifecycleStateOk returns a tuple with the LifecycleState field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetLifecycleStateOk() (ret CatalogProductDetailGetLifecycleStateRetType, ok bool) { return getCatalogProductDetailGetLifecycleStateAttributeTypeOk(o.LifecycleState) } // SetLifecycleState sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetLifecycleState(v CatalogProductDetailGetLifecycleStateRetType) { setCatalogProductDetailGetLifecycleStateAttributeType(&o.LifecycleState, v) } // GetLogo returns the Logo field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetLogo() (ret CatalogProductDetailGetLogoRetType) { ret, _ = o.GetLogoOk() return ret @@ -899,16 +1076,19 @@ func (o *CatalogProductDetail) GetLogo() (ret CatalogProductDetailGetLogoRetType // GetLogoOk returns a tuple with the Logo field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetLogoOk() (ret CatalogProductDetailGetLogoRetType, ok bool) { return getCatalogProductDetailGetLogoAttributeTypeOk(o.Logo) } // SetLogo sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetLogo(v CatalogProductDetailGetLogoRetType) { setCatalogProductDetailGetLogoAttributeType(&o.Logo, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetName() (ret CatalogProductDetailGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -916,16 +1096,19 @@ func (o *CatalogProductDetail) GetName() (ret CatalogProductDetailGetNameRetType // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetNameOk() (ret CatalogProductDetailGetNameRetType, ok bool) { return getCatalogProductDetailGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetName(v CatalogProductDetailGetNameRetType) { setCatalogProductDetailGetNameAttributeType(&o.Name, v) } // GetOfferType returns the OfferType field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetOfferType() (ret CatalogProductDetailGetOfferTypeRetType) { ret, _ = o.GetOfferTypeOk() return ret @@ -933,16 +1116,19 @@ func (o *CatalogProductDetail) GetOfferType() (ret CatalogProductDetailGetOfferT // GetOfferTypeOk returns a tuple with the OfferType field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetOfferTypeOk() (ret CatalogProductDetailGetOfferTypeRetType, ok bool) { return getCatalogProductDetailGetOfferTypeAttributeTypeOk(o.OfferType) } // SetOfferType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetOfferType(v CatalogProductDetailGetOfferTypeRetType) { setCatalogProductDetailGetOfferTypeAttributeType(&o.OfferType, v) } // GetPricingOptions returns the PricingOptions field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetPricingOptions() (ret CatalogProductDetailGetPricingOptionsRetType) { ret, _ = o.GetPricingOptionsOk() return ret @@ -950,16 +1136,19 @@ func (o *CatalogProductDetail) GetPricingOptions() (ret CatalogProductDetailGetP // GetPricingOptionsOk returns a tuple with the PricingOptions field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetPricingOptionsOk() (ret CatalogProductDetailGetPricingOptionsRetType, ok bool) { return getCatalogProductDetailGetPricingOptionsAttributeTypeOk(o.PricingOptions) } // SetPricingOptions sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetPricingOptions(v CatalogProductDetailGetPricingOptionsRetType) { setCatalogProductDetailGetPricingOptionsAttributeType(&o.PricingOptions, v) } // GetProductId returns the ProductId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetProductId() (ret CatalogProductDetailGetProductIdRetType) { ret, _ = o.GetProductIdOk() return ret @@ -967,16 +1156,19 @@ func (o *CatalogProductDetail) GetProductId() (ret CatalogProductDetailGetProduc // GetProductIdOk returns a tuple with the ProductId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetProductIdOk() (ret CatalogProductDetailGetProductIdRetType, ok bool) { return getCatalogProductDetailGetProductIdAttributeTypeOk(o.ProductId) } // SetProductId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetProductId(v CatalogProductDetailGetProductIdRetType) { setCatalogProductDetailGetProductIdAttributeType(&o.ProductId, v) } // GetSummary returns the Summary field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSummary() (ret CatalogProductDetailGetSummaryRetType) { ret, _ = o.GetSummaryOk() return ret @@ -984,16 +1176,19 @@ func (o *CatalogProductDetail) GetSummary() (ret CatalogProductDetailGetSummaryR // GetSummaryOk returns a tuple with the Summary field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSummaryOk() (ret CatalogProductDetailGetSummaryRetType, ok bool) { return getCatalogProductDetailGetSummaryAttributeTypeOk(o.Summary) } // SetSummary sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetSummary(v CatalogProductDetailGetSummaryRetType) { setCatalogProductDetailGetSummaryAttributeType(&o.Summary, v) } // GetSupportFaq returns the SupportFaq field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSupportFaq() (res CatalogProductDetailGetSupportFaqRetType) { res, _ = o.GetSupportFaqOk() return @@ -1001,22 +1196,26 @@ func (o *CatalogProductDetail) GetSupportFaq() (res CatalogProductDetailGetSuppo // GetSupportFaqOk returns a tuple with the SupportFaq field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSupportFaqOk() (ret CatalogProductDetailGetSupportFaqRetType, ok bool) { return getCatalogProductDetailGetSupportFaqAttributeTypeOk(o.SupportFaq) } // HasSupportFaq returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasSupportFaq() bool { _, ok := o.GetSupportFaqOk() return ok } // SetSupportFaq gets a reference to the given string and assigns it to the SupportFaq field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetSupportFaq(v CatalogProductDetailGetSupportFaqRetType) { setCatalogProductDetailGetSupportFaqAttributeType(&o.SupportFaq, v) } // GetSupportPhone returns the SupportPhone field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSupportPhone() (res CatalogProductDetailGetSupportPhoneRetType) { res, _ = o.GetSupportPhoneOk() return @@ -1024,22 +1223,26 @@ func (o *CatalogProductDetail) GetSupportPhone() (res CatalogProductDetailGetSup // GetSupportPhoneOk returns a tuple with the SupportPhone field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSupportPhoneOk() (ret CatalogProductDetailGetSupportPhoneRetType, ok bool) { return getCatalogProductDetailGetSupportPhoneAttributeTypeOk(o.SupportPhone) } // HasSupportPhone returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasSupportPhone() bool { _, ok := o.GetSupportPhoneOk() return ok } // SetSupportPhone gets a reference to the given string and assigns it to the SupportPhone field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetSupportPhone(v CatalogProductDetailGetSupportPhoneRetType) { setCatalogProductDetailGetSupportPhoneAttributeType(&o.SupportPhone, v) } // GetSupportResources returns the SupportResources field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSupportResources() (res CatalogProductDetailGetSupportResourcesRetType) { res, _ = o.GetSupportResourcesOk() return @@ -1047,22 +1250,26 @@ func (o *CatalogProductDetail) GetSupportResources() (res CatalogProductDetailGe // GetSupportResourcesOk returns a tuple with the SupportResources field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetSupportResourcesOk() (ret CatalogProductDetailGetSupportResourcesRetType, ok bool) { return getCatalogProductDetailGetSupportResourcesAttributeTypeOk(o.SupportResources) } // HasSupportResources returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasSupportResources() bool { _, ok := o.GetSupportResourcesOk() return ok } // SetSupportResources gets a reference to the given []CatalogProductSupportResource and assigns it to the SupportResources field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetSupportResources(v CatalogProductDetailGetSupportResourcesRetType) { setCatalogProductDetailGetSupportResourcesAttributeType(&o.SupportResources, v) } // GetVendor returns the Vendor field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetVendor() (ret CatalogProductDetailGetVendorRetType) { ret, _ = o.GetVendorOk() return ret @@ -1070,16 +1277,19 @@ func (o *CatalogProductDetail) GetVendor() (ret CatalogProductDetailGetVendorRet // GetVendorOk returns a tuple with the Vendor field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetVendorOk() (ret CatalogProductDetailGetVendorRetType, ok bool) { return getCatalogProductDetailGetVendorAttributeTypeOk(o.Vendor) } // SetVendor sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetVendor(v CatalogProductDetailGetVendorRetType) { setCatalogProductDetailGetVendorAttributeType(&o.Vendor, v) } // GetVendorTerms returns the VendorTerms field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetVendorTerms() (res CatalogProductDetailGetVendorTermsRetType) { res, _ = o.GetVendorTermsOk() return @@ -1087,22 +1297,26 @@ func (o *CatalogProductDetail) GetVendorTerms() (res CatalogProductDetailGetVend // GetVendorTermsOk returns a tuple with the VendorTerms field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetVendorTermsOk() (ret CatalogProductDetailGetVendorTermsRetType, ok bool) { return getCatalogProductDetailGetVendorTermsAttributeTypeOk(o.VendorTerms) } // HasVendorTerms returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) HasVendorTerms() bool { _, ok := o.GetVendorTermsOk() return ok } // SetVendorTerms gets a reference to the given []CatalogProductVendorTerms and assigns it to the VendorTerms field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetVendorTerms(v CatalogProductDetailGetVendorTermsRetType) { setCatalogProductDetailGetVendorTermsAttributeType(&o.VendorTerms, v) } // GetVideoUrl returns the VideoUrl field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetVideoUrl() (ret CatalogProductDetailGetVideoUrlRetType) { ret, _ = o.GetVideoUrlOk() return ret @@ -1110,15 +1324,18 @@ func (o *CatalogProductDetail) GetVideoUrl() (ret CatalogProductDetailGetVideoUr // GetVideoUrlOk returns a tuple with the VideoUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) GetVideoUrlOk() (ret CatalogProductDetailGetVideoUrlRetType, ok bool) { return getCatalogProductDetailGetVideoUrlAttributeTypeOk(o.VideoUrl) } // SetVideoUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetail) SetVideoUrl(v CatalogProductDetailGetVideoUrlRetType) { setCatalogProductDetailGetVideoUrlAttributeType(&o.VideoUrl, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductDetail) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductDetailGetAssetsAttributeTypeOk(o.Assets); ok { @@ -1199,37 +1416,45 @@ func (o CatalogProductDetail) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductDetail struct { value *CatalogProductDetail isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductDetail) Get() *CatalogProductDetail { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductDetail) Set(val *CatalogProductDetail) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductDetail) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductDetail) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductDetail(val *CatalogProductDetail) *NullableCatalogProductDetail { return &NullableCatalogProductDetail{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductDetail) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductDetail) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_details_vendor.go b/services/stackitmarketplace/model_catalog_product_details_vendor.go index 3296570500..c5466663f9 100644 --- a/services/stackitmarketplace/model_catalog_product_details_vendor.go +++ b/services/stackitmarketplace/model_catalog_product_details_vendor.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogProductDetailsVendor{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailsVendorGetDescriptionAttributeTypeOk(arg CatalogProductDetailsVendorGetDescriptionAttributeType) (ret CatalogProductDetailsVendorGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getCatalogProductDetailsVendorGetDescriptionAttributeTypeOk(arg CatalogProd return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailsVendorGetDescriptionAttributeType(arg *CatalogProductDetailsVendorGetDescriptionAttributeType, val CatalogProductDetailsVendorGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetDescriptionArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetDescriptionRetType = string /* @@ -43,8 +48,10 @@ type CatalogProductDetailsVendorGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetLogoAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailsVendorGetLogoAttributeTypeOk(arg CatalogProductDetailsVendorGetLogoAttributeType) (ret CatalogProductDetailsVendorGetLogoRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getCatalogProductDetailsVendorGetLogoAttributeTypeOk(arg CatalogProductDeta return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailsVendorGetLogoAttributeType(arg *CatalogProductDetailsVendorGetLogoAttributeType, val CatalogProductDetailsVendorGetLogoRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetLogoArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetLogoRetType = string /* @@ -64,8 +74,10 @@ type CatalogProductDetailsVendorGetLogoRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailsVendorGetNameAttributeTypeOk(arg CatalogProductDetailsVendorGetNameAttributeType) (ret CatalogProductDetailsVendorGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +85,14 @@ func getCatalogProductDetailsVendorGetNameAttributeTypeOk(arg CatalogProductDeta return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailsVendorGetNameAttributeType(arg *CatalogProductDetailsVendorGetNameAttributeType, val CatalogProductDetailsVendorGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetNameRetType = string /* @@ -85,8 +100,10 @@ type CatalogProductDetailsVendorGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetVendorIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailsVendorGetVendorIdAttributeTypeOk(arg CatalogProductDetailsVendorGetVendorIdAttributeType) (ret CatalogProductDetailsVendorGetVendorIdRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +111,14 @@ func getCatalogProductDetailsVendorGetVendorIdAttributeTypeOk(arg CatalogProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailsVendorGetVendorIdAttributeType(arg *CatalogProductDetailsVendorGetVendorIdAttributeType, val CatalogProductDetailsVendorGetVendorIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetVendorIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetVendorIdRetType = string /* @@ -106,8 +126,10 @@ type CatalogProductDetailsVendorGetVendorIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetVideoUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailsVendorGetVideoUrlAttributeTypeOk(arg CatalogProductDetailsVendorGetVideoUrlAttributeType) (ret CatalogProductDetailsVendorGetVideoUrlRetType, ok bool) { if arg == nil { return ret, false @@ -115,11 +137,14 @@ func getCatalogProductDetailsVendorGetVideoUrlAttributeTypeOk(arg CatalogProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailsVendorGetVideoUrlAttributeType(arg *CatalogProductDetailsVendorGetVideoUrlAttributeType, val CatalogProductDetailsVendorGetVideoUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetVideoUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetVideoUrlRetType = string /* @@ -127,8 +152,10 @@ type CatalogProductDetailsVendorGetVideoUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetWebsiteUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductDetailsVendorGetWebsiteUrlAttributeTypeOk(arg CatalogProductDetailsVendorGetWebsiteUrlAttributeType) (ret CatalogProductDetailsVendorGetWebsiteUrlRetType, ok bool) { if arg == nil { return ret, false @@ -136,14 +163,18 @@ func getCatalogProductDetailsVendorGetWebsiteUrlAttributeTypeOk(arg CatalogProdu return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductDetailsVendorGetWebsiteUrlAttributeType(arg *CatalogProductDetailsVendorGetWebsiteUrlAttributeType, val CatalogProductDetailsVendorGetWebsiteUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetWebsiteUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendorGetWebsiteUrlRetType = string // CatalogProductDetailsVendor struct for CatalogProductDetailsVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductDetailsVendor struct { // The vendor description. // REQUIRED @@ -165,12 +196,14 @@ type CatalogProductDetailsVendor struct { WebsiteUrl CatalogProductDetailsVendorGetWebsiteUrlAttributeType `json:"websiteUrl" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductDetailsVendor CatalogProductDetailsVendor // NewCatalogProductDetailsVendor instantiates a new CatalogProductDetailsVendor object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductDetailsVendor(description CatalogProductDetailsVendorGetDescriptionArgType, logo CatalogProductDetailsVendorGetLogoArgType, name CatalogProductDetailsVendorGetNameArgType, vendorId CatalogProductDetailsVendorGetVendorIdArgType, videoUrl CatalogProductDetailsVendorGetVideoUrlArgType, websiteUrl CatalogProductDetailsVendorGetWebsiteUrlArgType) *CatalogProductDetailsVendor { this := CatalogProductDetailsVendor{} setCatalogProductDetailsVendorGetDescriptionAttributeType(&this.Description, description) @@ -185,12 +218,14 @@ func NewCatalogProductDetailsVendor(description CatalogProductDetailsVendorGetDe // NewCatalogProductDetailsVendorWithDefaults instantiates a new CatalogProductDetailsVendor object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductDetailsVendorWithDefaults() *CatalogProductDetailsVendor { this := CatalogProductDetailsVendor{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetDescription() (ret CatalogProductDetailsVendorGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -198,16 +233,19 @@ func (o *CatalogProductDetailsVendor) GetDescription() (ret CatalogProductDetail // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetDescriptionOk() (ret CatalogProductDetailsVendorGetDescriptionRetType, ok bool) { return getCatalogProductDetailsVendorGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) SetDescription(v CatalogProductDetailsVendorGetDescriptionRetType) { setCatalogProductDetailsVendorGetDescriptionAttributeType(&o.Description, v) } // GetLogo returns the Logo field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetLogo() (ret CatalogProductDetailsVendorGetLogoRetType) { ret, _ = o.GetLogoOk() return ret @@ -215,16 +253,19 @@ func (o *CatalogProductDetailsVendor) GetLogo() (ret CatalogProductDetailsVendor // GetLogoOk returns a tuple with the Logo field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetLogoOk() (ret CatalogProductDetailsVendorGetLogoRetType, ok bool) { return getCatalogProductDetailsVendorGetLogoAttributeTypeOk(o.Logo) } // SetLogo sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) SetLogo(v CatalogProductDetailsVendorGetLogoRetType) { setCatalogProductDetailsVendorGetLogoAttributeType(&o.Logo, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetName() (ret CatalogProductDetailsVendorGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -232,16 +273,19 @@ func (o *CatalogProductDetailsVendor) GetName() (ret CatalogProductDetailsVendor // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetNameOk() (ret CatalogProductDetailsVendorGetNameRetType, ok bool) { return getCatalogProductDetailsVendorGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) SetName(v CatalogProductDetailsVendorGetNameRetType) { setCatalogProductDetailsVendorGetNameAttributeType(&o.Name, v) } // GetVendorId returns the VendorId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetVendorId() (ret CatalogProductDetailsVendorGetVendorIdRetType) { ret, _ = o.GetVendorIdOk() return ret @@ -249,16 +293,19 @@ func (o *CatalogProductDetailsVendor) GetVendorId() (ret CatalogProductDetailsVe // GetVendorIdOk returns a tuple with the VendorId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetVendorIdOk() (ret CatalogProductDetailsVendorGetVendorIdRetType, ok bool) { return getCatalogProductDetailsVendorGetVendorIdAttributeTypeOk(o.VendorId) } // SetVendorId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) SetVendorId(v CatalogProductDetailsVendorGetVendorIdRetType) { setCatalogProductDetailsVendorGetVendorIdAttributeType(&o.VendorId, v) } // GetVideoUrl returns the VideoUrl field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetVideoUrl() (ret CatalogProductDetailsVendorGetVideoUrlRetType) { ret, _ = o.GetVideoUrlOk() return ret @@ -266,16 +313,19 @@ func (o *CatalogProductDetailsVendor) GetVideoUrl() (ret CatalogProductDetailsVe // GetVideoUrlOk returns a tuple with the VideoUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetVideoUrlOk() (ret CatalogProductDetailsVendorGetVideoUrlRetType, ok bool) { return getCatalogProductDetailsVendorGetVideoUrlAttributeTypeOk(o.VideoUrl) } // SetVideoUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) SetVideoUrl(v CatalogProductDetailsVendorGetVideoUrlRetType) { setCatalogProductDetailsVendorGetVideoUrlAttributeType(&o.VideoUrl, v) } // GetWebsiteUrl returns the WebsiteUrl field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetWebsiteUrl() (ret CatalogProductDetailsVendorGetWebsiteUrlRetType) { ret, _ = o.GetWebsiteUrlOk() return ret @@ -283,15 +333,18 @@ func (o *CatalogProductDetailsVendor) GetWebsiteUrl() (ret CatalogProductDetails // GetWebsiteUrlOk returns a tuple with the WebsiteUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) GetWebsiteUrlOk() (ret CatalogProductDetailsVendorGetWebsiteUrlRetType, ok bool) { return getCatalogProductDetailsVendorGetWebsiteUrlAttributeTypeOk(o.WebsiteUrl) } // SetWebsiteUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductDetailsVendor) SetWebsiteUrl(v CatalogProductDetailsVendorGetWebsiteUrlRetType) { setCatalogProductDetailsVendorGetWebsiteUrlAttributeType(&o.WebsiteUrl, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductDetailsVendor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductDetailsVendorGetDescriptionAttributeTypeOk(o.Description); ok { @@ -315,37 +368,45 @@ func (o CatalogProductDetailsVendor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductDetailsVendor struct { value *CatalogProductDetailsVendor isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductDetailsVendor) Get() *CatalogProductDetailsVendor { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductDetailsVendor) Set(val *CatalogProductDetailsVendor) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductDetailsVendor) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductDetailsVendor) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductDetailsVendor(val *CatalogProductDetailsVendor) *NullableCatalogProductDetailsVendor { return &NullableCatalogProductDetailsVendor{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductDetailsVendor) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductDetailsVendor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_facets_value_inner.go b/services/stackitmarketplace/model_catalog_product_facets_value_inner.go index ec1f25d168..5336cae3ab 100644 --- a/services/stackitmarketplace/model_catalog_product_facets_value_inner.go +++ b/services/stackitmarketplace/model_catalog_product_facets_value_inner.go @@ -22,10 +22,14 @@ var _ MappedNullable = &CatalogProductFacetsValueInner{} */ // isInteger +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInnerGetCountAttributeType = *int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInnerGetCountArgType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInnerGetCountRetType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductFacetsValueInnerGetCountAttributeTypeOk(arg CatalogProductFacetsValueInnerGetCountAttributeType) (ret CatalogProductFacetsValueInnerGetCountRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getCatalogProductFacetsValueInnerGetCountAttributeTypeOk(arg CatalogProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductFacetsValueInnerGetCountAttributeType(arg *CatalogProductFacetsValueInnerGetCountAttributeType, val CatalogProductFacetsValueInnerGetCountRetType) { *arg = &val } @@ -42,8 +47,10 @@ func setCatalogProductFacetsValueInnerGetCountAttributeType(arg *CatalogProductF */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInnerGetValueAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductFacetsValueInnerGetValueAttributeTypeOk(arg CatalogProductFacetsValueInnerGetValueAttributeType) (ret CatalogProductFacetsValueInnerGetValueRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +58,18 @@ func getCatalogProductFacetsValueInnerGetValueAttributeTypeOk(arg CatalogProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductFacetsValueInnerGetValueAttributeType(arg *CatalogProductFacetsValueInnerGetValueAttributeType, val CatalogProductFacetsValueInnerGetValueRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInnerGetValueArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInnerGetValueRetType = string // CatalogProductFacetsValueInner struct for CatalogProductFacetsValueInner +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductFacetsValueInner struct { // The number of items associated with this facet value. // Can be cast to int32 without loss of precision. @@ -69,12 +80,14 @@ type CatalogProductFacetsValueInner struct { Value CatalogProductFacetsValueInnerGetValueAttributeType `json:"value" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductFacetsValueInner CatalogProductFacetsValueInner // NewCatalogProductFacetsValueInner instantiates a new CatalogProductFacetsValueInner object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductFacetsValueInner(count CatalogProductFacetsValueInnerGetCountArgType, value CatalogProductFacetsValueInnerGetValueArgType) *CatalogProductFacetsValueInner { this := CatalogProductFacetsValueInner{} setCatalogProductFacetsValueInnerGetCountAttributeType(&this.Count, count) @@ -85,12 +98,14 @@ func NewCatalogProductFacetsValueInner(count CatalogProductFacetsValueInnerGetCo // NewCatalogProductFacetsValueInnerWithDefaults instantiates a new CatalogProductFacetsValueInner object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductFacetsValueInnerWithDefaults() *CatalogProductFacetsValueInner { this := CatalogProductFacetsValueInner{} return &this } // GetCount returns the Count field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductFacetsValueInner) GetCount() (ret CatalogProductFacetsValueInnerGetCountRetType) { ret, _ = o.GetCountOk() return ret @@ -98,16 +113,19 @@ func (o *CatalogProductFacetsValueInner) GetCount() (ret CatalogProductFacetsVal // GetCountOk returns a tuple with the Count field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductFacetsValueInner) GetCountOk() (ret CatalogProductFacetsValueInnerGetCountRetType, ok bool) { return getCatalogProductFacetsValueInnerGetCountAttributeTypeOk(o.Count) } // SetCount sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductFacetsValueInner) SetCount(v CatalogProductFacetsValueInnerGetCountRetType) { setCatalogProductFacetsValueInnerGetCountAttributeType(&o.Count, v) } // GetValue returns the Value field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductFacetsValueInner) GetValue() (ret CatalogProductFacetsValueInnerGetValueRetType) { ret, _ = o.GetValueOk() return ret @@ -115,15 +133,18 @@ func (o *CatalogProductFacetsValueInner) GetValue() (ret CatalogProductFacetsVal // GetValueOk returns a tuple with the Value field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductFacetsValueInner) GetValueOk() (ret CatalogProductFacetsValueInnerGetValueRetType, ok bool) { return getCatalogProductFacetsValueInnerGetValueAttributeTypeOk(o.Value) } // SetValue sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductFacetsValueInner) SetValue(v CatalogProductFacetsValueInnerGetValueRetType) { setCatalogProductFacetsValueInnerGetValueAttributeType(&o.Value, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductFacetsValueInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductFacetsValueInnerGetCountAttributeTypeOk(o.Count); ok { @@ -135,37 +156,45 @@ func (o CatalogProductFacetsValueInner) ToMap() (map[string]interface{}, error) return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductFacetsValueInner struct { value *CatalogProductFacetsValueInner isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductFacetsValueInner) Get() *CatalogProductFacetsValueInner { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductFacetsValueInner) Set(val *CatalogProductFacetsValueInner) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductFacetsValueInner) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductFacetsValueInner) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductFacetsValueInner(val *CatalogProductFacetsValueInner) *NullableCatalogProductFacetsValueInner { return &NullableCatalogProductFacetsValueInner{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductFacetsValueInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductFacetsValueInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_highlight.go b/services/stackitmarketplace/model_catalog_product_highlight.go index 0d4793640e..baf1739a15 100644 --- a/services/stackitmarketplace/model_catalog_product_highlight.go +++ b/services/stackitmarketplace/model_catalog_product_highlight.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogProductHighlight{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightContentAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductHighlightGetHighlightContentAttributeTypeOk(arg CatalogProductHighlightGetHighlightContentAttributeType) (ret CatalogProductHighlightGetHighlightContentRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getCatalogProductHighlightGetHighlightContentAttributeTypeOk(arg CatalogPro return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductHighlightGetHighlightContentAttributeType(arg *CatalogProductHighlightGetHighlightContentAttributeType, val CatalogProductHighlightGetHighlightContentRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightContentArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightContentRetType = string /* @@ -43,8 +48,10 @@ type CatalogProductHighlightGetHighlightContentRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightIconAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductHighlightGetHighlightIconAttributeTypeOk(arg CatalogProductHighlightGetHighlightIconAttributeType) (ret CatalogProductHighlightGetHighlightIconRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getCatalogProductHighlightGetHighlightIconAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductHighlightGetHighlightIconAttributeType(arg *CatalogProductHighlightGetHighlightIconAttributeType, val CatalogProductHighlightGetHighlightIconRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightIconArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightIconRetType = string /* @@ -64,8 +74,10 @@ type CatalogProductHighlightGetHighlightIconRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightTitleAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductHighlightGetHighlightTitleAttributeTypeOk(arg CatalogProductHighlightGetHighlightTitleAttributeType) (ret CatalogProductHighlightGetHighlightTitleRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +85,18 @@ func getCatalogProductHighlightGetHighlightTitleAttributeTypeOk(arg CatalogProdu return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductHighlightGetHighlightTitleAttributeType(arg *CatalogProductHighlightGetHighlightTitleAttributeType, val CatalogProductHighlightGetHighlightTitleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightTitleArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlightGetHighlightTitleRetType = string // CatalogProductHighlight struct for CatalogProductHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductHighlight struct { // The highlight content. HighlightContent CatalogProductHighlightGetHighlightContentAttributeType `json:"highlightContent,omitempty"` @@ -94,6 +110,7 @@ type CatalogProductHighlight struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductHighlight() *CatalogProductHighlight { this := CatalogProductHighlight{} return &this @@ -102,12 +119,14 @@ func NewCatalogProductHighlight() *CatalogProductHighlight { // NewCatalogProductHighlightWithDefaults instantiates a new CatalogProductHighlight object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductHighlightWithDefaults() *CatalogProductHighlight { this := CatalogProductHighlight{} return &this } // GetHighlightContent returns the HighlightContent field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) GetHighlightContent() (res CatalogProductHighlightGetHighlightContentRetType) { res, _ = o.GetHighlightContentOk() return @@ -115,22 +134,26 @@ func (o *CatalogProductHighlight) GetHighlightContent() (res CatalogProductHighl // GetHighlightContentOk returns a tuple with the HighlightContent field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) GetHighlightContentOk() (ret CatalogProductHighlightGetHighlightContentRetType, ok bool) { return getCatalogProductHighlightGetHighlightContentAttributeTypeOk(o.HighlightContent) } // HasHighlightContent returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) HasHighlightContent() bool { _, ok := o.GetHighlightContentOk() return ok } // SetHighlightContent gets a reference to the given string and assigns it to the HighlightContent field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) SetHighlightContent(v CatalogProductHighlightGetHighlightContentRetType) { setCatalogProductHighlightGetHighlightContentAttributeType(&o.HighlightContent, v) } // GetHighlightIcon returns the HighlightIcon field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) GetHighlightIcon() (res CatalogProductHighlightGetHighlightIconRetType) { res, _ = o.GetHighlightIconOk() return @@ -138,22 +161,26 @@ func (o *CatalogProductHighlight) GetHighlightIcon() (res CatalogProductHighligh // GetHighlightIconOk returns a tuple with the HighlightIcon field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) GetHighlightIconOk() (ret CatalogProductHighlightGetHighlightIconRetType, ok bool) { return getCatalogProductHighlightGetHighlightIconAttributeTypeOk(o.HighlightIcon) } // HasHighlightIcon returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) HasHighlightIcon() bool { _, ok := o.GetHighlightIconOk() return ok } // SetHighlightIcon gets a reference to the given string and assigns it to the HighlightIcon field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) SetHighlightIcon(v CatalogProductHighlightGetHighlightIconRetType) { setCatalogProductHighlightGetHighlightIconAttributeType(&o.HighlightIcon, v) } // GetHighlightTitle returns the HighlightTitle field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) GetHighlightTitle() (res CatalogProductHighlightGetHighlightTitleRetType) { res, _ = o.GetHighlightTitleOk() return @@ -161,21 +188,25 @@ func (o *CatalogProductHighlight) GetHighlightTitle() (res CatalogProductHighlig // GetHighlightTitleOk returns a tuple with the HighlightTitle field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) GetHighlightTitleOk() (ret CatalogProductHighlightGetHighlightTitleRetType, ok bool) { return getCatalogProductHighlightGetHighlightTitleAttributeTypeOk(o.HighlightTitle) } // HasHighlightTitle returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) HasHighlightTitle() bool { _, ok := o.GetHighlightTitleOk() return ok } // SetHighlightTitle gets a reference to the given string and assigns it to the HighlightTitle field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductHighlight) SetHighlightTitle(v CatalogProductHighlightGetHighlightTitleRetType) { setCatalogProductHighlightGetHighlightTitleAttributeType(&o.HighlightTitle, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductHighlight) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductHighlightGetHighlightContentAttributeTypeOk(o.HighlightContent); ok { @@ -190,37 +221,45 @@ func (o CatalogProductHighlight) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductHighlight struct { value *CatalogProductHighlight isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductHighlight) Get() *CatalogProductHighlight { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductHighlight) Set(val *CatalogProductHighlight) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductHighlight) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductHighlight) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductHighlight(val *CatalogProductHighlight) *NullableCatalogProductHighlight { return &NullableCatalogProductHighlight{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductHighlight) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductHighlight) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_overview.go b/services/stackitmarketplace/model_catalog_product_overview.go index dac15d5d90..2169b696c3 100644 --- a/services/stackitmarketplace/model_catalog_product_overview.go +++ b/services/stackitmarketplace/model_catalog_product_overview.go @@ -22,10 +22,14 @@ var _ MappedNullable = &CatalogProductOverview{} */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetDeliveryMethodAttributeType = *DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetDeliveryMethodArgType = DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetDeliveryMethodRetType = DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetDeliveryMethodAttributeTypeOk(arg CatalogProductOverviewGetDeliveryMethodAttributeType) (ret CatalogProductOverviewGetDeliveryMethodRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getCatalogProductOverviewGetDeliveryMethodAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetDeliveryMethodAttributeType(arg *CatalogProductOverviewGetDeliveryMethodAttributeType, val CatalogProductOverviewGetDeliveryMethodRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setCatalogProductOverviewGetDeliveryMethodAttributeType(arg *CatalogProduct */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetFreeTrialAttributeType = *FreeTrial +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetFreeTrialArgType = FreeTrial +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetFreeTrialRetType = FreeTrial +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetFreeTrialAttributeTypeOk(arg CatalogProductOverviewGetFreeTrialAttributeType) (ret CatalogProductOverviewGetFreeTrialRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +62,7 @@ func getCatalogProductOverviewGetFreeTrialAttributeTypeOk(arg CatalogProductOver return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetFreeTrialAttributeType(arg *CatalogProductOverviewGetFreeTrialAttributeType, val CatalogProductOverviewGetFreeTrialRetType) { *arg = &val } @@ -62,10 +72,14 @@ func setCatalogProductOverviewGetFreeTrialAttributeType(arg *CatalogProductOverv */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetLifecycleStateAttributeType = *ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetLifecycleStateArgType = ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetLifecycleStateRetType = ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetLifecycleStateAttributeTypeOk(arg CatalogProductOverviewGetLifecycleStateAttributeType) (ret CatalogProductOverviewGetLifecycleStateRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +87,7 @@ func getCatalogProductOverviewGetLifecycleStateAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetLifecycleStateAttributeType(arg *CatalogProductOverviewGetLifecycleStateAttributeType, val CatalogProductOverviewGetLifecycleStateRetType) { *arg = &val } @@ -82,8 +97,10 @@ func setCatalogProductOverviewGetLifecycleStateAttributeType(arg *CatalogProduct */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetLogoAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetLogoAttributeTypeOk(arg CatalogProductOverviewGetLogoAttributeType) (ret CatalogProductOverviewGetLogoRetType, ok bool) { if arg == nil { return ret, false @@ -91,11 +108,14 @@ func getCatalogProductOverviewGetLogoAttributeTypeOk(arg CatalogProductOverviewG return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetLogoAttributeType(arg *CatalogProductOverviewGetLogoAttributeType, val CatalogProductOverviewGetLogoRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetLogoArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetLogoRetType = string /* @@ -103,8 +123,10 @@ type CatalogProductOverviewGetLogoRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetNameAttributeTypeOk(arg CatalogProductOverviewGetNameAttributeType) (ret CatalogProductOverviewGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -112,11 +134,14 @@ func getCatalogProductOverviewGetNameAttributeTypeOk(arg CatalogProductOverviewG return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetNameAttributeType(arg *CatalogProductOverviewGetNameAttributeType, val CatalogProductOverviewGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetNameRetType = string /* @@ -124,8 +149,10 @@ type CatalogProductOverviewGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetProductIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetProductIdAttributeTypeOk(arg CatalogProductOverviewGetProductIdAttributeType) (ret CatalogProductOverviewGetProductIdRetType, ok bool) { if arg == nil { return ret, false @@ -133,11 +160,14 @@ func getCatalogProductOverviewGetProductIdAttributeTypeOk(arg CatalogProductOver return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetProductIdAttributeType(arg *CatalogProductOverviewGetProductIdAttributeType, val CatalogProductOverviewGetProductIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetProductIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetProductIdRetType = string /* @@ -145,8 +175,10 @@ type CatalogProductOverviewGetProductIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetSummaryAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetSummaryAttributeTypeOk(arg CatalogProductOverviewGetSummaryAttributeType) (ret CatalogProductOverviewGetSummaryRetType, ok bool) { if arg == nil { return ret, false @@ -154,11 +186,14 @@ func getCatalogProductOverviewGetSummaryAttributeTypeOk(arg CatalogProductOvervi return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetSummaryAttributeType(arg *CatalogProductOverviewGetSummaryAttributeType, val CatalogProductOverviewGetSummaryRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetSummaryArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetSummaryRetType = string /* @@ -166,10 +201,14 @@ type CatalogProductOverviewGetSummaryRetType = string */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetVendorAttributeType = *CatalogProductOverviewVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetVendorArgType = CatalogProductOverviewVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewGetVendorRetType = CatalogProductOverviewVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewGetVendorAttributeTypeOk(arg CatalogProductOverviewGetVendorAttributeType) (ret CatalogProductOverviewGetVendorRetType, ok bool) { if arg == nil { return ret, false @@ -177,11 +216,13 @@ func getCatalogProductOverviewGetVendorAttributeTypeOk(arg CatalogProductOvervie return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewGetVendorAttributeType(arg *CatalogProductOverviewGetVendorAttributeType, val CatalogProductOverviewGetVendorRetType) { *arg = &val } // CatalogProductOverview struct for CatalogProductOverview +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverview struct { // REQUIRED DeliveryMethod CatalogProductOverviewGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` @@ -203,12 +244,14 @@ type CatalogProductOverview struct { Vendor CatalogProductOverviewGetVendorAttributeType `json:"vendor" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductOverview CatalogProductOverview // NewCatalogProductOverview instantiates a new CatalogProductOverview object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductOverview(deliveryMethod CatalogProductOverviewGetDeliveryMethodArgType, lifecycleState CatalogProductOverviewGetLifecycleStateArgType, name CatalogProductOverviewGetNameArgType, productId CatalogProductOverviewGetProductIdArgType, summary CatalogProductOverviewGetSummaryArgType, vendor CatalogProductOverviewGetVendorArgType) *CatalogProductOverview { this := CatalogProductOverview{} setCatalogProductOverviewGetDeliveryMethodAttributeType(&this.DeliveryMethod, deliveryMethod) @@ -223,12 +266,14 @@ func NewCatalogProductOverview(deliveryMethod CatalogProductOverviewGetDeliveryM // NewCatalogProductOverviewWithDefaults instantiates a new CatalogProductOverview object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductOverviewWithDefaults() *CatalogProductOverview { this := CatalogProductOverview{} return &this } // GetDeliveryMethod returns the DeliveryMethod field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetDeliveryMethod() (ret CatalogProductOverviewGetDeliveryMethodRetType) { ret, _ = o.GetDeliveryMethodOk() return ret @@ -236,16 +281,19 @@ func (o *CatalogProductOverview) GetDeliveryMethod() (ret CatalogProductOverview // GetDeliveryMethodOk returns a tuple with the DeliveryMethod field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetDeliveryMethodOk() (ret CatalogProductOverviewGetDeliveryMethodRetType, ok bool) { return getCatalogProductOverviewGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod) } // SetDeliveryMethod sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetDeliveryMethod(v CatalogProductOverviewGetDeliveryMethodRetType) { setCatalogProductOverviewGetDeliveryMethodAttributeType(&o.DeliveryMethod, v) } // GetFreeTrial returns the FreeTrial field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetFreeTrial() (res CatalogProductOverviewGetFreeTrialRetType) { res, _ = o.GetFreeTrialOk() return @@ -253,22 +301,26 @@ func (o *CatalogProductOverview) GetFreeTrial() (res CatalogProductOverviewGetFr // GetFreeTrialOk returns a tuple with the FreeTrial field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetFreeTrialOk() (ret CatalogProductOverviewGetFreeTrialRetType, ok bool) { return getCatalogProductOverviewGetFreeTrialAttributeTypeOk(o.FreeTrial) } // HasFreeTrial returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) HasFreeTrial() bool { _, ok := o.GetFreeTrialOk() return ok } // SetFreeTrial gets a reference to the given FreeTrial and assigns it to the FreeTrial field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetFreeTrial(v CatalogProductOverviewGetFreeTrialRetType) { setCatalogProductOverviewGetFreeTrialAttributeType(&o.FreeTrial, v) } // GetLifecycleState returns the LifecycleState field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetLifecycleState() (ret CatalogProductOverviewGetLifecycleStateRetType) { ret, _ = o.GetLifecycleStateOk() return ret @@ -276,16 +328,19 @@ func (o *CatalogProductOverview) GetLifecycleState() (ret CatalogProductOverview // GetLifecycleStateOk returns a tuple with the LifecycleState field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetLifecycleStateOk() (ret CatalogProductOverviewGetLifecycleStateRetType, ok bool) { return getCatalogProductOverviewGetLifecycleStateAttributeTypeOk(o.LifecycleState) } // SetLifecycleState sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetLifecycleState(v CatalogProductOverviewGetLifecycleStateRetType) { setCatalogProductOverviewGetLifecycleStateAttributeType(&o.LifecycleState, v) } // GetLogo returns the Logo field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetLogo() (res CatalogProductOverviewGetLogoRetType) { res, _ = o.GetLogoOk() return @@ -293,22 +348,26 @@ func (o *CatalogProductOverview) GetLogo() (res CatalogProductOverviewGetLogoRet // GetLogoOk returns a tuple with the Logo field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetLogoOk() (ret CatalogProductOverviewGetLogoRetType, ok bool) { return getCatalogProductOverviewGetLogoAttributeTypeOk(o.Logo) } // HasLogo returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) HasLogo() bool { _, ok := o.GetLogoOk() return ok } // SetLogo gets a reference to the given string and assigns it to the Logo field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetLogo(v CatalogProductOverviewGetLogoRetType) { setCatalogProductOverviewGetLogoAttributeType(&o.Logo, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetName() (ret CatalogProductOverviewGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -316,16 +375,19 @@ func (o *CatalogProductOverview) GetName() (ret CatalogProductOverviewGetNameRet // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetNameOk() (ret CatalogProductOverviewGetNameRetType, ok bool) { return getCatalogProductOverviewGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetName(v CatalogProductOverviewGetNameRetType) { setCatalogProductOverviewGetNameAttributeType(&o.Name, v) } // GetProductId returns the ProductId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetProductId() (ret CatalogProductOverviewGetProductIdRetType) { ret, _ = o.GetProductIdOk() return ret @@ -333,16 +395,19 @@ func (o *CatalogProductOverview) GetProductId() (ret CatalogProductOverviewGetPr // GetProductIdOk returns a tuple with the ProductId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetProductIdOk() (ret CatalogProductOverviewGetProductIdRetType, ok bool) { return getCatalogProductOverviewGetProductIdAttributeTypeOk(o.ProductId) } // SetProductId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetProductId(v CatalogProductOverviewGetProductIdRetType) { setCatalogProductOverviewGetProductIdAttributeType(&o.ProductId, v) } // GetSummary returns the Summary field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetSummary() (ret CatalogProductOverviewGetSummaryRetType) { ret, _ = o.GetSummaryOk() return ret @@ -350,16 +415,19 @@ func (o *CatalogProductOverview) GetSummary() (ret CatalogProductOverviewGetSumm // GetSummaryOk returns a tuple with the Summary field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetSummaryOk() (ret CatalogProductOverviewGetSummaryRetType, ok bool) { return getCatalogProductOverviewGetSummaryAttributeTypeOk(o.Summary) } // SetSummary sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetSummary(v CatalogProductOverviewGetSummaryRetType) { setCatalogProductOverviewGetSummaryAttributeType(&o.Summary, v) } // GetVendor returns the Vendor field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetVendor() (ret CatalogProductOverviewGetVendorRetType) { ret, _ = o.GetVendorOk() return ret @@ -367,15 +435,18 @@ func (o *CatalogProductOverview) GetVendor() (ret CatalogProductOverviewGetVendo // GetVendorOk returns a tuple with the Vendor field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) GetVendorOk() (ret CatalogProductOverviewGetVendorRetType, ok bool) { return getCatalogProductOverviewGetVendorAttributeTypeOk(o.Vendor) } // SetVendor sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverview) SetVendor(v CatalogProductOverviewGetVendorRetType) { setCatalogProductOverviewGetVendorAttributeType(&o.Vendor, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductOverview) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductOverviewGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod); ok { @@ -405,37 +476,45 @@ func (o CatalogProductOverview) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductOverview struct { value *CatalogProductOverview isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductOverview) Get() *CatalogProductOverview { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductOverview) Set(val *CatalogProductOverview) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductOverview) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductOverview) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductOverview(val *CatalogProductOverview) *NullableCatalogProductOverview { return &NullableCatalogProductOverview{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductOverview) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductOverview) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_overview_vendor.go b/services/stackitmarketplace/model_catalog_product_overview_vendor.go index 507d5d115b..7db2e3c33d 100644 --- a/services/stackitmarketplace/model_catalog_product_overview_vendor.go +++ b/services/stackitmarketplace/model_catalog_product_overview_vendor.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogProductOverviewVendor{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewVendorGetNameAttributeTypeOk(arg CatalogProductOverviewVendorGetNameAttributeType) (ret CatalogProductOverviewVendorGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getCatalogProductOverviewVendorGetNameAttributeTypeOk(arg CatalogProductOve return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewVendorGetNameAttributeType(arg *CatalogProductOverviewVendorGetNameAttributeType, val CatalogProductOverviewVendorGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetNameRetType = string /* @@ -43,8 +48,10 @@ type CatalogProductOverviewVendorGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetVendorIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewVendorGetVendorIdAttributeTypeOk(arg CatalogProductOverviewVendorGetVendorIdAttributeType) (ret CatalogProductOverviewVendorGetVendorIdRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getCatalogProductOverviewVendorGetVendorIdAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewVendorGetVendorIdAttributeType(arg *CatalogProductOverviewVendorGetVendorIdAttributeType, val CatalogProductOverviewVendorGetVendorIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetVendorIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetVendorIdRetType = string /* @@ -64,8 +74,10 @@ type CatalogProductOverviewVendorGetVendorIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetWebsiteUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductOverviewVendorGetWebsiteUrlAttributeTypeOk(arg CatalogProductOverviewVendorGetWebsiteUrlAttributeType) (ret CatalogProductOverviewVendorGetWebsiteUrlRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +85,18 @@ func getCatalogProductOverviewVendorGetWebsiteUrlAttributeTypeOk(arg CatalogProd return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductOverviewVendorGetWebsiteUrlAttributeType(arg *CatalogProductOverviewVendorGetWebsiteUrlAttributeType, val CatalogProductOverviewVendorGetWebsiteUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetWebsiteUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendorGetWebsiteUrlRetType = string // CatalogProductOverviewVendor struct for CatalogProductOverviewVendor +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductOverviewVendor struct { // The product's vendor name. // REQUIRED @@ -93,12 +109,14 @@ type CatalogProductOverviewVendor struct { WebsiteUrl CatalogProductOverviewVendorGetWebsiteUrlAttributeType `json:"websiteUrl" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductOverviewVendor CatalogProductOverviewVendor // NewCatalogProductOverviewVendor instantiates a new CatalogProductOverviewVendor object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductOverviewVendor(name CatalogProductOverviewVendorGetNameArgType, vendorId CatalogProductOverviewVendorGetVendorIdArgType, websiteUrl CatalogProductOverviewVendorGetWebsiteUrlArgType) *CatalogProductOverviewVendor { this := CatalogProductOverviewVendor{} setCatalogProductOverviewVendorGetNameAttributeType(&this.Name, name) @@ -110,12 +128,14 @@ func NewCatalogProductOverviewVendor(name CatalogProductOverviewVendorGetNameArg // NewCatalogProductOverviewVendorWithDefaults instantiates a new CatalogProductOverviewVendor object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductOverviewVendorWithDefaults() *CatalogProductOverviewVendor { this := CatalogProductOverviewVendor{} return &this } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) GetName() (ret CatalogProductOverviewVendorGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -123,16 +143,19 @@ func (o *CatalogProductOverviewVendor) GetName() (ret CatalogProductOverviewVend // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) GetNameOk() (ret CatalogProductOverviewVendorGetNameRetType, ok bool) { return getCatalogProductOverviewVendorGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) SetName(v CatalogProductOverviewVendorGetNameRetType) { setCatalogProductOverviewVendorGetNameAttributeType(&o.Name, v) } // GetVendorId returns the VendorId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) GetVendorId() (ret CatalogProductOverviewVendorGetVendorIdRetType) { ret, _ = o.GetVendorIdOk() return ret @@ -140,16 +163,19 @@ func (o *CatalogProductOverviewVendor) GetVendorId() (ret CatalogProductOverview // GetVendorIdOk returns a tuple with the VendorId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) GetVendorIdOk() (ret CatalogProductOverviewVendorGetVendorIdRetType, ok bool) { return getCatalogProductOverviewVendorGetVendorIdAttributeTypeOk(o.VendorId) } // SetVendorId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) SetVendorId(v CatalogProductOverviewVendorGetVendorIdRetType) { setCatalogProductOverviewVendorGetVendorIdAttributeType(&o.VendorId, v) } // GetWebsiteUrl returns the WebsiteUrl field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) GetWebsiteUrl() (ret CatalogProductOverviewVendorGetWebsiteUrlRetType) { ret, _ = o.GetWebsiteUrlOk() return ret @@ -157,15 +183,18 @@ func (o *CatalogProductOverviewVendor) GetWebsiteUrl() (ret CatalogProductOvervi // GetWebsiteUrlOk returns a tuple with the WebsiteUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) GetWebsiteUrlOk() (ret CatalogProductOverviewVendorGetWebsiteUrlRetType, ok bool) { return getCatalogProductOverviewVendorGetWebsiteUrlAttributeTypeOk(o.WebsiteUrl) } // SetWebsiteUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductOverviewVendor) SetWebsiteUrl(v CatalogProductOverviewVendorGetWebsiteUrlRetType) { setCatalogProductOverviewVendorGetWebsiteUrlAttributeType(&o.WebsiteUrl, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductOverviewVendor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductOverviewVendorGetNameAttributeTypeOk(o.Name); ok { @@ -180,37 +209,45 @@ func (o CatalogProductOverviewVendor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductOverviewVendor struct { value *CatalogProductOverviewVendor isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductOverviewVendor) Get() *CatalogProductOverviewVendor { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductOverviewVendor) Set(val *CatalogProductOverviewVendor) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductOverviewVendor) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductOverviewVendor) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductOverviewVendor(val *CatalogProductOverviewVendor) *NullableCatalogProductOverviewVendor { return &NullableCatalogProductOverviewVendor{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductOverviewVendor) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductOverviewVendor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_pricing_option.go b/services/stackitmarketplace/model_catalog_product_pricing_option.go index a9441da042..b39c478b4b 100644 --- a/services/stackitmarketplace/model_catalog_product_pricing_option.go +++ b/services/stackitmarketplace/model_catalog_product_pricing_option.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogProductPricingOption{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetDescriptionAttributeTypeOk(arg CatalogProductPricingOptionGetDescriptionAttributeType) (ret CatalogProductPricingOptionGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getCatalogProductPricingOptionGetDescriptionAttributeTypeOk(arg CatalogProd return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetDescriptionAttributeType(arg *CatalogProductPricingOptionGetDescriptionAttributeType, val CatalogProductPricingOptionGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetDescriptionArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetDescriptionRetType = string /* @@ -43,10 +48,14 @@ type CatalogProductPricingOptionGetDescriptionRetType = string */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetHighlightsAttributeType = *[]CatalogPricingOptionHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetHighlightsArgType = []CatalogPricingOptionHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetHighlightsRetType = []CatalogPricingOptionHighlight +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetHighlightsAttributeTypeOk(arg CatalogProductPricingOptionGetHighlightsAttributeType) (ret CatalogProductPricingOptionGetHighlightsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +63,7 @@ func getCatalogProductPricingOptionGetHighlightsAttributeTypeOk(arg CatalogProdu return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetHighlightsAttributeType(arg *CatalogProductPricingOptionGetHighlightsAttributeType, val CatalogProductPricingOptionGetHighlightsRetType) { *arg = &val } @@ -63,8 +73,10 @@ func setCatalogProductPricingOptionGetHighlightsAttributeType(arg *CatalogProduc */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetNameAttributeTypeOk(arg CatalogProductPricingOptionGetNameAttributeType) (ret CatalogProductPricingOptionGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +84,14 @@ func getCatalogProductPricingOptionGetNameAttributeTypeOk(arg CatalogProductPric return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetNameAttributeType(arg *CatalogProductPricingOptionGetNameAttributeType, val CatalogProductPricingOptionGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetNameRetType = string /* @@ -84,10 +99,14 @@ type CatalogProductPricingOptionGetNameRetType = string */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetNoticePeriodAttributeType = *NoticePeriod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetNoticePeriodArgType = NoticePeriod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetNoticePeriodRetType = NoticePeriod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(arg CatalogProductPricingOptionGetNoticePeriodAttributeType) (ret CatalogProductPricingOptionGetNoticePeriodRetType, ok bool) { if arg == nil { return ret, false @@ -95,6 +114,7 @@ func getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(arg CatalogPro return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetNoticePeriodAttributeType(arg *CatalogProductPricingOptionGetNoticePeriodAttributeType, val CatalogProductPricingOptionGetNoticePeriodRetType) { *arg = &val } @@ -104,8 +124,10 @@ func setCatalogProductPricingOptionGetNoticePeriodAttributeType(arg *CatalogProd */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(arg CatalogProductPricingOptionGetPlanIdAttributeType) (ret CatalogProductPricingOptionGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -113,11 +135,14 @@ func getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(arg CatalogProductPr return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetPlanIdAttributeType(arg *CatalogProductPricingOptionGetPlanIdAttributeType, val CatalogProductPricingOptionGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPlanIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPlanIdRetType = string /* @@ -125,10 +150,14 @@ type CatalogProductPricingOptionGetPlanIdRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPriceTypeAttributeType = *PriceType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPriceTypeArgType = PriceType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPriceTypeRetType = PriceType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetPriceTypeAttributeTypeOk(arg CatalogProductPricingOptionGetPriceTypeAttributeType) (ret CatalogProductPricingOptionGetPriceTypeRetType, ok bool) { if arg == nil { return ret, false @@ -136,6 +165,7 @@ func getCatalogProductPricingOptionGetPriceTypeAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetPriceTypeAttributeType(arg *CatalogProductPricingOptionGetPriceTypeAttributeType, val CatalogProductPricingOptionGetPriceTypeRetType) { *arg = &val } @@ -145,8 +175,10 @@ func setCatalogProductPricingOptionGetPriceTypeAttributeType(arg *CatalogProduct */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPricingPlanAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetPricingPlanAttributeTypeOk(arg CatalogProductPricingOptionGetPricingPlanAttributeType) (ret CatalogProductPricingOptionGetPricingPlanRetType, ok bool) { if arg == nil { return ret, false @@ -154,11 +186,14 @@ func getCatalogProductPricingOptionGetPricingPlanAttributeTypeOk(arg CatalogProd return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetPricingPlanAttributeType(arg *CatalogProductPricingOptionGetPricingPlanAttributeType, val CatalogProductPricingOptionGetPricingPlanRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPricingPlanArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetPricingPlanRetType = string /* @@ -166,8 +201,10 @@ type CatalogProductPricingOptionGetPricingPlanRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetRateAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetRateAttributeTypeOk(arg CatalogProductPricingOptionGetRateAttributeType) (ret CatalogProductPricingOptionGetRateRetType, ok bool) { if arg == nil { return ret, false @@ -175,11 +212,14 @@ func getCatalogProductPricingOptionGetRateAttributeTypeOk(arg CatalogProductPric return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetRateAttributeType(arg *CatalogProductPricingOptionGetRateAttributeType, val CatalogProductPricingOptionGetRateRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetRateArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetRateRetType = string /* @@ -187,10 +227,14 @@ type CatalogProductPricingOptionGetRateRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetScopeAttributeType = *Scope +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetScopeArgType = Scope +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetScopeRetType = Scope +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetScopeAttributeTypeOk(arg CatalogProductPricingOptionGetScopeAttributeType) (ret CatalogProductPricingOptionGetScopeRetType, ok bool) { if arg == nil { return ret, false @@ -198,6 +242,7 @@ func getCatalogProductPricingOptionGetScopeAttributeTypeOk(arg CatalogProductPri return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetScopeAttributeType(arg *CatalogProductPricingOptionGetScopeAttributeType, val CatalogProductPricingOptionGetScopeRetType) { *arg = &val } @@ -207,8 +252,10 @@ func setCatalogProductPricingOptionGetScopeAttributeType(arg *CatalogProductPric */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetSkuAttributeTypeOk(arg CatalogProductPricingOptionGetSkuAttributeType) (ret CatalogProductPricingOptionGetSkuRetType, ok bool) { if arg == nil { return ret, false @@ -216,11 +263,14 @@ func getCatalogProductPricingOptionGetSkuAttributeTypeOk(arg CatalogProductPrici return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetSkuAttributeType(arg *CatalogProductPricingOptionGetSkuAttributeType, val CatalogProductPricingOptionGetSkuRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuRetType = string /* @@ -228,8 +278,10 @@ type CatalogProductPricingOptionGetSkuRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuInfoAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetSkuInfoAttributeTypeOk(arg CatalogProductPricingOptionGetSkuInfoAttributeType) (ret CatalogProductPricingOptionGetSkuInfoRetType, ok bool) { if arg == nil { return ret, false @@ -237,11 +289,14 @@ func getCatalogProductPricingOptionGetSkuInfoAttributeTypeOk(arg CatalogProductP return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetSkuInfoAttributeType(arg *CatalogProductPricingOptionGetSkuInfoAttributeType, val CatalogProductPricingOptionGetSkuInfoRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuInfoArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuInfoRetType = string /* @@ -249,8 +304,10 @@ type CatalogProductPricingOptionGetSkuInfoRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuInfoDetailsAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetSkuInfoDetailsAttributeTypeOk(arg CatalogProductPricingOptionGetSkuInfoDetailsAttributeType) (ret CatalogProductPricingOptionGetSkuInfoDetailsRetType, ok bool) { if arg == nil { return ret, false @@ -258,11 +315,14 @@ func getCatalogProductPricingOptionGetSkuInfoDetailsAttributeTypeOk(arg CatalogP return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetSkuInfoDetailsAttributeType(arg *CatalogProductPricingOptionGetSkuInfoDetailsAttributeType, val CatalogProductPricingOptionGetSkuInfoDetailsRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuInfoDetailsArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetSkuInfoDetailsRetType = string /* @@ -270,10 +330,14 @@ type CatalogProductPricingOptionGetSkuInfoDetailsRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetUnitAttributeType = *PricingOptionUnit +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetUnitArgType = PricingOptionUnit +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOptionGetUnitRetType = PricingOptionUnit +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductPricingOptionGetUnitAttributeTypeOk(arg CatalogProductPricingOptionGetUnitAttributeType) (ret CatalogProductPricingOptionGetUnitRetType, ok bool) { if arg == nil { return ret, false @@ -281,11 +345,13 @@ func getCatalogProductPricingOptionGetUnitAttributeTypeOk(arg CatalogProductPric return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductPricingOptionGetUnitAttributeType(arg *CatalogProductPricingOptionGetUnitAttributeType, val CatalogProductPricingOptionGetUnitRetType) { *arg = &val } // CatalogProductPricingOption struct for CatalogProductPricingOption +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductPricingOption struct { // The pricing option description. // REQUIRED @@ -319,12 +385,14 @@ type CatalogProductPricingOption struct { Unit CatalogProductPricingOptionGetUnitAttributeType `json:"unit,omitempty"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductPricingOption CatalogProductPricingOption // NewCatalogProductPricingOption instantiates a new CatalogProductPricingOption object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductPricingOption(description CatalogProductPricingOptionGetDescriptionArgType, highlights CatalogProductPricingOptionGetHighlightsArgType, name CatalogProductPricingOptionGetNameArgType, planId CatalogProductPricingOptionGetPlanIdArgType, scope CatalogProductPricingOptionGetScopeArgType, sku CatalogProductPricingOptionGetSkuArgType, skuInfo CatalogProductPricingOptionGetSkuInfoArgType, skuInfoDetails CatalogProductPricingOptionGetSkuInfoDetailsArgType) *CatalogProductPricingOption { this := CatalogProductPricingOption{} setCatalogProductPricingOptionGetDescriptionAttributeType(&this.Description, description) @@ -341,12 +409,14 @@ func NewCatalogProductPricingOption(description CatalogProductPricingOptionGetDe // NewCatalogProductPricingOptionWithDefaults instantiates a new CatalogProductPricingOption object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductPricingOptionWithDefaults() *CatalogProductPricingOption { this := CatalogProductPricingOption{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetDescription() (ret CatalogProductPricingOptionGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -354,16 +424,19 @@ func (o *CatalogProductPricingOption) GetDescription() (ret CatalogProductPricin // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetDescriptionOk() (ret CatalogProductPricingOptionGetDescriptionRetType, ok bool) { return getCatalogProductPricingOptionGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetDescription(v CatalogProductPricingOptionGetDescriptionRetType) { setCatalogProductPricingOptionGetDescriptionAttributeType(&o.Description, v) } // GetHighlights returns the Highlights field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetHighlights() (ret CatalogProductPricingOptionGetHighlightsRetType) { ret, _ = o.GetHighlightsOk() return ret @@ -371,16 +444,19 @@ func (o *CatalogProductPricingOption) GetHighlights() (ret CatalogProductPricing // GetHighlightsOk returns a tuple with the Highlights field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetHighlightsOk() (ret CatalogProductPricingOptionGetHighlightsRetType, ok bool) { return getCatalogProductPricingOptionGetHighlightsAttributeTypeOk(o.Highlights) } // SetHighlights sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetHighlights(v CatalogProductPricingOptionGetHighlightsRetType) { setCatalogProductPricingOptionGetHighlightsAttributeType(&o.Highlights, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetName() (ret CatalogProductPricingOptionGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -388,16 +464,19 @@ func (o *CatalogProductPricingOption) GetName() (ret CatalogProductPricingOption // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetNameOk() (ret CatalogProductPricingOptionGetNameRetType, ok bool) { return getCatalogProductPricingOptionGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetName(v CatalogProductPricingOptionGetNameRetType) { setCatalogProductPricingOptionGetNameAttributeType(&o.Name, v) } // GetNoticePeriod returns the NoticePeriod field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetNoticePeriod() (res CatalogProductPricingOptionGetNoticePeriodRetType) { res, _ = o.GetNoticePeriodOk() return @@ -405,22 +484,26 @@ func (o *CatalogProductPricingOption) GetNoticePeriod() (res CatalogProductPrici // GetNoticePeriodOk returns a tuple with the NoticePeriod field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetNoticePeriodOk() (ret CatalogProductPricingOptionGetNoticePeriodRetType, ok bool) { return getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(o.NoticePeriod) } // HasNoticePeriod returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) HasNoticePeriod() bool { _, ok := o.GetNoticePeriodOk() return ok } // SetNoticePeriod gets a reference to the given NoticePeriod and assigns it to the NoticePeriod field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetNoticePeriod(v CatalogProductPricingOptionGetNoticePeriodRetType) { setCatalogProductPricingOptionGetNoticePeriodAttributeType(&o.NoticePeriod, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetPlanId() (ret CatalogProductPricingOptionGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -428,16 +511,19 @@ func (o *CatalogProductPricingOption) GetPlanId() (ret CatalogProductPricingOpti // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetPlanIdOk() (ret CatalogProductPricingOptionGetPlanIdRetType, ok bool) { return getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetPlanId(v CatalogProductPricingOptionGetPlanIdRetType) { setCatalogProductPricingOptionGetPlanIdAttributeType(&o.PlanId, v) } // GetPriceType returns the PriceType field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetPriceType() (res CatalogProductPricingOptionGetPriceTypeRetType) { res, _ = o.GetPriceTypeOk() return @@ -445,22 +531,26 @@ func (o *CatalogProductPricingOption) GetPriceType() (res CatalogProductPricingO // GetPriceTypeOk returns a tuple with the PriceType field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetPriceTypeOk() (ret CatalogProductPricingOptionGetPriceTypeRetType, ok bool) { return getCatalogProductPricingOptionGetPriceTypeAttributeTypeOk(o.PriceType) } // HasPriceType returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) HasPriceType() bool { _, ok := o.GetPriceTypeOk() return ok } // SetPriceType gets a reference to the given PriceType and assigns it to the PriceType field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetPriceType(v CatalogProductPricingOptionGetPriceTypeRetType) { setCatalogProductPricingOptionGetPriceTypeAttributeType(&o.PriceType, v) } // GetPricingPlan returns the PricingPlan field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetPricingPlan() (res CatalogProductPricingOptionGetPricingPlanRetType) { res, _ = o.GetPricingPlanOk() return @@ -468,22 +558,26 @@ func (o *CatalogProductPricingOption) GetPricingPlan() (res CatalogProductPricin // GetPricingPlanOk returns a tuple with the PricingPlan field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetPricingPlanOk() (ret CatalogProductPricingOptionGetPricingPlanRetType, ok bool) { return getCatalogProductPricingOptionGetPricingPlanAttributeTypeOk(o.PricingPlan) } // HasPricingPlan returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) HasPricingPlan() bool { _, ok := o.GetPricingPlanOk() return ok } // SetPricingPlan gets a reference to the given string and assigns it to the PricingPlan field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetPricingPlan(v CatalogProductPricingOptionGetPricingPlanRetType) { setCatalogProductPricingOptionGetPricingPlanAttributeType(&o.PricingPlan, v) } // GetRate returns the Rate field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetRate() (res CatalogProductPricingOptionGetRateRetType) { res, _ = o.GetRateOk() return @@ -491,22 +585,26 @@ func (o *CatalogProductPricingOption) GetRate() (res CatalogProductPricingOption // GetRateOk returns a tuple with the Rate field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetRateOk() (ret CatalogProductPricingOptionGetRateRetType, ok bool) { return getCatalogProductPricingOptionGetRateAttributeTypeOk(o.Rate) } // HasRate returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) HasRate() bool { _, ok := o.GetRateOk() return ok } // SetRate gets a reference to the given string and assigns it to the Rate field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetRate(v CatalogProductPricingOptionGetRateRetType) { setCatalogProductPricingOptionGetRateAttributeType(&o.Rate, v) } // GetScope returns the Scope field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetScope() (ret CatalogProductPricingOptionGetScopeRetType) { ret, _ = o.GetScopeOk() return ret @@ -514,16 +612,19 @@ func (o *CatalogProductPricingOption) GetScope() (ret CatalogProductPricingOptio // GetScopeOk returns a tuple with the Scope field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetScopeOk() (ret CatalogProductPricingOptionGetScopeRetType, ok bool) { return getCatalogProductPricingOptionGetScopeAttributeTypeOk(o.Scope) } // SetScope sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetScope(v CatalogProductPricingOptionGetScopeRetType) { setCatalogProductPricingOptionGetScopeAttributeType(&o.Scope, v) } // GetSku returns the Sku field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetSku() (ret CatalogProductPricingOptionGetSkuRetType) { ret, _ = o.GetSkuOk() return ret @@ -531,16 +632,19 @@ func (o *CatalogProductPricingOption) GetSku() (ret CatalogProductPricingOptionG // GetSkuOk returns a tuple with the Sku field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetSkuOk() (ret CatalogProductPricingOptionGetSkuRetType, ok bool) { return getCatalogProductPricingOptionGetSkuAttributeTypeOk(o.Sku) } // SetSku sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetSku(v CatalogProductPricingOptionGetSkuRetType) { setCatalogProductPricingOptionGetSkuAttributeType(&o.Sku, v) } // GetSkuInfo returns the SkuInfo field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetSkuInfo() (ret CatalogProductPricingOptionGetSkuInfoRetType) { ret, _ = o.GetSkuInfoOk() return ret @@ -548,16 +652,19 @@ func (o *CatalogProductPricingOption) GetSkuInfo() (ret CatalogProductPricingOpt // GetSkuInfoOk returns a tuple with the SkuInfo field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetSkuInfoOk() (ret CatalogProductPricingOptionGetSkuInfoRetType, ok bool) { return getCatalogProductPricingOptionGetSkuInfoAttributeTypeOk(o.SkuInfo) } // SetSkuInfo sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetSkuInfo(v CatalogProductPricingOptionGetSkuInfoRetType) { setCatalogProductPricingOptionGetSkuInfoAttributeType(&o.SkuInfo, v) } // GetSkuInfoDetails returns the SkuInfoDetails field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetSkuInfoDetails() (ret CatalogProductPricingOptionGetSkuInfoDetailsRetType) { ret, _ = o.GetSkuInfoDetailsOk() return ret @@ -565,16 +672,19 @@ func (o *CatalogProductPricingOption) GetSkuInfoDetails() (ret CatalogProductPri // GetSkuInfoDetailsOk returns a tuple with the SkuInfoDetails field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetSkuInfoDetailsOk() (ret CatalogProductPricingOptionGetSkuInfoDetailsRetType, ok bool) { return getCatalogProductPricingOptionGetSkuInfoDetailsAttributeTypeOk(o.SkuInfoDetails) } // SetSkuInfoDetails sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetSkuInfoDetails(v CatalogProductPricingOptionGetSkuInfoDetailsRetType) { setCatalogProductPricingOptionGetSkuInfoDetailsAttributeType(&o.SkuInfoDetails, v) } // GetUnit returns the Unit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetUnit() (res CatalogProductPricingOptionGetUnitRetType) { res, _ = o.GetUnitOk() return @@ -582,21 +692,25 @@ func (o *CatalogProductPricingOption) GetUnit() (res CatalogProductPricingOption // GetUnitOk returns a tuple with the Unit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) GetUnitOk() (ret CatalogProductPricingOptionGetUnitRetType, ok bool) { return getCatalogProductPricingOptionGetUnitAttributeTypeOk(o.Unit) } // HasUnit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) HasUnit() bool { _, ok := o.GetUnitOk() return ok } // SetUnit gets a reference to the given PricingOptionUnit and assigns it to the Unit field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductPricingOption) SetUnit(v CatalogProductPricingOptionGetUnitRetType) { setCatalogProductPricingOptionGetUnitAttributeType(&o.Unit, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductPricingOption) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductPricingOptionGetDescriptionAttributeTypeOk(o.Description); ok { @@ -641,37 +755,45 @@ func (o CatalogProductPricingOption) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductPricingOption struct { value *CatalogProductPricingOption isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductPricingOption) Get() *CatalogProductPricingOption { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductPricingOption) Set(val *CatalogProductPricingOption) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductPricingOption) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductPricingOption) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductPricingOption(val *CatalogProductPricingOption) *NullableCatalogProductPricingOption { return &NullableCatalogProductPricingOption{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductPricingOption) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductPricingOption) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_support_resource.go b/services/stackitmarketplace/model_catalog_product_support_resource.go index f966bf4d34..11f9cb107f 100644 --- a/services/stackitmarketplace/model_catalog_product_support_resource.go +++ b/services/stackitmarketplace/model_catalog_product_support_resource.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogProductSupportResource{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResourceGetSupportLinkAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductSupportResourceGetSupportLinkAttributeTypeOk(arg CatalogProductSupportResourceGetSupportLinkAttributeType) (ret CatalogProductSupportResourceGetSupportLinkRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getCatalogProductSupportResourceGetSupportLinkAttributeTypeOk(arg CatalogPr return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductSupportResourceGetSupportLinkAttributeType(arg *CatalogProductSupportResourceGetSupportLinkAttributeType, val CatalogProductSupportResourceGetSupportLinkRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResourceGetSupportLinkArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResourceGetSupportLinkRetType = string /* @@ -43,8 +48,10 @@ type CatalogProductSupportResourceGetSupportLinkRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResourceGetSupportLinkTitleAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductSupportResourceGetSupportLinkTitleAttributeTypeOk(arg CatalogProductSupportResourceGetSupportLinkTitleAttributeType) (ret CatalogProductSupportResourceGetSupportLinkTitleRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +59,18 @@ func getCatalogProductSupportResourceGetSupportLinkTitleAttributeTypeOk(arg Cata return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductSupportResourceGetSupportLinkTitleAttributeType(arg *CatalogProductSupportResourceGetSupportLinkTitleAttributeType, val CatalogProductSupportResourceGetSupportLinkTitleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResourceGetSupportLinkTitleArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResourceGetSupportLinkTitleRetType = string // CatalogProductSupportResource struct for CatalogProductSupportResource +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductSupportResource struct { // Uniform Resource Locator. SupportLink CatalogProductSupportResourceGetSupportLinkAttributeType `json:"supportLink,omitempty"` @@ -71,6 +82,7 @@ type CatalogProductSupportResource struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductSupportResource() *CatalogProductSupportResource { this := CatalogProductSupportResource{} return &this @@ -79,12 +91,14 @@ func NewCatalogProductSupportResource() *CatalogProductSupportResource { // NewCatalogProductSupportResourceWithDefaults instantiates a new CatalogProductSupportResource object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductSupportResourceWithDefaults() *CatalogProductSupportResource { this := CatalogProductSupportResource{} return &this } // GetSupportLink returns the SupportLink field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) GetSupportLink() (res CatalogProductSupportResourceGetSupportLinkRetType) { res, _ = o.GetSupportLinkOk() return @@ -92,22 +106,26 @@ func (o *CatalogProductSupportResource) GetSupportLink() (res CatalogProductSupp // GetSupportLinkOk returns a tuple with the SupportLink field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) GetSupportLinkOk() (ret CatalogProductSupportResourceGetSupportLinkRetType, ok bool) { return getCatalogProductSupportResourceGetSupportLinkAttributeTypeOk(o.SupportLink) } // HasSupportLink returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) HasSupportLink() bool { _, ok := o.GetSupportLinkOk() return ok } // SetSupportLink gets a reference to the given string and assigns it to the SupportLink field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) SetSupportLink(v CatalogProductSupportResourceGetSupportLinkRetType) { setCatalogProductSupportResourceGetSupportLinkAttributeType(&o.SupportLink, v) } // GetSupportLinkTitle returns the SupportLinkTitle field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) GetSupportLinkTitle() (res CatalogProductSupportResourceGetSupportLinkTitleRetType) { res, _ = o.GetSupportLinkTitleOk() return @@ -115,21 +133,25 @@ func (o *CatalogProductSupportResource) GetSupportLinkTitle() (res CatalogProduc // GetSupportLinkTitleOk returns a tuple with the SupportLinkTitle field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) GetSupportLinkTitleOk() (ret CatalogProductSupportResourceGetSupportLinkTitleRetType, ok bool) { return getCatalogProductSupportResourceGetSupportLinkTitleAttributeTypeOk(o.SupportLinkTitle) } // HasSupportLinkTitle returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) HasSupportLinkTitle() bool { _, ok := o.GetSupportLinkTitleOk() return ok } // SetSupportLinkTitle gets a reference to the given string and assigns it to the SupportLinkTitle field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductSupportResource) SetSupportLinkTitle(v CatalogProductSupportResourceGetSupportLinkTitleRetType) { setCatalogProductSupportResourceGetSupportLinkTitleAttributeType(&o.SupportLinkTitle, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductSupportResource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductSupportResourceGetSupportLinkAttributeTypeOk(o.SupportLink); ok { @@ -141,37 +163,45 @@ func (o CatalogProductSupportResource) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductSupportResource struct { value *CatalogProductSupportResource isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductSupportResource) Get() *CatalogProductSupportResource { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductSupportResource) Set(val *CatalogProductSupportResource) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductSupportResource) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductSupportResource) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductSupportResource(val *CatalogProductSupportResource) *NullableCatalogProductSupportResource { return &NullableCatalogProductSupportResource{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductSupportResource) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductSupportResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_catalog_product_vendor_terms.go b/services/stackitmarketplace/model_catalog_product_vendor_terms.go index 71e18880f1..2f5a95a6fc 100644 --- a/services/stackitmarketplace/model_catalog_product_vendor_terms.go +++ b/services/stackitmarketplace/model_catalog_product_vendor_terms.go @@ -22,8 +22,10 @@ var _ MappedNullable = &CatalogProductVendorTerms{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductVendorTermsGetDescriptionAttributeTypeOk(arg CatalogProductVendorTermsGetDescriptionAttributeType) (ret CatalogProductVendorTermsGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getCatalogProductVendorTermsGetDescriptionAttributeTypeOk(arg CatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductVendorTermsGetDescriptionAttributeType(arg *CatalogProductVendorTermsGetDescriptionAttributeType, val CatalogProductVendorTermsGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetDescriptionArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetDescriptionRetType = string /* @@ -43,8 +48,10 @@ type CatalogProductVendorTermsGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetTitleAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductVendorTermsGetTitleAttributeTypeOk(arg CatalogProductVendorTermsGetTitleAttributeType) (ret CatalogProductVendorTermsGetTitleRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getCatalogProductVendorTermsGetTitleAttributeTypeOk(arg CatalogProductVendo return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductVendorTermsGetTitleAttributeType(arg *CatalogProductVendorTermsGetTitleAttributeType, val CatalogProductVendorTermsGetTitleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetTitleArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetTitleRetType = string /* @@ -64,8 +74,10 @@ type CatalogProductVendorTermsGetTitleRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getCatalogProductVendorTermsGetUrlAttributeTypeOk(arg CatalogProductVendorTermsGetUrlAttributeType) (ret CatalogProductVendorTermsGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +85,18 @@ func getCatalogProductVendorTermsGetUrlAttributeTypeOk(arg CatalogProductVendorT return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setCatalogProductVendorTermsGetUrlAttributeType(arg *CatalogProductVendorTermsGetUrlAttributeType, val CatalogProductVendorTermsGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTermsGetUrlRetType = string // CatalogProductVendorTerms struct for CatalogProductVendorTerms +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type CatalogProductVendorTerms struct { // The terms of service description. // REQUIRED @@ -93,12 +109,14 @@ type CatalogProductVendorTerms struct { Url CatalogProductVendorTermsGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _CatalogProductVendorTerms CatalogProductVendorTerms // NewCatalogProductVendorTerms instantiates a new CatalogProductVendorTerms object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductVendorTerms(description CatalogProductVendorTermsGetDescriptionArgType, title CatalogProductVendorTermsGetTitleArgType, url CatalogProductVendorTermsGetUrlArgType) *CatalogProductVendorTerms { this := CatalogProductVendorTerms{} setCatalogProductVendorTermsGetDescriptionAttributeType(&this.Description, description) @@ -110,12 +128,14 @@ func NewCatalogProductVendorTerms(description CatalogProductVendorTermsGetDescri // NewCatalogProductVendorTermsWithDefaults instantiates a new CatalogProductVendorTerms object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewCatalogProductVendorTermsWithDefaults() *CatalogProductVendorTerms { this := CatalogProductVendorTerms{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) GetDescription() (ret CatalogProductVendorTermsGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -123,16 +143,19 @@ func (o *CatalogProductVendorTerms) GetDescription() (ret CatalogProductVendorTe // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) GetDescriptionOk() (ret CatalogProductVendorTermsGetDescriptionRetType, ok bool) { return getCatalogProductVendorTermsGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) SetDescription(v CatalogProductVendorTermsGetDescriptionRetType) { setCatalogProductVendorTermsGetDescriptionAttributeType(&o.Description, v) } // GetTitle returns the Title field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) GetTitle() (ret CatalogProductVendorTermsGetTitleRetType) { ret, _ = o.GetTitleOk() return ret @@ -140,16 +163,19 @@ func (o *CatalogProductVendorTerms) GetTitle() (ret CatalogProductVendorTermsGet // GetTitleOk returns a tuple with the Title field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) GetTitleOk() (ret CatalogProductVendorTermsGetTitleRetType, ok bool) { return getCatalogProductVendorTermsGetTitleAttributeTypeOk(o.Title) } // SetTitle sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) SetTitle(v CatalogProductVendorTermsGetTitleRetType) { setCatalogProductVendorTermsGetTitleAttributeType(&o.Title, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) GetUrl() (ret CatalogProductVendorTermsGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -157,15 +183,18 @@ func (o *CatalogProductVendorTerms) GetUrl() (ret CatalogProductVendorTermsGetUr // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) GetUrlOk() (ret CatalogProductVendorTermsGetUrlRetType, ok bool) { return getCatalogProductVendorTermsGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *CatalogProductVendorTerms) SetUrl(v CatalogProductVendorTermsGetUrlRetType) { setCatalogProductVendorTermsGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o CatalogProductVendorTerms) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCatalogProductVendorTermsGetDescriptionAttributeTypeOk(o.Description); ok { @@ -180,37 +209,45 @@ func (o CatalogProductVendorTerms) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableCatalogProductVendorTerms struct { value *CatalogProductVendorTerms isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductVendorTerms) Get() *CatalogProductVendorTerms { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductVendorTerms) Set(val *CatalogProductVendorTerms) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductVendorTerms) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductVendorTerms) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableCatalogProductVendorTerms(val *CatalogProductVendorTerms) *NullableCatalogProductVendorTerms { return &NullableCatalogProductVendorTerms{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableCatalogProductVendorTerms) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableCatalogProductVendorTerms) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_contact_sales.go b/services/stackitmarketplace/model_contact_sales.go index c3babbd652..07b40b9a6a 100644 --- a/services/stackitmarketplace/model_contact_sales.go +++ b/services/stackitmarketplace/model_contact_sales.go @@ -22,10 +22,14 @@ var _ MappedNullable = &ContactSales{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSalesGetContactSalesAttributeType = *InquiryContactSales +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSalesGetContactSalesArgType = InquiryContactSales +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSalesGetContactSalesRetType = InquiryContactSales +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getContactSalesGetContactSalesAttributeTypeOk(arg ContactSalesGetContactSalesAttributeType) (ret ContactSalesGetContactSalesRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getContactSalesGetContactSalesAttributeTypeOk(arg ContactSalesGetContactSal return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setContactSalesGetContactSalesAttributeType(arg *ContactSalesGetContactSalesAttributeType, val ContactSalesGetContactSalesRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setContactSalesGetContactSalesAttributeType(arg *ContactSalesGetContactSale */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSalesGetTypeAttributeType = *InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSalesGetTypeArgType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSalesGetTypeRetType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getContactSalesGetTypeAttributeTypeOk(arg ContactSalesGetTypeAttributeType) (ret ContactSalesGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +62,13 @@ func getContactSalesGetTypeAttributeTypeOk(arg ContactSalesGetTypeAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setContactSalesGetTypeAttributeType(arg *ContactSalesGetTypeAttributeType, val ContactSalesGetTypeRetType) { *arg = &val } // ContactSales Contact sales. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ContactSales struct { // REQUIRED ContactSales ContactSalesGetContactSalesAttributeType `json:"contactSales" required:"true"` @@ -65,12 +76,14 @@ type ContactSales struct { Type ContactSalesGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _ContactSales ContactSales // NewContactSales instantiates a new ContactSales object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewContactSales(contactSales ContactSalesGetContactSalesArgType, types ContactSalesGetTypeArgType) *ContactSales { this := ContactSales{} setContactSalesGetContactSalesAttributeType(&this.ContactSales, contactSales) @@ -81,12 +94,14 @@ func NewContactSales(contactSales ContactSalesGetContactSalesArgType, types Cont // NewContactSalesWithDefaults instantiates a new ContactSales object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewContactSalesWithDefaults() *ContactSales { this := ContactSales{} return &this } // GetContactSales returns the ContactSales field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ContactSales) GetContactSales() (ret ContactSalesGetContactSalesRetType) { ret, _ = o.GetContactSalesOk() return ret @@ -94,16 +109,19 @@ func (o *ContactSales) GetContactSales() (ret ContactSalesGetContactSalesRetType // GetContactSalesOk returns a tuple with the ContactSales field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ContactSales) GetContactSalesOk() (ret ContactSalesGetContactSalesRetType, ok bool) { return getContactSalesGetContactSalesAttributeTypeOk(o.ContactSales) } // SetContactSales sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ContactSales) SetContactSales(v ContactSalesGetContactSalesRetType) { setContactSalesGetContactSalesAttributeType(&o.ContactSales, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ContactSales) GetType() (ret ContactSalesGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -111,15 +129,18 @@ func (o *ContactSales) GetType() (ret ContactSalesGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ContactSales) GetTypeOk() (ret ContactSalesGetTypeRetType, ok bool) { return getContactSalesGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ContactSales) SetType(v ContactSalesGetTypeRetType) { setContactSalesGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ContactSales) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getContactSalesGetContactSalesAttributeTypeOk(o.ContactSales); ok { @@ -131,37 +152,45 @@ func (o ContactSales) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableContactSales struct { value *ContactSales isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableContactSales) Get() *ContactSales { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableContactSales) Set(val *ContactSales) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableContactSales) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableContactSales) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableContactSales(val *ContactSales) *NullableContactSales { return &NullableContactSales{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableContactSales) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableContactSales) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_delivery_method.go b/services/stackitmarketplace/model_delivery_method.go index ee72f2bd2e..6212d75441 100644 --- a/services/stackitmarketplace/model_delivery_method.go +++ b/services/stackitmarketplace/model_delivery_method.go @@ -16,17 +16,23 @@ import ( ) // DeliveryMethod The product delivery method/type. For reference: SAAS - Software as a Service, SAI - STACKIT Application Image +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type DeliveryMethod string // List of deliveryMethod const ( - DELIVERYMETHOD_SAAS DeliveryMethod = "SAAS" - DELIVERYMETHOD_KUBERNETES DeliveryMethod = "KUBERNETES" - DELIVERYMETHOD_SAI DeliveryMethod = "SAI" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + DELIVERYMETHOD_SAAS DeliveryMethod = "SAAS" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + DELIVERYMETHOD_KUBERNETES DeliveryMethod = "KUBERNETES" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + DELIVERYMETHOD_SAI DeliveryMethod = "SAI" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead DELIVERYMETHOD_PROFESSIONAL_SERVICE DeliveryMethod = "PROFESSIONAL_SERVICE" ) // All allowed values of DeliveryMethod enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedDeliveryMethodEnumValues = []DeliveryMethod{ "SAAS", "KUBERNETES", @@ -34,6 +40,7 @@ var AllowedDeliveryMethodEnumValues = []DeliveryMethod{ "PROFESSIONAL_SERVICE", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *DeliveryMethod) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -58,6 +65,7 @@ func (v *DeliveryMethod) UnmarshalJSON(src []byte) error { // NewDeliveryMethodFromValue returns a pointer to a valid DeliveryMethod // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewDeliveryMethodFromValue(v string) (*DeliveryMethod, error) { ev := DeliveryMethod(v) if ev.IsValid() { @@ -68,6 +76,7 @@ func NewDeliveryMethodFromValue(v string) (*DeliveryMethod, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v DeliveryMethod) IsValid() bool { for _, existing := range AllowedDeliveryMethodEnumValues { if existing == v { @@ -78,41 +87,50 @@ func (v DeliveryMethod) IsValid() bool { } // Ptr returns reference to deliveryMethod value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v DeliveryMethod) Ptr() *DeliveryMethod { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableDeliveryMethod struct { value *DeliveryMethod isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableDeliveryMethod) Get() *DeliveryMethod { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableDeliveryMethod) Set(val *DeliveryMethod) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableDeliveryMethod) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableDeliveryMethod) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableDeliveryMethod(val *DeliveryMethod) *NullableDeliveryMethod { return &NullableDeliveryMethod{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableDeliveryMethod) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableDeliveryMethod) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_error_response.go b/services/stackitmarketplace/model_error_response.go index d508b56b61..54654beb32 100644 --- a/services/stackitmarketplace/model_error_response.go +++ b/services/stackitmarketplace/model_error_response.go @@ -23,8 +23,10 @@ var _ MappedNullable = &ErrorResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetErrorAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getErrorResponseGetErrorAttributeTypeOk(arg ErrorResponseGetErrorAttributeType) (ret ErrorResponseGetErrorRetType, ok bool) { if arg == nil { return ret, false @@ -32,11 +34,14 @@ func getErrorResponseGetErrorAttributeTypeOk(arg ErrorResponseGetErrorAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setErrorResponseGetErrorAttributeType(arg *ErrorResponseGetErrorAttributeType, val ErrorResponseGetErrorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetErrorArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetErrorRetType = string /* @@ -44,8 +49,10 @@ type ErrorResponseGetErrorRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getErrorResponseGetMessageAttributeTypeOk(arg ErrorResponseGetMessageAttributeType) (ret ErrorResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +60,14 @@ func getErrorResponseGetMessageAttributeTypeOk(arg ErrorResponseGetMessageAttrib return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setErrorResponseGetMessageAttributeType(arg *ErrorResponseGetMessageAttributeType, val ErrorResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetMessageArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetMessageRetType = string /* @@ -65,8 +75,10 @@ type ErrorResponseGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetPathAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getErrorResponseGetPathAttributeTypeOk(arg ErrorResponseGetPathAttributeType) (ret ErrorResponseGetPathRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +86,14 @@ func getErrorResponseGetPathAttributeTypeOk(arg ErrorResponseGetPathAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setErrorResponseGetPathAttributeType(arg *ErrorResponseGetPathAttributeType, val ErrorResponseGetPathRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetPathArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetPathRetType = string /* @@ -86,10 +101,14 @@ type ErrorResponseGetPathRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetStatusAttributeType = *int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetStatusArgType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetStatusRetType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getErrorResponseGetStatusAttributeTypeOk(arg ErrorResponseGetStatusAttributeType) (ret ErrorResponseGetStatusRetType, ok bool) { if arg == nil { return ret, false @@ -97,6 +116,7 @@ func getErrorResponseGetStatusAttributeTypeOk(arg ErrorResponseGetStatusAttribut return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setErrorResponseGetStatusAttributeType(arg *ErrorResponseGetStatusAttributeType, val ErrorResponseGetStatusRetType) { *arg = &val } @@ -106,10 +126,14 @@ func setErrorResponseGetStatusAttributeType(arg *ErrorResponseGetStatusAttribute */ // isDateTime +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetTimeStampAttributeType = *time.Time +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetTimeStampArgType = time.Time +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponseGetTimeStampRetType = time.Time +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getErrorResponseGetTimeStampAttributeTypeOk(arg ErrorResponseGetTimeStampAttributeType) (ret ErrorResponseGetTimeStampRetType, ok bool) { if arg == nil { return ret, false @@ -117,11 +141,13 @@ func getErrorResponseGetTimeStampAttributeTypeOk(arg ErrorResponseGetTimeStampAt return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setErrorResponseGetTimeStampAttributeType(arg *ErrorResponseGetTimeStampAttributeType, val ErrorResponseGetTimeStampRetType) { *arg = &val } // ErrorResponse struct for ErrorResponse +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ErrorResponse struct { // Reason phrase of the status code. // REQUIRED @@ -141,12 +167,14 @@ type ErrorResponse struct { TimeStamp ErrorResponseGetTimeStampAttributeType `json:"timeStamp" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _ErrorResponse ErrorResponse // NewErrorResponse instantiates a new ErrorResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewErrorResponse(error_ ErrorResponseGetErrorArgType, message ErrorResponseGetMessageArgType, path ErrorResponseGetPathArgType, status ErrorResponseGetStatusArgType, timeStamp ErrorResponseGetTimeStampArgType) *ErrorResponse { this := ErrorResponse{} setErrorResponseGetErrorAttributeType(&this.Error, error_) @@ -160,12 +188,14 @@ func NewErrorResponse(error_ ErrorResponseGetErrorArgType, message ErrorResponse // NewErrorResponseWithDefaults instantiates a new ErrorResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewErrorResponseWithDefaults() *ErrorResponse { this := ErrorResponse{} return &this } // GetError returns the Error field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetError() (ret ErrorResponseGetErrorRetType) { ret, _ = o.GetErrorOk() return ret @@ -173,16 +203,19 @@ func (o *ErrorResponse) GetError() (ret ErrorResponseGetErrorRetType) { // GetErrorOk returns a tuple with the Error field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetErrorOk() (ret ErrorResponseGetErrorRetType, ok bool) { return getErrorResponseGetErrorAttributeTypeOk(o.Error) } // SetError sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) SetError(v ErrorResponseGetErrorRetType) { setErrorResponseGetErrorAttributeType(&o.Error, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetMessage() (ret ErrorResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -190,16 +223,19 @@ func (o *ErrorResponse) GetMessage() (ret ErrorResponseGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetMessageOk() (ret ErrorResponseGetMessageRetType, ok bool) { return getErrorResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) SetMessage(v ErrorResponseGetMessageRetType) { setErrorResponseGetMessageAttributeType(&o.Message, v) } // GetPath returns the Path field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetPath() (ret ErrorResponseGetPathRetType) { ret, _ = o.GetPathOk() return ret @@ -207,16 +243,19 @@ func (o *ErrorResponse) GetPath() (ret ErrorResponseGetPathRetType) { // GetPathOk returns a tuple with the Path field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetPathOk() (ret ErrorResponseGetPathRetType, ok bool) { return getErrorResponseGetPathAttributeTypeOk(o.Path) } // SetPath sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) SetPath(v ErrorResponseGetPathRetType) { setErrorResponseGetPathAttributeType(&o.Path, v) } // GetStatus returns the Status field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetStatus() (ret ErrorResponseGetStatusRetType) { ret, _ = o.GetStatusOk() return ret @@ -224,16 +263,19 @@ func (o *ErrorResponse) GetStatus() (ret ErrorResponseGetStatusRetType) { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetStatusOk() (ret ErrorResponseGetStatusRetType, ok bool) { return getErrorResponseGetStatusAttributeTypeOk(o.Status) } // SetStatus sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) SetStatus(v ErrorResponseGetStatusRetType) { setErrorResponseGetStatusAttributeType(&o.Status, v) } // GetTimeStamp returns the TimeStamp field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetTimeStamp() (ret ErrorResponseGetTimeStampRetType) { ret, _ = o.GetTimeStampOk() return ret @@ -241,15 +283,18 @@ func (o *ErrorResponse) GetTimeStamp() (ret ErrorResponseGetTimeStampRetType) { // GetTimeStampOk returns a tuple with the TimeStamp field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) GetTimeStampOk() (ret ErrorResponseGetTimeStampRetType, ok bool) { return getErrorResponseGetTimeStampAttributeTypeOk(o.TimeStamp) } // SetTimeStamp sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ErrorResponse) SetTimeStamp(v ErrorResponseGetTimeStampRetType) { setErrorResponseGetTimeStampAttributeType(&o.TimeStamp, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ErrorResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getErrorResponseGetErrorAttributeTypeOk(o.Error); ok { @@ -270,37 +315,45 @@ func (o ErrorResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableErrorResponse struct { value *ErrorResponse isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableErrorResponse) Get() *ErrorResponse { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableErrorResponse) Set(val *ErrorResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableErrorResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableErrorResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse { return &NullableErrorResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableErrorResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_free_trial.go b/services/stackitmarketplace/model_free_trial.go index cd269368be..1887e2638c 100644 --- a/services/stackitmarketplace/model_free_trial.go +++ b/services/stackitmarketplace/model_free_trial.go @@ -22,10 +22,14 @@ var _ MappedNullable = &FreeTrial{} */ // isInteger +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type FreeTrialGetValueAttributeType = *int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type FreeTrialGetValueArgType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type FreeTrialGetValueRetType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getFreeTrialGetValueAttributeTypeOk(arg FreeTrialGetValueAttributeType) (ret FreeTrialGetValueRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +37,13 @@ func getFreeTrialGetValueAttributeTypeOk(arg FreeTrialGetValueAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setFreeTrialGetValueAttributeType(arg *FreeTrialGetValueAttributeType, val FreeTrialGetValueRetType) { *arg = &val } // FreeTrial The amount of days of free trial highlighted in the product card. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type FreeTrial struct { Value FreeTrialGetValueAttributeType `json:"value,omitempty"` } @@ -46,6 +52,7 @@ type FreeTrial struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewFreeTrial() *FreeTrial { this := FreeTrial{} return &this @@ -54,12 +61,14 @@ func NewFreeTrial() *FreeTrial { // NewFreeTrialWithDefaults instantiates a new FreeTrial object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewFreeTrialWithDefaults() *FreeTrial { this := FreeTrial{} return &this } // GetValue returns the Value field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *FreeTrial) GetValue() (res FreeTrialGetValueRetType) { res, _ = o.GetValueOk() return @@ -67,21 +76,25 @@ func (o *FreeTrial) GetValue() (res FreeTrialGetValueRetType) { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *FreeTrial) GetValueOk() (ret FreeTrialGetValueRetType, ok bool) { return getFreeTrialGetValueAttributeTypeOk(o.Value) } // HasValue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *FreeTrial) HasValue() bool { _, ok := o.GetValueOk() return ok } // SetValue gets a reference to the given int64 and assigns it to the Value field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *FreeTrial) SetValue(v FreeTrialGetValueRetType) { setFreeTrialGetValueAttributeType(&o.Value, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o FreeTrial) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getFreeTrialGetValueAttributeTypeOk(o.Value); ok { @@ -90,37 +103,45 @@ func (o FreeTrial) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableFreeTrial struct { value *FreeTrial isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFreeTrial) Get() *FreeTrial { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFreeTrial) Set(val *FreeTrial) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFreeTrial) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFreeTrial) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableFreeTrial(val *FreeTrial) *NullableFreeTrial { return &NullableFreeTrial{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFreeTrial) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFreeTrial) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go b/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go index 6fb462cb27..f07e11b391 100644 --- a/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go +++ b/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go @@ -16,6 +16,7 @@ import ( ) // InquiriesCreateInquiryPayload - struct for InquiriesCreateInquiryPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiriesCreateInquiryPayload struct { BecomeVendor *BecomeVendor ContactSales *ContactSales @@ -25,6 +26,7 @@ type InquiriesCreateInquiryPayload struct { } // BecomeVendorAsInquiriesCreateInquiryPayload is a convenience function that returns BecomeVendor wrapped in InquiriesCreateInquiryPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func BecomeVendorAsInquiriesCreateInquiryPayload(v *BecomeVendor) InquiriesCreateInquiryPayload { return InquiriesCreateInquiryPayload{ BecomeVendor: v, @@ -32,6 +34,7 @@ func BecomeVendorAsInquiriesCreateInquiryPayload(v *BecomeVendor) InquiriesCreat } // ContactSalesAsInquiriesCreateInquiryPayload is a convenience function that returns ContactSales wrapped in InquiriesCreateInquiryPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func ContactSalesAsInquiriesCreateInquiryPayload(v *ContactSales) InquiriesCreateInquiryPayload { return InquiriesCreateInquiryPayload{ ContactSales: v, @@ -39,6 +42,7 @@ func ContactSalesAsInquiriesCreateInquiryPayload(v *ContactSales) InquiriesCreat } // RegisterTestingAsInquiriesCreateInquiryPayload is a convenience function that returns RegisterTesting wrapped in InquiriesCreateInquiryPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func RegisterTestingAsInquiriesCreateInquiryPayload(v *RegisterTesting) InquiriesCreateInquiryPayload { return InquiriesCreateInquiryPayload{ RegisterTesting: v, @@ -46,6 +50,7 @@ func RegisterTestingAsInquiriesCreateInquiryPayload(v *RegisterTesting) Inquirie } // RequestPrivatePlanAsInquiriesCreateInquiryPayload is a convenience function that returns RequestPrivatePlan wrapped in InquiriesCreateInquiryPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func RequestPrivatePlanAsInquiriesCreateInquiryPayload(v *RequestPrivatePlan) InquiriesCreateInquiryPayload { return InquiriesCreateInquiryPayload{ RequestPrivatePlan: v, @@ -53,6 +58,7 @@ func RequestPrivatePlanAsInquiriesCreateInquiryPayload(v *RequestPrivatePlan) In } // SuggestProductAsInquiriesCreateInquiryPayload is a convenience function that returns SuggestProduct wrapped in InquiriesCreateInquiryPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func SuggestProductAsInquiriesCreateInquiryPayload(v *SuggestProduct) InquiriesCreateInquiryPayload { return InquiriesCreateInquiryPayload{ SuggestProduct: v, @@ -60,6 +66,7 @@ func SuggestProductAsInquiriesCreateInquiryPayload(v *SuggestProduct) InquiriesC } // Unmarshal JSON data into one of the pointers in the struct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (dst *InquiriesCreateInquiryPayload) UnmarshalJSON(data []byte) error { var err error match := 0 @@ -138,6 +145,7 @@ func (dst *InquiriesCreateInquiryPayload) UnmarshalJSON(data []byte) error { } // Marshal data from the first non-nil pointers in the struct to JSON +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (src InquiriesCreateInquiryPayload) MarshalJSON() ([]byte, error) { if src.BecomeVendor != nil { return json.Marshal(&src.BecomeVendor) @@ -163,6 +171,7 @@ func (src InquiriesCreateInquiryPayload) MarshalJSON() ([]byte, error) { } // Get the actual instance +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (obj *InquiriesCreateInquiryPayload) GetActualInstance() interface{} { if obj == nil { return nil @@ -191,37 +200,45 @@ func (obj *InquiriesCreateInquiryPayload) GetActualInstance() interface{} { return nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquiriesCreateInquiryPayload struct { value *InquiriesCreateInquiryPayload isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiriesCreateInquiryPayload) Get() *InquiriesCreateInquiryPayload { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiriesCreateInquiryPayload) Set(val *InquiriesCreateInquiryPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiriesCreateInquiryPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiriesCreateInquiryPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquiriesCreateInquiryPayload(val *InquiriesCreateInquiryPayload) *NullableInquiriesCreateInquiryPayload { return &NullableInquiriesCreateInquiryPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiriesCreateInquiryPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiriesCreateInquiryPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiry_become_vendor.go b/services/stackitmarketplace/model_inquiry_become_vendor.go index 0852cbdf38..0a71fd2ea2 100644 --- a/services/stackitmarketplace/model_inquiry_become_vendor.go +++ b/services/stackitmarketplace/model_inquiry_become_vendor.go @@ -22,8 +22,10 @@ var _ MappedNullable = &InquiryBecomeVendor{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendorGetContactEmailAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryBecomeVendorGetContactEmailAttributeTypeOk(arg InquiryBecomeVendorGetContactEmailAttributeType) (ret InquiryBecomeVendorGetContactEmailRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getInquiryBecomeVendorGetContactEmailAttributeTypeOk(arg InquiryBecomeVendo return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryBecomeVendorGetContactEmailAttributeType(arg *InquiryBecomeVendorGetContactEmailAttributeType, val InquiryBecomeVendorGetContactEmailRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendorGetContactEmailArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendorGetContactEmailRetType = string /* @@ -43,8 +48,10 @@ type InquiryBecomeVendorGetContactEmailRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendorGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryBecomeVendorGetMessageAttributeTypeOk(arg InquiryBecomeVendorGetMessageAttributeType) (ret InquiryBecomeVendorGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +59,18 @@ func getInquiryBecomeVendorGetMessageAttributeTypeOk(arg InquiryBecomeVendorGetM return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryBecomeVendorGetMessageAttributeType(arg *InquiryBecomeVendorGetMessageAttributeType, val InquiryBecomeVendorGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendorGetMessageArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendorGetMessageRetType = string // InquiryBecomeVendor Become a vendor. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryBecomeVendor struct { // A e-mail address. // REQUIRED @@ -69,12 +80,14 @@ type InquiryBecomeVendor struct { Message InquiryBecomeVendorGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _InquiryBecomeVendor InquiryBecomeVendor // NewInquiryBecomeVendor instantiates a new InquiryBecomeVendor object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryBecomeVendor(contactEmail InquiryBecomeVendorGetContactEmailArgType, message InquiryBecomeVendorGetMessageArgType) *InquiryBecomeVendor { this := InquiryBecomeVendor{} setInquiryBecomeVendorGetContactEmailAttributeType(&this.ContactEmail, contactEmail) @@ -85,12 +98,14 @@ func NewInquiryBecomeVendor(contactEmail InquiryBecomeVendorGetContactEmailArgTy // NewInquiryBecomeVendorWithDefaults instantiates a new InquiryBecomeVendor object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryBecomeVendorWithDefaults() *InquiryBecomeVendor { this := InquiryBecomeVendor{} return &this } // GetContactEmail returns the ContactEmail field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryBecomeVendor) GetContactEmail() (ret InquiryBecomeVendorGetContactEmailRetType) { ret, _ = o.GetContactEmailOk() return ret @@ -98,16 +113,19 @@ func (o *InquiryBecomeVendor) GetContactEmail() (ret InquiryBecomeVendorGetConta // GetContactEmailOk returns a tuple with the ContactEmail field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryBecomeVendor) GetContactEmailOk() (ret InquiryBecomeVendorGetContactEmailRetType, ok bool) { return getInquiryBecomeVendorGetContactEmailAttributeTypeOk(o.ContactEmail) } // SetContactEmail sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryBecomeVendor) SetContactEmail(v InquiryBecomeVendorGetContactEmailRetType) { setInquiryBecomeVendorGetContactEmailAttributeType(&o.ContactEmail, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryBecomeVendor) GetMessage() (ret InquiryBecomeVendorGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -115,15 +133,18 @@ func (o *InquiryBecomeVendor) GetMessage() (ret InquiryBecomeVendorGetMessageRet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryBecomeVendor) GetMessageOk() (ret InquiryBecomeVendorGetMessageRetType, ok bool) { return getInquiryBecomeVendorGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryBecomeVendor) SetMessage(v InquiryBecomeVendorGetMessageRetType) { setInquiryBecomeVendorGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o InquiryBecomeVendor) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInquiryBecomeVendorGetContactEmailAttributeTypeOk(o.ContactEmail); ok { @@ -135,37 +156,45 @@ func (o InquiryBecomeVendor) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquiryBecomeVendor struct { value *InquiryBecomeVendor isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryBecomeVendor) Get() *InquiryBecomeVendor { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryBecomeVendor) Set(val *InquiryBecomeVendor) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryBecomeVendor) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryBecomeVendor) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquiryBecomeVendor(val *InquiryBecomeVendor) *NullableInquiryBecomeVendor { return &NullableInquiryBecomeVendor{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryBecomeVendor) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryBecomeVendor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiry_contact_sales.go b/services/stackitmarketplace/model_inquiry_contact_sales.go index 8a3d8c9aa0..df4969a52f 100644 --- a/services/stackitmarketplace/model_inquiry_contact_sales.go +++ b/services/stackitmarketplace/model_inquiry_contact_sales.go @@ -22,8 +22,10 @@ var _ MappedNullable = &InquiryContactSales{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetCompanyNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryContactSalesGetCompanyNameAttributeTypeOk(arg InquiryContactSalesGetCompanyNameAttributeType) (ret InquiryContactSalesGetCompanyNameRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getInquiryContactSalesGetCompanyNameAttributeTypeOk(arg InquiryContactSales return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryContactSalesGetCompanyNameAttributeType(arg *InquiryContactSalesGetCompanyNameAttributeType, val InquiryContactSalesGetCompanyNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetCompanyNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetCompanyNameRetType = string /* @@ -43,8 +48,10 @@ type InquiryContactSalesGetCompanyNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetContactEmailAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryContactSalesGetContactEmailAttributeTypeOk(arg InquiryContactSalesGetContactEmailAttributeType) (ret InquiryContactSalesGetContactEmailRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getInquiryContactSalesGetContactEmailAttributeTypeOk(arg InquiryContactSale return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryContactSalesGetContactEmailAttributeType(arg *InquiryContactSalesGetContactEmailAttributeType, val InquiryContactSalesGetContactEmailRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetContactEmailArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetContactEmailRetType = string /* @@ -64,8 +74,10 @@ type InquiryContactSalesGetContactEmailRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetFullNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryContactSalesGetFullNameAttributeTypeOk(arg InquiryContactSalesGetFullNameAttributeType) (ret InquiryContactSalesGetFullNameRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +85,14 @@ func getInquiryContactSalesGetFullNameAttributeTypeOk(arg InquiryContactSalesGet return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryContactSalesGetFullNameAttributeType(arg *InquiryContactSalesGetFullNameAttributeType, val InquiryContactSalesGetFullNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetFullNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetFullNameRetType = string /* @@ -85,8 +100,10 @@ type InquiryContactSalesGetFullNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryContactSalesGetMessageAttributeTypeOk(arg InquiryContactSalesGetMessageAttributeType) (ret InquiryContactSalesGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +111,14 @@ func getInquiryContactSalesGetMessageAttributeTypeOk(arg InquiryContactSalesGetM return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryContactSalesGetMessageAttributeType(arg *InquiryContactSalesGetMessageAttributeType, val InquiryContactSalesGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetMessageArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetMessageRetType = string /* @@ -106,8 +126,10 @@ type InquiryContactSalesGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetProductIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryContactSalesGetProductIdAttributeTypeOk(arg InquiryContactSalesGetProductIdAttributeType) (ret InquiryContactSalesGetProductIdRetType, ok bool) { if arg == nil { return ret, false @@ -115,14 +137,18 @@ func getInquiryContactSalesGetProductIdAttributeTypeOk(arg InquiryContactSalesGe return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryContactSalesGetProductIdAttributeType(arg *InquiryContactSalesGetProductIdAttributeType, val InquiryContactSalesGetProductIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetProductIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSalesGetProductIdRetType = string // InquiryContactSales Contact sales. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryContactSales struct { // The product's vendor name. // REQUIRED @@ -141,12 +167,14 @@ type InquiryContactSales struct { ProductId InquiryContactSalesGetProductIdAttributeType `json:"productId" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _InquiryContactSales InquiryContactSales // NewInquiryContactSales instantiates a new InquiryContactSales object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryContactSales(companyName InquiryContactSalesGetCompanyNameArgType, contactEmail InquiryContactSalesGetContactEmailArgType, fullName InquiryContactSalesGetFullNameArgType, message InquiryContactSalesGetMessageArgType, productId InquiryContactSalesGetProductIdArgType) *InquiryContactSales { this := InquiryContactSales{} setInquiryContactSalesGetCompanyNameAttributeType(&this.CompanyName, companyName) @@ -160,12 +188,14 @@ func NewInquiryContactSales(companyName InquiryContactSalesGetCompanyNameArgType // NewInquiryContactSalesWithDefaults instantiates a new InquiryContactSales object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryContactSalesWithDefaults() *InquiryContactSales { this := InquiryContactSales{} return &this } // GetCompanyName returns the CompanyName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetCompanyName() (ret InquiryContactSalesGetCompanyNameRetType) { ret, _ = o.GetCompanyNameOk() return ret @@ -173,16 +203,19 @@ func (o *InquiryContactSales) GetCompanyName() (ret InquiryContactSalesGetCompan // GetCompanyNameOk returns a tuple with the CompanyName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetCompanyNameOk() (ret InquiryContactSalesGetCompanyNameRetType, ok bool) { return getInquiryContactSalesGetCompanyNameAttributeTypeOk(o.CompanyName) } // SetCompanyName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) SetCompanyName(v InquiryContactSalesGetCompanyNameRetType) { setInquiryContactSalesGetCompanyNameAttributeType(&o.CompanyName, v) } // GetContactEmail returns the ContactEmail field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetContactEmail() (ret InquiryContactSalesGetContactEmailRetType) { ret, _ = o.GetContactEmailOk() return ret @@ -190,16 +223,19 @@ func (o *InquiryContactSales) GetContactEmail() (ret InquiryContactSalesGetConta // GetContactEmailOk returns a tuple with the ContactEmail field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetContactEmailOk() (ret InquiryContactSalesGetContactEmailRetType, ok bool) { return getInquiryContactSalesGetContactEmailAttributeTypeOk(o.ContactEmail) } // SetContactEmail sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) SetContactEmail(v InquiryContactSalesGetContactEmailRetType) { setInquiryContactSalesGetContactEmailAttributeType(&o.ContactEmail, v) } // GetFullName returns the FullName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetFullName() (ret InquiryContactSalesGetFullNameRetType) { ret, _ = o.GetFullNameOk() return ret @@ -207,16 +243,19 @@ func (o *InquiryContactSales) GetFullName() (ret InquiryContactSalesGetFullNameR // GetFullNameOk returns a tuple with the FullName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetFullNameOk() (ret InquiryContactSalesGetFullNameRetType, ok bool) { return getInquiryContactSalesGetFullNameAttributeTypeOk(o.FullName) } // SetFullName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) SetFullName(v InquiryContactSalesGetFullNameRetType) { setInquiryContactSalesGetFullNameAttributeType(&o.FullName, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetMessage() (ret InquiryContactSalesGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -224,16 +263,19 @@ func (o *InquiryContactSales) GetMessage() (ret InquiryContactSalesGetMessageRet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetMessageOk() (ret InquiryContactSalesGetMessageRetType, ok bool) { return getInquiryContactSalesGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) SetMessage(v InquiryContactSalesGetMessageRetType) { setInquiryContactSalesGetMessageAttributeType(&o.Message, v) } // GetProductId returns the ProductId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetProductId() (ret InquiryContactSalesGetProductIdRetType) { ret, _ = o.GetProductIdOk() return ret @@ -241,15 +283,18 @@ func (o *InquiryContactSales) GetProductId() (ret InquiryContactSalesGetProductI // GetProductIdOk returns a tuple with the ProductId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) GetProductIdOk() (ret InquiryContactSalesGetProductIdRetType, ok bool) { return getInquiryContactSalesGetProductIdAttributeTypeOk(o.ProductId) } // SetProductId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryContactSales) SetProductId(v InquiryContactSalesGetProductIdRetType) { setInquiryContactSalesGetProductIdAttributeType(&o.ProductId, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o InquiryContactSales) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInquiryContactSalesGetCompanyNameAttributeTypeOk(o.CompanyName); ok { @@ -270,37 +315,45 @@ func (o InquiryContactSales) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquiryContactSales struct { value *InquiryContactSales isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryContactSales) Get() *InquiryContactSales { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryContactSales) Set(val *InquiryContactSales) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryContactSales) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryContactSales) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquiryContactSales(val *InquiryContactSales) *NullableInquiryContactSales { return &NullableInquiryContactSales{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryContactSales) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryContactSales) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiry_form_type.go b/services/stackitmarketplace/model_inquiry_form_type.go index 53dcf09e62..a6e5d08151 100644 --- a/services/stackitmarketplace/model_inquiry_form_type.go +++ b/services/stackitmarketplace/model_inquiry_form_type.go @@ -16,18 +16,25 @@ import ( ) // InquiryFormType The form type. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryFormType string // List of inquiryFormType const ( - INQUIRYFORMTYPE_SUGGEST_PRODUCT InquiryFormType = "SUGGEST_PRODUCT" - INQUIRYFORMTYPE_CONTACT_SALES InquiryFormType = "CONTACT_SALES" - INQUIRYFORMTYPE_BECOME_VENDOR InquiryFormType = "BECOME_VENDOR" - INQUIRYFORMTYPE_REGISTER_TESTING InquiryFormType = "REGISTER_TESTING" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + INQUIRYFORMTYPE_SUGGEST_PRODUCT InquiryFormType = "SUGGEST_PRODUCT" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + INQUIRYFORMTYPE_CONTACT_SALES InquiryFormType = "CONTACT_SALES" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + INQUIRYFORMTYPE_BECOME_VENDOR InquiryFormType = "BECOME_VENDOR" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + INQUIRYFORMTYPE_REGISTER_TESTING InquiryFormType = "REGISTER_TESTING" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead INQUIRYFORMTYPE_REQUEST_PRIVATE_PLAN InquiryFormType = "REQUEST_PRIVATE_PLAN" ) // All allowed values of InquiryFormType enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedInquiryFormTypeEnumValues = []InquiryFormType{ "SUGGEST_PRODUCT", "CONTACT_SALES", @@ -36,6 +43,7 @@ var AllowedInquiryFormTypeEnumValues = []InquiryFormType{ "REQUEST_PRIVATE_PLAN", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *InquiryFormType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -60,6 +68,7 @@ func (v *InquiryFormType) UnmarshalJSON(src []byte) error { // NewInquiryFormTypeFromValue returns a pointer to a valid InquiryFormType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryFormTypeFromValue(v string) (*InquiryFormType, error) { ev := InquiryFormType(v) if ev.IsValid() { @@ -70,6 +79,7 @@ func NewInquiryFormTypeFromValue(v string) (*InquiryFormType, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v InquiryFormType) IsValid() bool { for _, existing := range AllowedInquiryFormTypeEnumValues { if existing == v { @@ -80,41 +90,50 @@ func (v InquiryFormType) IsValid() bool { } // Ptr returns reference to inquiryFormType value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v InquiryFormType) Ptr() *InquiryFormType { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquiryFormType struct { value *InquiryFormType isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryFormType) Get() *InquiryFormType { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryFormType) Set(val *InquiryFormType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryFormType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryFormType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquiryFormType(val *InquiryFormType) *NullableInquiryFormType { return &NullableInquiryFormType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryFormType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryFormType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiry_register_testing.go b/services/stackitmarketplace/model_inquiry_register_testing.go index ee03121894..29d57c7042 100644 --- a/services/stackitmarketplace/model_inquiry_register_testing.go +++ b/services/stackitmarketplace/model_inquiry_register_testing.go @@ -22,8 +22,10 @@ var _ MappedNullable = &InquiryRegisterTesting{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetContactEmailAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRegisterTestingGetContactEmailAttributeTypeOk(arg InquiryRegisterTestingGetContactEmailAttributeType) (ret InquiryRegisterTestingGetContactEmailRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getInquiryRegisterTestingGetContactEmailAttributeTypeOk(arg InquiryRegister return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRegisterTestingGetContactEmailAttributeType(arg *InquiryRegisterTestingGetContactEmailAttributeType, val InquiryRegisterTestingGetContactEmailRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetContactEmailArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetContactEmailRetType = string /* @@ -43,8 +48,10 @@ type InquiryRegisterTestingGetContactEmailRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetFullNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRegisterTestingGetFullNameAttributeTypeOk(arg InquiryRegisterTestingGetFullNameAttributeType) (ret InquiryRegisterTestingGetFullNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getInquiryRegisterTestingGetFullNameAttributeTypeOk(arg InquiryRegisterTest return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRegisterTestingGetFullNameAttributeType(arg *InquiryRegisterTestingGetFullNameAttributeType, val InquiryRegisterTestingGetFullNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetFullNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetFullNameRetType = string /* @@ -64,8 +74,10 @@ type InquiryRegisterTestingGetFullNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRegisterTestingGetMessageAttributeTypeOk(arg InquiryRegisterTestingGetMessageAttributeType) (ret InquiryRegisterTestingGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +85,18 @@ func getInquiryRegisterTestingGetMessageAttributeTypeOk(arg InquiryRegisterTesti return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRegisterTestingGetMessageAttributeType(arg *InquiryRegisterTestingGetMessageAttributeType, val InquiryRegisterTestingGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetMessageArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTestingGetMessageRetType = string // InquiryRegisterTesting Register for testing. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRegisterTesting struct { // A e-mail address. // REQUIRED @@ -93,12 +109,14 @@ type InquiryRegisterTesting struct { Message InquiryRegisterTestingGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _InquiryRegisterTesting InquiryRegisterTesting // NewInquiryRegisterTesting instantiates a new InquiryRegisterTesting object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryRegisterTesting(contactEmail InquiryRegisterTestingGetContactEmailArgType, fullName InquiryRegisterTestingGetFullNameArgType, message InquiryRegisterTestingGetMessageArgType) *InquiryRegisterTesting { this := InquiryRegisterTesting{} setInquiryRegisterTestingGetContactEmailAttributeType(&this.ContactEmail, contactEmail) @@ -110,12 +128,14 @@ func NewInquiryRegisterTesting(contactEmail InquiryRegisterTestingGetContactEmai // NewInquiryRegisterTestingWithDefaults instantiates a new InquiryRegisterTesting object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryRegisterTestingWithDefaults() *InquiryRegisterTesting { this := InquiryRegisterTesting{} return &this } // GetContactEmail returns the ContactEmail field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) GetContactEmail() (ret InquiryRegisterTestingGetContactEmailRetType) { ret, _ = o.GetContactEmailOk() return ret @@ -123,16 +143,19 @@ func (o *InquiryRegisterTesting) GetContactEmail() (ret InquiryRegisterTestingGe // GetContactEmailOk returns a tuple with the ContactEmail field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) GetContactEmailOk() (ret InquiryRegisterTestingGetContactEmailRetType, ok bool) { return getInquiryRegisterTestingGetContactEmailAttributeTypeOk(o.ContactEmail) } // SetContactEmail sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) SetContactEmail(v InquiryRegisterTestingGetContactEmailRetType) { setInquiryRegisterTestingGetContactEmailAttributeType(&o.ContactEmail, v) } // GetFullName returns the FullName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) GetFullName() (ret InquiryRegisterTestingGetFullNameRetType) { ret, _ = o.GetFullNameOk() return ret @@ -140,16 +163,19 @@ func (o *InquiryRegisterTesting) GetFullName() (ret InquiryRegisterTestingGetFul // GetFullNameOk returns a tuple with the FullName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) GetFullNameOk() (ret InquiryRegisterTestingGetFullNameRetType, ok bool) { return getInquiryRegisterTestingGetFullNameAttributeTypeOk(o.FullName) } // SetFullName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) SetFullName(v InquiryRegisterTestingGetFullNameRetType) { setInquiryRegisterTestingGetFullNameAttributeType(&o.FullName, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) GetMessage() (ret InquiryRegisterTestingGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -157,15 +183,18 @@ func (o *InquiryRegisterTesting) GetMessage() (ret InquiryRegisterTestingGetMess // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) GetMessageOk() (ret InquiryRegisterTestingGetMessageRetType, ok bool) { return getInquiryRegisterTestingGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRegisterTesting) SetMessage(v InquiryRegisterTestingGetMessageRetType) { setInquiryRegisterTestingGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o InquiryRegisterTesting) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInquiryRegisterTestingGetContactEmailAttributeTypeOk(o.ContactEmail); ok { @@ -180,37 +209,45 @@ func (o InquiryRegisterTesting) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquiryRegisterTesting struct { value *InquiryRegisterTesting isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryRegisterTesting) Get() *InquiryRegisterTesting { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryRegisterTesting) Set(val *InquiryRegisterTesting) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryRegisterTesting) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryRegisterTesting) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquiryRegisterTesting(val *InquiryRegisterTesting) *NullableInquiryRegisterTesting { return &NullableInquiryRegisterTesting{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryRegisterTesting) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryRegisterTesting) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiry_request_private_plan.go b/services/stackitmarketplace/model_inquiry_request_private_plan.go index 9008f4a90d..36e456f521 100644 --- a/services/stackitmarketplace/model_inquiry_request_private_plan.go +++ b/services/stackitmarketplace/model_inquiry_request_private_plan.go @@ -22,8 +22,10 @@ var _ MappedNullable = &InquiryRequestPrivatePlan{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetCompanyNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRequestPrivatePlanGetCompanyNameAttributeTypeOk(arg InquiryRequestPrivatePlanGetCompanyNameAttributeType) (ret InquiryRequestPrivatePlanGetCompanyNameRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getInquiryRequestPrivatePlanGetCompanyNameAttributeTypeOk(arg InquiryReques return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRequestPrivatePlanGetCompanyNameAttributeType(arg *InquiryRequestPrivatePlanGetCompanyNameAttributeType, val InquiryRequestPrivatePlanGetCompanyNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetCompanyNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetCompanyNameRetType = string /* @@ -43,8 +48,10 @@ type InquiryRequestPrivatePlanGetCompanyNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetContactEmailAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRequestPrivatePlanGetContactEmailAttributeTypeOk(arg InquiryRequestPrivatePlanGetContactEmailAttributeType) (ret InquiryRequestPrivatePlanGetContactEmailRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getInquiryRequestPrivatePlanGetContactEmailAttributeTypeOk(arg InquiryReque return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRequestPrivatePlanGetContactEmailAttributeType(arg *InquiryRequestPrivatePlanGetContactEmailAttributeType, val InquiryRequestPrivatePlanGetContactEmailRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetContactEmailArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetContactEmailRetType = string /* @@ -64,8 +74,10 @@ type InquiryRequestPrivatePlanGetContactEmailRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetFullNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRequestPrivatePlanGetFullNameAttributeTypeOk(arg InquiryRequestPrivatePlanGetFullNameAttributeType) (ret InquiryRequestPrivatePlanGetFullNameRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +85,14 @@ func getInquiryRequestPrivatePlanGetFullNameAttributeTypeOk(arg InquiryRequestPr return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRequestPrivatePlanGetFullNameAttributeType(arg *InquiryRequestPrivatePlanGetFullNameAttributeType, val InquiryRequestPrivatePlanGetFullNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetFullNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetFullNameRetType = string /* @@ -85,8 +100,10 @@ type InquiryRequestPrivatePlanGetFullNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRequestPrivatePlanGetMessageAttributeTypeOk(arg InquiryRequestPrivatePlanGetMessageAttributeType) (ret InquiryRequestPrivatePlanGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +111,14 @@ func getInquiryRequestPrivatePlanGetMessageAttributeTypeOk(arg InquiryRequestPri return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRequestPrivatePlanGetMessageAttributeType(arg *InquiryRequestPrivatePlanGetMessageAttributeType, val InquiryRequestPrivatePlanGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetMessageArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetMessageRetType = string /* @@ -106,8 +126,10 @@ type InquiryRequestPrivatePlanGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetProductIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquiryRequestPrivatePlanGetProductIdAttributeTypeOk(arg InquiryRequestPrivatePlanGetProductIdAttributeType) (ret InquiryRequestPrivatePlanGetProductIdRetType, ok bool) { if arg == nil { return ret, false @@ -115,14 +137,18 @@ func getInquiryRequestPrivatePlanGetProductIdAttributeTypeOk(arg InquiryRequestP return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquiryRequestPrivatePlanGetProductIdAttributeType(arg *InquiryRequestPrivatePlanGetProductIdAttributeType, val InquiryRequestPrivatePlanGetProductIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetProductIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlanGetProductIdRetType = string // InquiryRequestPrivatePlan Request a private plan. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquiryRequestPrivatePlan struct { // The product's vendor name. // REQUIRED @@ -141,12 +167,14 @@ type InquiryRequestPrivatePlan struct { ProductId InquiryRequestPrivatePlanGetProductIdAttributeType `json:"productId" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _InquiryRequestPrivatePlan InquiryRequestPrivatePlan // NewInquiryRequestPrivatePlan instantiates a new InquiryRequestPrivatePlan object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryRequestPrivatePlan(companyName InquiryRequestPrivatePlanGetCompanyNameArgType, contactEmail InquiryRequestPrivatePlanGetContactEmailArgType, fullName InquiryRequestPrivatePlanGetFullNameArgType, message InquiryRequestPrivatePlanGetMessageArgType, productId InquiryRequestPrivatePlanGetProductIdArgType) *InquiryRequestPrivatePlan { this := InquiryRequestPrivatePlan{} setInquiryRequestPrivatePlanGetCompanyNameAttributeType(&this.CompanyName, companyName) @@ -160,12 +188,14 @@ func NewInquiryRequestPrivatePlan(companyName InquiryRequestPrivatePlanGetCompan // NewInquiryRequestPrivatePlanWithDefaults instantiates a new InquiryRequestPrivatePlan object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquiryRequestPrivatePlanWithDefaults() *InquiryRequestPrivatePlan { this := InquiryRequestPrivatePlan{} return &this } // GetCompanyName returns the CompanyName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetCompanyName() (ret InquiryRequestPrivatePlanGetCompanyNameRetType) { ret, _ = o.GetCompanyNameOk() return ret @@ -173,16 +203,19 @@ func (o *InquiryRequestPrivatePlan) GetCompanyName() (ret InquiryRequestPrivateP // GetCompanyNameOk returns a tuple with the CompanyName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetCompanyNameOk() (ret InquiryRequestPrivatePlanGetCompanyNameRetType, ok bool) { return getInquiryRequestPrivatePlanGetCompanyNameAttributeTypeOk(o.CompanyName) } // SetCompanyName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) SetCompanyName(v InquiryRequestPrivatePlanGetCompanyNameRetType) { setInquiryRequestPrivatePlanGetCompanyNameAttributeType(&o.CompanyName, v) } // GetContactEmail returns the ContactEmail field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetContactEmail() (ret InquiryRequestPrivatePlanGetContactEmailRetType) { ret, _ = o.GetContactEmailOk() return ret @@ -190,16 +223,19 @@ func (o *InquiryRequestPrivatePlan) GetContactEmail() (ret InquiryRequestPrivate // GetContactEmailOk returns a tuple with the ContactEmail field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetContactEmailOk() (ret InquiryRequestPrivatePlanGetContactEmailRetType, ok bool) { return getInquiryRequestPrivatePlanGetContactEmailAttributeTypeOk(o.ContactEmail) } // SetContactEmail sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) SetContactEmail(v InquiryRequestPrivatePlanGetContactEmailRetType) { setInquiryRequestPrivatePlanGetContactEmailAttributeType(&o.ContactEmail, v) } // GetFullName returns the FullName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetFullName() (ret InquiryRequestPrivatePlanGetFullNameRetType) { ret, _ = o.GetFullNameOk() return ret @@ -207,16 +243,19 @@ func (o *InquiryRequestPrivatePlan) GetFullName() (ret InquiryRequestPrivatePlan // GetFullNameOk returns a tuple with the FullName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetFullNameOk() (ret InquiryRequestPrivatePlanGetFullNameRetType, ok bool) { return getInquiryRequestPrivatePlanGetFullNameAttributeTypeOk(o.FullName) } // SetFullName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) SetFullName(v InquiryRequestPrivatePlanGetFullNameRetType) { setInquiryRequestPrivatePlanGetFullNameAttributeType(&o.FullName, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetMessage() (ret InquiryRequestPrivatePlanGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -224,16 +263,19 @@ func (o *InquiryRequestPrivatePlan) GetMessage() (ret InquiryRequestPrivatePlanG // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetMessageOk() (ret InquiryRequestPrivatePlanGetMessageRetType, ok bool) { return getInquiryRequestPrivatePlanGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) SetMessage(v InquiryRequestPrivatePlanGetMessageRetType) { setInquiryRequestPrivatePlanGetMessageAttributeType(&o.Message, v) } // GetProductId returns the ProductId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetProductId() (ret InquiryRequestPrivatePlanGetProductIdRetType) { ret, _ = o.GetProductIdOk() return ret @@ -241,15 +283,18 @@ func (o *InquiryRequestPrivatePlan) GetProductId() (ret InquiryRequestPrivatePla // GetProductIdOk returns a tuple with the ProductId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) GetProductIdOk() (ret InquiryRequestPrivatePlanGetProductIdRetType, ok bool) { return getInquiryRequestPrivatePlanGetProductIdAttributeTypeOk(o.ProductId) } // SetProductId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquiryRequestPrivatePlan) SetProductId(v InquiryRequestPrivatePlanGetProductIdRetType) { setInquiryRequestPrivatePlanGetProductIdAttributeType(&o.ProductId, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o InquiryRequestPrivatePlan) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInquiryRequestPrivatePlanGetCompanyNameAttributeTypeOk(o.CompanyName); ok { @@ -270,37 +315,45 @@ func (o InquiryRequestPrivatePlan) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquiryRequestPrivatePlan struct { value *InquiryRequestPrivatePlan isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryRequestPrivatePlan) Get() *InquiryRequestPrivatePlan { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryRequestPrivatePlan) Set(val *InquiryRequestPrivatePlan) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryRequestPrivatePlan) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryRequestPrivatePlan) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquiryRequestPrivatePlan(val *InquiryRequestPrivatePlan) *NullableInquiryRequestPrivatePlan { return &NullableInquiryRequestPrivatePlan{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquiryRequestPrivatePlan) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquiryRequestPrivatePlan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_inquiry_suggest_product.go b/services/stackitmarketplace/model_inquiry_suggest_product.go index 7a65690f8f..3fe62f4ed8 100644 --- a/services/stackitmarketplace/model_inquiry_suggest_product.go +++ b/services/stackitmarketplace/model_inquiry_suggest_product.go @@ -22,8 +22,10 @@ var _ MappedNullable = &InquirySuggestProduct{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetCompanyNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquirySuggestProductGetCompanyNameAttributeTypeOk(arg InquirySuggestProductGetCompanyNameAttributeType) (ret InquirySuggestProductGetCompanyNameRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getInquirySuggestProductGetCompanyNameAttributeTypeOk(arg InquirySuggestPro return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquirySuggestProductGetCompanyNameAttributeType(arg *InquirySuggestProductGetCompanyNameAttributeType, val InquirySuggestProductGetCompanyNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetCompanyNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetCompanyNameRetType = string /* @@ -43,8 +48,10 @@ type InquirySuggestProductGetCompanyNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquirySuggestProductGetMessageAttributeTypeOk(arg InquirySuggestProductGetMessageAttributeType) (ret InquirySuggestProductGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +59,14 @@ func getInquirySuggestProductGetMessageAttributeTypeOk(arg InquirySuggestProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquirySuggestProductGetMessageAttributeType(arg *InquirySuggestProductGetMessageAttributeType, val InquirySuggestProductGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetMessageArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetMessageRetType = string /* @@ -64,8 +74,10 @@ type InquirySuggestProductGetMessageRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquirySuggestProductGetNameAttributeTypeOk(arg InquirySuggestProductGetNameAttributeType) (ret InquirySuggestProductGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +85,14 @@ func getInquirySuggestProductGetNameAttributeTypeOk(arg InquirySuggestProductGet return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquirySuggestProductGetNameAttributeType(arg *InquirySuggestProductGetNameAttributeType, val InquirySuggestProductGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetNameRetType = string /* @@ -85,8 +100,10 @@ type InquirySuggestProductGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getInquirySuggestProductGetUrlAttributeTypeOk(arg InquirySuggestProductGetUrlAttributeType) (ret InquirySuggestProductGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -94,14 +111,18 @@ func getInquirySuggestProductGetUrlAttributeTypeOk(arg InquirySuggestProductGetU return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setInquirySuggestProductGetUrlAttributeType(arg *InquirySuggestProductGetUrlAttributeType, val InquirySuggestProductGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProductGetUrlRetType = string // InquirySuggestProduct Suggest a product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type InquirySuggestProduct struct { // The product's vendor name. // REQUIRED @@ -116,12 +137,14 @@ type InquirySuggestProduct struct { Url InquirySuggestProductGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _InquirySuggestProduct InquirySuggestProduct // NewInquirySuggestProduct instantiates a new InquirySuggestProduct object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquirySuggestProduct(companyName InquirySuggestProductGetCompanyNameArgType, name InquirySuggestProductGetNameArgType, url InquirySuggestProductGetUrlArgType) *InquirySuggestProduct { this := InquirySuggestProduct{} setInquirySuggestProductGetCompanyNameAttributeType(&this.CompanyName, companyName) @@ -133,12 +156,14 @@ func NewInquirySuggestProduct(companyName InquirySuggestProductGetCompanyNameArg // NewInquirySuggestProductWithDefaults instantiates a new InquirySuggestProduct object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewInquirySuggestProductWithDefaults() *InquirySuggestProduct { this := InquirySuggestProduct{} return &this } // GetCompanyName returns the CompanyName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetCompanyName() (ret InquirySuggestProductGetCompanyNameRetType) { ret, _ = o.GetCompanyNameOk() return ret @@ -146,16 +171,19 @@ func (o *InquirySuggestProduct) GetCompanyName() (ret InquirySuggestProductGetCo // GetCompanyNameOk returns a tuple with the CompanyName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetCompanyNameOk() (ret InquirySuggestProductGetCompanyNameRetType, ok bool) { return getInquirySuggestProductGetCompanyNameAttributeTypeOk(o.CompanyName) } // SetCompanyName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) SetCompanyName(v InquirySuggestProductGetCompanyNameRetType) { setInquirySuggestProductGetCompanyNameAttributeType(&o.CompanyName, v) } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetMessage() (res InquirySuggestProductGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -163,22 +191,26 @@ func (o *InquirySuggestProduct) GetMessage() (res InquirySuggestProductGetMessag // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetMessageOk() (ret InquirySuggestProductGetMessageRetType, ok bool) { return getInquirySuggestProductGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) SetMessage(v InquirySuggestProductGetMessageRetType) { setInquirySuggestProductGetMessageAttributeType(&o.Message, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetName() (ret InquirySuggestProductGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -186,16 +218,19 @@ func (o *InquirySuggestProduct) GetName() (ret InquirySuggestProductGetNameRetTy // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetNameOk() (ret InquirySuggestProductGetNameRetType, ok bool) { return getInquirySuggestProductGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) SetName(v InquirySuggestProductGetNameRetType) { setInquirySuggestProductGetNameAttributeType(&o.Name, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetUrl() (ret InquirySuggestProductGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -203,15 +238,18 @@ func (o *InquirySuggestProduct) GetUrl() (ret InquirySuggestProductGetUrlRetType // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) GetUrlOk() (ret InquirySuggestProductGetUrlRetType, ok bool) { return getInquirySuggestProductGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *InquirySuggestProduct) SetUrl(v InquirySuggestProductGetUrlRetType) { setInquirySuggestProductGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o InquirySuggestProduct) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInquirySuggestProductGetCompanyNameAttributeTypeOk(o.CompanyName); ok { @@ -229,37 +267,45 @@ func (o InquirySuggestProduct) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInquirySuggestProduct struct { value *InquirySuggestProduct isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquirySuggestProduct) Get() *InquirySuggestProduct { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquirySuggestProduct) Set(val *InquirySuggestProduct) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquirySuggestProduct) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquirySuggestProduct) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInquirySuggestProduct(val *InquirySuggestProduct) *NullableInquirySuggestProduct { return &NullableInquirySuggestProduct{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInquirySuggestProduct) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInquirySuggestProduct) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_list_catalog_products_response.go b/services/stackitmarketplace/model_list_catalog_products_response.go index e2aaf0751a..e07dc21d08 100644 --- a/services/stackitmarketplace/model_list_catalog_products_response.go +++ b/services/stackitmarketplace/model_list_catalog_products_response.go @@ -22,8 +22,10 @@ var _ MappedNullable = &ListCatalogProductsResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetCursorAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListCatalogProductsResponseGetCursorAttributeTypeOk(arg ListCatalogProductsResponseGetCursorAttributeType) (ret ListCatalogProductsResponseGetCursorRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getListCatalogProductsResponseGetCursorAttributeTypeOk(arg ListCatalogProdu return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListCatalogProductsResponseGetCursorAttributeType(arg *ListCatalogProductsResponseGetCursorAttributeType, val ListCatalogProductsResponseGetCursorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetCursorArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetCursorRetType = string /* @@ -43,10 +48,14 @@ type ListCatalogProductsResponseGetCursorRetType = string */ // isContainer +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetFacetsAttributeType = *map[string][]CatalogProductFacetsValueInner +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetFacetsArgType = map[string][]CatalogProductFacetsValueInner +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetFacetsRetType = map[string][]CatalogProductFacetsValueInner +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListCatalogProductsResponseGetFacetsAttributeTypeOk(arg ListCatalogProductsResponseGetFacetsAttributeType) (ret ListCatalogProductsResponseGetFacetsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +63,7 @@ func getListCatalogProductsResponseGetFacetsAttributeTypeOk(arg ListCatalogProdu return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListCatalogProductsResponseGetFacetsAttributeType(arg *ListCatalogProductsResponseGetFacetsAttributeType, val ListCatalogProductsResponseGetFacetsRetType) { *arg = &val } @@ -63,10 +73,14 @@ func setListCatalogProductsResponseGetFacetsAttributeType(arg *ListCatalogProduc */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetItemsAttributeType = *[]CatalogProductOverview +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetItemsArgType = []CatalogProductOverview +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetItemsRetType = []CatalogProductOverview +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListCatalogProductsResponseGetItemsAttributeTypeOk(arg ListCatalogProductsResponseGetItemsAttributeType) (ret ListCatalogProductsResponseGetItemsRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +88,7 @@ func getListCatalogProductsResponseGetItemsAttributeTypeOk(arg ListCatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListCatalogProductsResponseGetItemsAttributeType(arg *ListCatalogProductsResponseGetItemsAttributeType, val ListCatalogProductsResponseGetItemsRetType) { *arg = &val } @@ -83,10 +98,14 @@ func setListCatalogProductsResponseGetItemsAttributeType(arg *ListCatalogProduct */ // isNumber +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetLimitAttributeType = *float64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetLimitArgType = float64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponseGetLimitRetType = float64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListCatalogProductsResponseGetLimitAttributeTypeOk(arg ListCatalogProductsResponseGetLimitAttributeType) (ret ListCatalogProductsResponseGetLimitRetType, ok bool) { if arg == nil { return ret, false @@ -94,11 +113,13 @@ func getListCatalogProductsResponseGetLimitAttributeTypeOk(arg ListCatalogProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListCatalogProductsResponseGetLimitAttributeType(arg *ListCatalogProductsResponseGetLimitAttributeType, val ListCatalogProductsResponseGetLimitRetType) { *arg = &val } // ListCatalogProductsResponse struct for ListCatalogProductsResponse +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListCatalogProductsResponse struct { // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. // REQUIRED @@ -112,12 +133,14 @@ type ListCatalogProductsResponse struct { Limit ListCatalogProductsResponseGetLimitAttributeType `json:"limit" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _ListCatalogProductsResponse ListCatalogProductsResponse // NewListCatalogProductsResponse instantiates a new ListCatalogProductsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewListCatalogProductsResponse(cursor ListCatalogProductsResponseGetCursorArgType, items ListCatalogProductsResponseGetItemsArgType, limit ListCatalogProductsResponseGetLimitArgType) *ListCatalogProductsResponse { this := ListCatalogProductsResponse{} setListCatalogProductsResponseGetCursorAttributeType(&this.Cursor, cursor) @@ -129,6 +152,7 @@ func NewListCatalogProductsResponse(cursor ListCatalogProductsResponseGetCursorA // NewListCatalogProductsResponseWithDefaults instantiates a new ListCatalogProductsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewListCatalogProductsResponseWithDefaults() *ListCatalogProductsResponse { this := ListCatalogProductsResponse{} var limit float64 = 50 @@ -137,6 +161,7 @@ func NewListCatalogProductsResponseWithDefaults() *ListCatalogProductsResponse { } // GetCursor returns the Cursor field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetCursor() (ret ListCatalogProductsResponseGetCursorRetType) { ret, _ = o.GetCursorOk() return ret @@ -144,16 +169,19 @@ func (o *ListCatalogProductsResponse) GetCursor() (ret ListCatalogProductsRespon // GetCursorOk returns a tuple with the Cursor field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetCursorOk() (ret ListCatalogProductsResponseGetCursorRetType, ok bool) { return getListCatalogProductsResponseGetCursorAttributeTypeOk(o.Cursor) } // SetCursor sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) SetCursor(v ListCatalogProductsResponseGetCursorRetType) { setListCatalogProductsResponseGetCursorAttributeType(&o.Cursor, v) } // GetFacets returns the Facets field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetFacets() (res ListCatalogProductsResponseGetFacetsRetType) { res, _ = o.GetFacetsOk() return @@ -161,22 +189,26 @@ func (o *ListCatalogProductsResponse) GetFacets() (res ListCatalogProductsRespon // GetFacetsOk returns a tuple with the Facets field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetFacetsOk() (ret ListCatalogProductsResponseGetFacetsRetType, ok bool) { return getListCatalogProductsResponseGetFacetsAttributeTypeOk(o.Facets) } // HasFacets returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) HasFacets() bool { _, ok := o.GetFacetsOk() return ok } // SetFacets gets a reference to the given map[string][]CatalogProductFacetsValueInner and assigns it to the Facets field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) SetFacets(v ListCatalogProductsResponseGetFacetsRetType) { setListCatalogProductsResponseGetFacetsAttributeType(&o.Facets, v) } // GetItems returns the Items field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetItems() (ret ListCatalogProductsResponseGetItemsRetType) { ret, _ = o.GetItemsOk() return ret @@ -184,16 +216,19 @@ func (o *ListCatalogProductsResponse) GetItems() (ret ListCatalogProductsRespons // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetItemsOk() (ret ListCatalogProductsResponseGetItemsRetType, ok bool) { return getListCatalogProductsResponseGetItemsAttributeTypeOk(o.Items) } // SetItems sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) SetItems(v ListCatalogProductsResponseGetItemsRetType) { setListCatalogProductsResponseGetItemsAttributeType(&o.Items, v) } // GetLimit returns the Limit field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetLimit() (ret ListCatalogProductsResponseGetLimitRetType) { ret, _ = o.GetLimitOk() return ret @@ -201,15 +236,18 @@ func (o *ListCatalogProductsResponse) GetLimit() (ret ListCatalogProductsRespons // GetLimitOk returns a tuple with the Limit field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) GetLimitOk() (ret ListCatalogProductsResponseGetLimitRetType, ok bool) { return getListCatalogProductsResponseGetLimitAttributeTypeOk(o.Limit) } // SetLimit sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListCatalogProductsResponse) SetLimit(v ListCatalogProductsResponseGetLimitRetType) { setListCatalogProductsResponseGetLimitAttributeType(&o.Limit, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ListCatalogProductsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListCatalogProductsResponseGetCursorAttributeTypeOk(o.Cursor); ok { @@ -227,37 +265,45 @@ func (o ListCatalogProductsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableListCatalogProductsResponse struct { value *ListCatalogProductsResponse isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableListCatalogProductsResponse) Get() *ListCatalogProductsResponse { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableListCatalogProductsResponse) Set(val *ListCatalogProductsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableListCatalogProductsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableListCatalogProductsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableListCatalogProductsResponse(val *ListCatalogProductsResponse) *NullableListCatalogProductsResponse { return &NullableListCatalogProductsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableListCatalogProductsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableListCatalogProductsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_list_vendor_subscriptions_response.go b/services/stackitmarketplace/model_list_vendor_subscriptions_response.go index 938876a995..1311d734e8 100644 --- a/services/stackitmarketplace/model_list_vendor_subscriptions_response.go +++ b/services/stackitmarketplace/model_list_vendor_subscriptions_response.go @@ -22,8 +22,10 @@ var _ MappedNullable = &ListVendorSubscriptionsResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetCursorAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListVendorSubscriptionsResponseGetCursorAttributeTypeOk(arg ListVendorSubscriptionsResponseGetCursorAttributeType) (ret ListVendorSubscriptionsResponseGetCursorRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getListVendorSubscriptionsResponseGetCursorAttributeTypeOk(arg ListVendorSu return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListVendorSubscriptionsResponseGetCursorAttributeType(arg *ListVendorSubscriptionsResponseGetCursorAttributeType, val ListVendorSubscriptionsResponseGetCursorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetCursorArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetCursorRetType = string /* @@ -43,10 +48,14 @@ type ListVendorSubscriptionsResponseGetCursorRetType = string */ // isArray +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetItemsAttributeType = *[]VendorSubscription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetItemsArgType = []VendorSubscription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetItemsRetType = []VendorSubscription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListVendorSubscriptionsResponseGetItemsAttributeTypeOk(arg ListVendorSubscriptionsResponseGetItemsAttributeType) (ret ListVendorSubscriptionsResponseGetItemsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +63,7 @@ func getListVendorSubscriptionsResponseGetItemsAttributeTypeOk(arg ListVendorSub return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListVendorSubscriptionsResponseGetItemsAttributeType(arg *ListVendorSubscriptionsResponseGetItemsAttributeType, val ListVendorSubscriptionsResponseGetItemsRetType) { *arg = &val } @@ -63,10 +73,14 @@ func setListVendorSubscriptionsResponseGetItemsAttributeType(arg *ListVendorSubs */ // isNumber +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetLimitAttributeType = *float64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetLimitArgType = float64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponseGetLimitRetType = float64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getListVendorSubscriptionsResponseGetLimitAttributeTypeOk(arg ListVendorSubscriptionsResponseGetLimitAttributeType) (ret ListVendorSubscriptionsResponseGetLimitRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +88,13 @@ func getListVendorSubscriptionsResponseGetLimitAttributeTypeOk(arg ListVendorSub return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setListVendorSubscriptionsResponseGetLimitAttributeType(arg *ListVendorSubscriptionsResponseGetLimitAttributeType, val ListVendorSubscriptionsResponseGetLimitRetType) { *arg = &val } // ListVendorSubscriptionsResponse struct for ListVendorSubscriptionsResponse +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ListVendorSubscriptionsResponse struct { // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. // REQUIRED @@ -91,12 +107,14 @@ type ListVendorSubscriptionsResponse struct { Limit ListVendorSubscriptionsResponseGetLimitAttributeType `json:"limit" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _ListVendorSubscriptionsResponse ListVendorSubscriptionsResponse // NewListVendorSubscriptionsResponse instantiates a new ListVendorSubscriptionsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewListVendorSubscriptionsResponse(cursor ListVendorSubscriptionsResponseGetCursorArgType, items ListVendorSubscriptionsResponseGetItemsArgType, limit ListVendorSubscriptionsResponseGetLimitArgType) *ListVendorSubscriptionsResponse { this := ListVendorSubscriptionsResponse{} setListVendorSubscriptionsResponseGetCursorAttributeType(&this.Cursor, cursor) @@ -108,6 +126,7 @@ func NewListVendorSubscriptionsResponse(cursor ListVendorSubscriptionsResponseGe // NewListVendorSubscriptionsResponseWithDefaults instantiates a new ListVendorSubscriptionsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewListVendorSubscriptionsResponseWithDefaults() *ListVendorSubscriptionsResponse { this := ListVendorSubscriptionsResponse{} var limit float64 = 50 @@ -116,6 +135,7 @@ func NewListVendorSubscriptionsResponseWithDefaults() *ListVendorSubscriptionsRe } // GetCursor returns the Cursor field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) GetCursor() (ret ListVendorSubscriptionsResponseGetCursorRetType) { ret, _ = o.GetCursorOk() return ret @@ -123,16 +143,19 @@ func (o *ListVendorSubscriptionsResponse) GetCursor() (ret ListVendorSubscriptio // GetCursorOk returns a tuple with the Cursor field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) GetCursorOk() (ret ListVendorSubscriptionsResponseGetCursorRetType, ok bool) { return getListVendorSubscriptionsResponseGetCursorAttributeTypeOk(o.Cursor) } // SetCursor sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) SetCursor(v ListVendorSubscriptionsResponseGetCursorRetType) { setListVendorSubscriptionsResponseGetCursorAttributeType(&o.Cursor, v) } // GetItems returns the Items field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) GetItems() (ret ListVendorSubscriptionsResponseGetItemsRetType) { ret, _ = o.GetItemsOk() return ret @@ -140,16 +163,19 @@ func (o *ListVendorSubscriptionsResponse) GetItems() (ret ListVendorSubscription // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) GetItemsOk() (ret ListVendorSubscriptionsResponseGetItemsRetType, ok bool) { return getListVendorSubscriptionsResponseGetItemsAttributeTypeOk(o.Items) } // SetItems sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) SetItems(v ListVendorSubscriptionsResponseGetItemsRetType) { setListVendorSubscriptionsResponseGetItemsAttributeType(&o.Items, v) } // GetLimit returns the Limit field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) GetLimit() (ret ListVendorSubscriptionsResponseGetLimitRetType) { ret, _ = o.GetLimitOk() return ret @@ -157,15 +183,18 @@ func (o *ListVendorSubscriptionsResponse) GetLimit() (ret ListVendorSubscription // GetLimitOk returns a tuple with the Limit field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) GetLimitOk() (ret ListVendorSubscriptionsResponseGetLimitRetType, ok bool) { return getListVendorSubscriptionsResponseGetLimitAttributeTypeOk(o.Limit) } // SetLimit sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ListVendorSubscriptionsResponse) SetLimit(v ListVendorSubscriptionsResponseGetLimitRetType) { setListVendorSubscriptionsResponseGetLimitAttributeType(&o.Limit, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ListVendorSubscriptionsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListVendorSubscriptionsResponseGetCursorAttributeTypeOk(o.Cursor); ok { @@ -180,37 +209,45 @@ func (o ListVendorSubscriptionsResponse) ToMap() (map[string]interface{}, error) return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableListVendorSubscriptionsResponse struct { value *ListVendorSubscriptionsResponse isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableListVendorSubscriptionsResponse) Get() *ListVendorSubscriptionsResponse { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableListVendorSubscriptionsResponse) Set(val *ListVendorSubscriptionsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableListVendorSubscriptionsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableListVendorSubscriptionsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableListVendorSubscriptionsResponse(val *ListVendorSubscriptionsResponse) *NullableListVendorSubscriptionsResponse { return &NullableListVendorSubscriptionsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableListVendorSubscriptionsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableListVendorSubscriptionsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_localized_version.go b/services/stackitmarketplace/model_localized_version.go index 0bc2dfa9ef..2315e35621 100644 --- a/services/stackitmarketplace/model_localized_version.go +++ b/services/stackitmarketplace/model_localized_version.go @@ -22,8 +22,10 @@ var _ MappedNullable = &LocalizedVersion{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersionGetDeAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getLocalizedVersionGetDeAttributeTypeOk(arg LocalizedVersionGetDeAttributeType) (ret LocalizedVersionGetDeRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +33,14 @@ func getLocalizedVersionGetDeAttributeTypeOk(arg LocalizedVersionGetDeAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setLocalizedVersionGetDeAttributeType(arg *LocalizedVersionGetDeAttributeType, val LocalizedVersionGetDeRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersionGetDeArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersionGetDeRetType = string /* @@ -43,8 +48,10 @@ type LocalizedVersionGetDeRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersionGetEnAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getLocalizedVersionGetEnAttributeTypeOk(arg LocalizedVersionGetEnAttributeType) (ret LocalizedVersionGetEnRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +59,18 @@ func getLocalizedVersionGetEnAttributeTypeOk(arg LocalizedVersionGetEnAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setLocalizedVersionGetEnAttributeType(arg *LocalizedVersionGetEnAttributeType, val LocalizedVersionGetEnRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersionGetEnArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersionGetEnRetType = string // LocalizedVersion The localized version (file name) of a file. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type LocalizedVersion struct { // The file version matching the file name (localized). De LocalizedVersionGetDeAttributeType `json:"de,omitempty"` @@ -71,6 +82,7 @@ type LocalizedVersion struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewLocalizedVersion() *LocalizedVersion { this := LocalizedVersion{} return &this @@ -79,12 +91,14 @@ func NewLocalizedVersion() *LocalizedVersion { // NewLocalizedVersionWithDefaults instantiates a new LocalizedVersion object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewLocalizedVersionWithDefaults() *LocalizedVersion { this := LocalizedVersion{} return &this } // GetDe returns the De field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) GetDe() (res LocalizedVersionGetDeRetType) { res, _ = o.GetDeOk() return @@ -92,22 +106,26 @@ func (o *LocalizedVersion) GetDe() (res LocalizedVersionGetDeRetType) { // GetDeOk returns a tuple with the De field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) GetDeOk() (ret LocalizedVersionGetDeRetType, ok bool) { return getLocalizedVersionGetDeAttributeTypeOk(o.De) } // HasDe returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) HasDe() bool { _, ok := o.GetDeOk() return ok } // SetDe gets a reference to the given string and assigns it to the De field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) SetDe(v LocalizedVersionGetDeRetType) { setLocalizedVersionGetDeAttributeType(&o.De, v) } // GetEn returns the En field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) GetEn() (res LocalizedVersionGetEnRetType) { res, _ = o.GetEnOk() return @@ -115,21 +133,25 @@ func (o *LocalizedVersion) GetEn() (res LocalizedVersionGetEnRetType) { // GetEnOk returns a tuple with the En field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) GetEnOk() (ret LocalizedVersionGetEnRetType, ok bool) { return getLocalizedVersionGetEnAttributeTypeOk(o.En) } // HasEn returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) HasEn() bool { _, ok := o.GetEnOk() return ok } // SetEn gets a reference to the given string and assigns it to the En field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *LocalizedVersion) SetEn(v LocalizedVersionGetEnRetType) { setLocalizedVersionGetEnAttributeType(&o.En, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o LocalizedVersion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getLocalizedVersionGetDeAttributeTypeOk(o.De); ok { @@ -141,37 +163,45 @@ func (o LocalizedVersion) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableLocalizedVersion struct { value *LocalizedVersion isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableLocalizedVersion) Get() *LocalizedVersion { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableLocalizedVersion) Set(val *LocalizedVersion) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableLocalizedVersion) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableLocalizedVersion) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableLocalizedVersion(val *LocalizedVersion) *NullableLocalizedVersion { return &NullableLocalizedVersion{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableLocalizedVersion) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableLocalizedVersion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_notice_period.go b/services/stackitmarketplace/model_notice_period.go index 0ab35972f2..f4bd3bfce4 100644 --- a/services/stackitmarketplace/model_notice_period.go +++ b/services/stackitmarketplace/model_notice_period.go @@ -26,6 +26,7 @@ var _ MappedNullable = &NoticePeriod{} // NoticePeriodTypes The notice period type. // value type for enums +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodTypes string // List of Type @@ -42,6 +43,7 @@ var AllowedNoticePeriodTypesEnumValues = []NoticePeriodTypes{ "MONTHS", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NoticePeriodTypes) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -69,6 +71,7 @@ func (v *NoticePeriodTypes) UnmarshalJSON(src []byte) error { // NewNoticePeriodTypesFromValue returns a pointer to a valid NoticePeriodTypes // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNoticePeriodTypesFromValue(v NoticePeriodTypes) (*NoticePeriodTypes, error) { ev := NoticePeriodTypes(v) if ev.IsValid() { @@ -79,6 +82,7 @@ func NewNoticePeriodTypesFromValue(v NoticePeriodTypes) (*NoticePeriodTypes, err } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NoticePeriodTypes) IsValid() bool { for _, existing := range AllowedNoticePeriodTypesEnumValues { if existing == v { @@ -89,50 +93,63 @@ func (v NoticePeriodTypes) IsValid() bool { } // Ptr returns reference to TypeTypes value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NoticePeriodTypes) Ptr() *NoticePeriodTypes { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableNoticePeriodTypes struct { value *NoticePeriodTypes isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableNoticePeriodTypes) Get() *NoticePeriodTypes { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableNoticePeriodTypes) Set(val *NoticePeriodTypes) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableNoticePeriodTypes) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableNoticePeriodTypes) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableNoticePeriodTypes(val *NoticePeriodTypes) *NullableNoticePeriodTypes { return &NullableNoticePeriodTypes{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableNoticePeriodTypes) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableNoticePeriodTypes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodGetTypeAttributeType = *NoticePeriodTypes +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodGetTypeArgType = NoticePeriodTypes +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodGetTypeRetType = NoticePeriodTypes +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getNoticePeriodGetTypeAttributeTypeOk(arg NoticePeriodGetTypeAttributeType) (ret NoticePeriodGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -140,6 +157,7 @@ func getNoticePeriodGetTypeAttributeTypeOk(arg NoticePeriodGetTypeAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setNoticePeriodGetTypeAttributeType(arg *NoticePeriodGetTypeAttributeType, val NoticePeriodGetTypeRetType) { *arg = &val } @@ -149,10 +167,14 @@ func setNoticePeriodGetTypeAttributeType(arg *NoticePeriodGetTypeAttributeType, */ // isInteger +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodGetValueAttributeType = *int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodGetValueArgType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriodGetValueRetType = int64 +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getNoticePeriodGetValueAttributeTypeOk(arg NoticePeriodGetValueAttributeType) (ret NoticePeriodGetValueRetType, ok bool) { if arg == nil { return ret, false @@ -160,11 +182,13 @@ func getNoticePeriodGetValueAttributeTypeOk(arg NoticePeriodGetValueAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setNoticePeriodGetValueAttributeType(arg *NoticePeriodGetValueAttributeType, val NoticePeriodGetValueRetType) { *arg = &val } // NoticePeriod The notice period for a product and plan. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NoticePeriod struct { // The notice period type. Type NoticePeriodGetTypeAttributeType `json:"type,omitempty"` @@ -176,6 +200,7 @@ type NoticePeriod struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNoticePeriod() *NoticePeriod { this := NoticePeriod{} return &this @@ -184,12 +209,14 @@ func NewNoticePeriod() *NoticePeriod { // NewNoticePeriodWithDefaults instantiates a new NoticePeriod object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNoticePeriodWithDefaults() *NoticePeriod { this := NoticePeriod{} return &this } // GetType returns the Type field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) GetType() (res NoticePeriodGetTypeRetType) { res, _ = o.GetTypeOk() return @@ -197,22 +224,26 @@ func (o *NoticePeriod) GetType() (res NoticePeriodGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) GetTypeOk() (ret NoticePeriodGetTypeRetType, ok bool) { return getNoticePeriodGetTypeAttributeTypeOk(o.Type) } // HasType returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) HasType() bool { _, ok := o.GetTypeOk() return ok } // SetType gets a reference to the given string and assigns it to the Type field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) SetType(v NoticePeriodGetTypeRetType) { setNoticePeriodGetTypeAttributeType(&o.Type, v) } // GetValue returns the Value field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) GetValue() (res NoticePeriodGetValueRetType) { res, _ = o.GetValueOk() return @@ -220,21 +251,25 @@ func (o *NoticePeriod) GetValue() (res NoticePeriodGetValueRetType) { // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) GetValueOk() (ret NoticePeriodGetValueRetType, ok bool) { return getNoticePeriodGetValueAttributeTypeOk(o.Value) } // HasValue returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) HasValue() bool { _, ok := o.GetValueOk() return ok } // SetValue gets a reference to the given int64 and assigns it to the Value field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *NoticePeriod) SetValue(v NoticePeriodGetValueRetType) { setNoticePeriodGetValueAttributeType(&o.Value, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o NoticePeriod) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getNoticePeriodGetTypeAttributeTypeOk(o.Type); ok { @@ -246,37 +281,45 @@ func (o NoticePeriod) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableNoticePeriod struct { value *NoticePeriod isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableNoticePeriod) Get() *NoticePeriod { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableNoticePeriod) Set(val *NoticePeriod) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableNoticePeriod) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableNoticePeriod) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableNoticePeriod(val *NoticePeriod) *NullableNoticePeriod { return &NullableNoticePeriod{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableNoticePeriod) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableNoticePeriod) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_offer_type.go b/services/stackitmarketplace/model_offer_type.go index 4cce94f567..5bfb832e75 100644 --- a/services/stackitmarketplace/model_offer_type.go +++ b/services/stackitmarketplace/model_offer_type.go @@ -16,20 +16,25 @@ import ( ) // OfferType The offer type of a product reflecting the business model. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type OfferType string // List of offerType const ( - OFFERTYPE_LISTING OfferType = "OFFER_LISTING" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + OFFERTYPE_LISTING OfferType = "OFFER_LISTING" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead OFFERTYPE_RESELLING OfferType = "OFFER_RESELLING" ) // All allowed values of OfferType enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedOfferTypeEnumValues = []OfferType{ "OFFER_LISTING", "OFFER_RESELLING", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *OfferType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -54,6 +59,7 @@ func (v *OfferType) UnmarshalJSON(src []byte) error { // NewOfferTypeFromValue returns a pointer to a valid OfferType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewOfferTypeFromValue(v string) (*OfferType, error) { ev := OfferType(v) if ev.IsValid() { @@ -64,6 +70,7 @@ func NewOfferTypeFromValue(v string) (*OfferType, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v OfferType) IsValid() bool { for _, existing := range AllowedOfferTypeEnumValues { if existing == v { @@ -74,41 +81,50 @@ func (v OfferType) IsValid() bool { } // Ptr returns reference to offerType value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v OfferType) Ptr() *OfferType { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableOfferType struct { value *OfferType isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableOfferType) Get() *OfferType { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableOfferType) Set(val *OfferType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableOfferType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableOfferType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableOfferType(val *OfferType) *NullableOfferType { return &NullableOfferType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableOfferType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableOfferType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_price_type.go b/services/stackitmarketplace/model_price_type.go index a212268e9f..c55c871db5 100644 --- a/services/stackitmarketplace/model_price_type.go +++ b/services/stackitmarketplace/model_price_type.go @@ -16,18 +16,25 @@ import ( ) // PriceType The product's price type. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type PriceType string // List of priceType const ( - PRICETYPE_CONTRACT PriceType = "CONTRACT" - PRICETYPE_FREE PriceType = "FREE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + PRICETYPE_CONTRACT PriceType = "CONTRACT" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + PRICETYPE_FREE PriceType = "FREE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead PRICETYPE_FREE_TRIAL PriceType = "FREE_TRIAL" - PRICETYPE_BYOL PriceType = "BYOL" - PRICETYPE_PAYG PriceType = "PAYG" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + PRICETYPE_BYOL PriceType = "BYOL" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + PRICETYPE_PAYG PriceType = "PAYG" ) // All allowed values of PriceType enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedPriceTypeEnumValues = []PriceType{ "CONTRACT", "FREE", @@ -36,6 +43,7 @@ var AllowedPriceTypeEnumValues = []PriceType{ "PAYG", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *PriceType) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -60,6 +68,7 @@ func (v *PriceType) UnmarshalJSON(src []byte) error { // NewPriceTypeFromValue returns a pointer to a valid PriceType // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewPriceTypeFromValue(v string) (*PriceType, error) { ev := PriceType(v) if ev.IsValid() { @@ -70,6 +79,7 @@ func NewPriceTypeFromValue(v string) (*PriceType, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v PriceType) IsValid() bool { for _, existing := range AllowedPriceTypeEnumValues { if existing == v { @@ -80,41 +90,50 @@ func (v PriceType) IsValid() bool { } // Ptr returns reference to priceType value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v PriceType) Ptr() *PriceType { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullablePriceType struct { value *PriceType isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullablePriceType) Get() *PriceType { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullablePriceType) Set(val *PriceType) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullablePriceType) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullablePriceType) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullablePriceType(val *PriceType) *NullablePriceType { return &NullablePriceType{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullablePriceType) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullablePriceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_pricing_option_unit.go b/services/stackitmarketplace/model_pricing_option_unit.go index 21c482db1d..0602dc9147 100644 --- a/services/stackitmarketplace/model_pricing_option_unit.go +++ b/services/stackitmarketplace/model_pricing_option_unit.go @@ -16,18 +16,22 @@ import ( ) // PricingOptionUnit The interval to which the rate applies. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type PricingOptionUnit string // List of pricingOptionUnit const ( + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead PRICINGOPTIONUNIT_MONTH PricingOptionUnit = "month" ) // All allowed values of PricingOptionUnit enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedPricingOptionUnitEnumValues = []PricingOptionUnit{ "month", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *PricingOptionUnit) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -52,6 +56,7 @@ func (v *PricingOptionUnit) UnmarshalJSON(src []byte) error { // NewPricingOptionUnitFromValue returns a pointer to a valid PricingOptionUnit // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewPricingOptionUnitFromValue(v string) (*PricingOptionUnit, error) { ev := PricingOptionUnit(v) if ev.IsValid() { @@ -62,6 +67,7 @@ func NewPricingOptionUnitFromValue(v string) (*PricingOptionUnit, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v PricingOptionUnit) IsValid() bool { for _, existing := range AllowedPricingOptionUnitEnumValues { if existing == v { @@ -72,41 +78,50 @@ func (v PricingOptionUnit) IsValid() bool { } // Ptr returns reference to pricingOptionUnit value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v PricingOptionUnit) Ptr() *PricingOptionUnit { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullablePricingOptionUnit struct { value *PricingOptionUnit isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullablePricingOptionUnit) Get() *PricingOptionUnit { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullablePricingOptionUnit) Set(val *PricingOptionUnit) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullablePricingOptionUnit) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullablePricingOptionUnit) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullablePricingOptionUnit(val *PricingOptionUnit) *NullablePricingOptionUnit { return &NullablePricingOptionUnit{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullablePricingOptionUnit) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullablePricingOptionUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_product_lifecycle_state.go b/services/stackitmarketplace/model_product_lifecycle_state.go index 8d67cebea4..151bb0d35a 100644 --- a/services/stackitmarketplace/model_product_lifecycle_state.go +++ b/services/stackitmarketplace/model_product_lifecycle_state.go @@ -16,20 +16,25 @@ import ( ) // ProductLifecycleState The lifecycle state of the product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ProductLifecycleState string // List of productLifecycleState const ( - PRODUCTLIFECYCLESTATE_LIVE ProductLifecycleState = "PRODUCT_LIVE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + PRODUCTLIFECYCLESTATE_LIVE ProductLifecycleState = "PRODUCT_LIVE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead PRODUCTLIFECYCLESTATE_PREVIEW ProductLifecycleState = "PRODUCT_PREVIEW" ) // All allowed values of ProductLifecycleState enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedProductLifecycleStateEnumValues = []ProductLifecycleState{ "PRODUCT_LIVE", "PRODUCT_PREVIEW", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *ProductLifecycleState) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -54,6 +59,7 @@ func (v *ProductLifecycleState) UnmarshalJSON(src []byte) error { // NewProductLifecycleStateFromValue returns a pointer to a valid ProductLifecycleState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewProductLifecycleStateFromValue(v string) (*ProductLifecycleState, error) { ev := ProductLifecycleState(v) if ev.IsValid() { @@ -64,6 +70,7 @@ func NewProductLifecycleStateFromValue(v string) (*ProductLifecycleState, error) } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v ProductLifecycleState) IsValid() bool { for _, existing := range AllowedProductLifecycleStateEnumValues { if existing == v { @@ -74,41 +81,50 @@ func (v ProductLifecycleState) IsValid() bool { } // Ptr returns reference to productLifecycleState value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v ProductLifecycleState) Ptr() *ProductLifecycleState { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableProductLifecycleState struct { value *ProductLifecycleState isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableProductLifecycleState) Get() *ProductLifecycleState { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableProductLifecycleState) Set(val *ProductLifecycleState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableProductLifecycleState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableProductLifecycleState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableProductLifecycleState(val *ProductLifecycleState) *NullableProductLifecycleState { return &NullableProductLifecycleState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableProductLifecycleState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableProductLifecycleState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_register_testing.go b/services/stackitmarketplace/model_register_testing.go index 58953e1d06..ca5f80fed3 100644 --- a/services/stackitmarketplace/model_register_testing.go +++ b/services/stackitmarketplace/model_register_testing.go @@ -22,10 +22,14 @@ var _ MappedNullable = &RegisterTesting{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTestingGetRegisterTestingAttributeType = *InquiryRegisterTesting +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTestingGetRegisterTestingArgType = InquiryRegisterTesting +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTestingGetRegisterTestingRetType = InquiryRegisterTesting +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getRegisterTestingGetRegisterTestingAttributeTypeOk(arg RegisterTestingGetRegisterTestingAttributeType) (ret RegisterTestingGetRegisterTestingRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getRegisterTestingGetRegisterTestingAttributeTypeOk(arg RegisterTestingGetR return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setRegisterTestingGetRegisterTestingAttributeType(arg *RegisterTestingGetRegisterTestingAttributeType, val RegisterTestingGetRegisterTestingRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setRegisterTestingGetRegisterTestingAttributeType(arg *RegisterTestingGetRe */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTestingGetTypeAttributeType = *InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTestingGetTypeArgType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTestingGetTypeRetType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getRegisterTestingGetTypeAttributeTypeOk(arg RegisterTestingGetTypeAttributeType) (ret RegisterTestingGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +62,13 @@ func getRegisterTestingGetTypeAttributeTypeOk(arg RegisterTestingGetTypeAttribut return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setRegisterTestingGetTypeAttributeType(arg *RegisterTestingGetTypeAttributeType, val RegisterTestingGetTypeRetType) { *arg = &val } // RegisterTesting Register for testing. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RegisterTesting struct { // REQUIRED RegisterTesting RegisterTestingGetRegisterTestingAttributeType `json:"registerTesting" required:"true"` @@ -65,12 +76,14 @@ type RegisterTesting struct { Type RegisterTestingGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _RegisterTesting RegisterTesting // NewRegisterTesting instantiates a new RegisterTesting object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewRegisterTesting(registerTesting RegisterTestingGetRegisterTestingArgType, types RegisterTestingGetTypeArgType) *RegisterTesting { this := RegisterTesting{} setRegisterTestingGetRegisterTestingAttributeType(&this.RegisterTesting, registerTesting) @@ -81,12 +94,14 @@ func NewRegisterTesting(registerTesting RegisterTestingGetRegisterTestingArgType // NewRegisterTestingWithDefaults instantiates a new RegisterTesting object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewRegisterTestingWithDefaults() *RegisterTesting { this := RegisterTesting{} return &this } // GetRegisterTesting returns the RegisterTesting field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RegisterTesting) GetRegisterTesting() (ret RegisterTestingGetRegisterTestingRetType) { ret, _ = o.GetRegisterTestingOk() return ret @@ -94,16 +109,19 @@ func (o *RegisterTesting) GetRegisterTesting() (ret RegisterTestingGetRegisterTe // GetRegisterTestingOk returns a tuple with the RegisterTesting field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RegisterTesting) GetRegisterTestingOk() (ret RegisterTestingGetRegisterTestingRetType, ok bool) { return getRegisterTestingGetRegisterTestingAttributeTypeOk(o.RegisterTesting) } // SetRegisterTesting sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RegisterTesting) SetRegisterTesting(v RegisterTestingGetRegisterTestingRetType) { setRegisterTestingGetRegisterTestingAttributeType(&o.RegisterTesting, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RegisterTesting) GetType() (ret RegisterTestingGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -111,15 +129,18 @@ func (o *RegisterTesting) GetType() (ret RegisterTestingGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RegisterTesting) GetTypeOk() (ret RegisterTestingGetTypeRetType, ok bool) { return getRegisterTestingGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RegisterTesting) SetType(v RegisterTestingGetTypeRetType) { setRegisterTestingGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o RegisterTesting) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRegisterTestingGetRegisterTestingAttributeTypeOk(o.RegisterTesting); ok { @@ -131,37 +152,45 @@ func (o RegisterTesting) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableRegisterTesting struct { value *RegisterTesting isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableRegisterTesting) Get() *RegisterTesting { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableRegisterTesting) Set(val *RegisterTesting) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableRegisterTesting) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableRegisterTesting) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableRegisterTesting(val *RegisterTesting) *NullableRegisterTesting { return &NullableRegisterTesting{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableRegisterTesting) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableRegisterTesting) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_request_private_plan.go b/services/stackitmarketplace/model_request_private_plan.go index 6e16df3469..5210645953 100644 --- a/services/stackitmarketplace/model_request_private_plan.go +++ b/services/stackitmarketplace/model_request_private_plan.go @@ -22,10 +22,14 @@ var _ MappedNullable = &RequestPrivatePlan{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlanGetRequestPrivatePlanAttributeType = *InquiryRequestPrivatePlan +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlanGetRequestPrivatePlanArgType = InquiryRequestPrivatePlan +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlanGetRequestPrivatePlanRetType = InquiryRequestPrivatePlan +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getRequestPrivatePlanGetRequestPrivatePlanAttributeTypeOk(arg RequestPrivatePlanGetRequestPrivatePlanAttributeType) (ret RequestPrivatePlanGetRequestPrivatePlanRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getRequestPrivatePlanGetRequestPrivatePlanAttributeTypeOk(arg RequestPrivat return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setRequestPrivatePlanGetRequestPrivatePlanAttributeType(arg *RequestPrivatePlanGetRequestPrivatePlanAttributeType, val RequestPrivatePlanGetRequestPrivatePlanRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setRequestPrivatePlanGetRequestPrivatePlanAttributeType(arg *RequestPrivate */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlanGetTypeAttributeType = *InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlanGetTypeArgType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlanGetTypeRetType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getRequestPrivatePlanGetTypeAttributeTypeOk(arg RequestPrivatePlanGetTypeAttributeType) (ret RequestPrivatePlanGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +62,13 @@ func getRequestPrivatePlanGetTypeAttributeTypeOk(arg RequestPrivatePlanGetTypeAt return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setRequestPrivatePlanGetTypeAttributeType(arg *RequestPrivatePlanGetTypeAttributeType, val RequestPrivatePlanGetTypeRetType) { *arg = &val } // RequestPrivatePlan Request a private plan. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type RequestPrivatePlan struct { // REQUIRED RequestPrivatePlan RequestPrivatePlanGetRequestPrivatePlanAttributeType `json:"requestPrivatePlan" required:"true"` @@ -65,12 +76,14 @@ type RequestPrivatePlan struct { Type RequestPrivatePlanGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _RequestPrivatePlan RequestPrivatePlan // NewRequestPrivatePlan instantiates a new RequestPrivatePlan object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewRequestPrivatePlan(requestPrivatePlan RequestPrivatePlanGetRequestPrivatePlanArgType, types RequestPrivatePlanGetTypeArgType) *RequestPrivatePlan { this := RequestPrivatePlan{} setRequestPrivatePlanGetRequestPrivatePlanAttributeType(&this.RequestPrivatePlan, requestPrivatePlan) @@ -81,12 +94,14 @@ func NewRequestPrivatePlan(requestPrivatePlan RequestPrivatePlanGetRequestPrivat // NewRequestPrivatePlanWithDefaults instantiates a new RequestPrivatePlan object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewRequestPrivatePlanWithDefaults() *RequestPrivatePlan { this := RequestPrivatePlan{} return &this } // GetRequestPrivatePlan returns the RequestPrivatePlan field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RequestPrivatePlan) GetRequestPrivatePlan() (ret RequestPrivatePlanGetRequestPrivatePlanRetType) { ret, _ = o.GetRequestPrivatePlanOk() return ret @@ -94,16 +109,19 @@ func (o *RequestPrivatePlan) GetRequestPrivatePlan() (ret RequestPrivatePlanGetR // GetRequestPrivatePlanOk returns a tuple with the RequestPrivatePlan field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RequestPrivatePlan) GetRequestPrivatePlanOk() (ret RequestPrivatePlanGetRequestPrivatePlanRetType, ok bool) { return getRequestPrivatePlanGetRequestPrivatePlanAttributeTypeOk(o.RequestPrivatePlan) } // SetRequestPrivatePlan sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RequestPrivatePlan) SetRequestPrivatePlan(v RequestPrivatePlanGetRequestPrivatePlanRetType) { setRequestPrivatePlanGetRequestPrivatePlanAttributeType(&o.RequestPrivatePlan, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RequestPrivatePlan) GetType() (ret RequestPrivatePlanGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -111,15 +129,18 @@ func (o *RequestPrivatePlan) GetType() (ret RequestPrivatePlanGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RequestPrivatePlan) GetTypeOk() (ret RequestPrivatePlanGetTypeRetType, ok bool) { return getRequestPrivatePlanGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *RequestPrivatePlan) SetType(v RequestPrivatePlanGetTypeRetType) { setRequestPrivatePlanGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o RequestPrivatePlan) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRequestPrivatePlanGetRequestPrivatePlanAttributeTypeOk(o.RequestPrivatePlan); ok { @@ -131,37 +152,45 @@ func (o RequestPrivatePlan) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableRequestPrivatePlan struct { value *RequestPrivatePlan isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableRequestPrivatePlan) Get() *RequestPrivatePlan { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableRequestPrivatePlan) Set(val *RequestPrivatePlan) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableRequestPrivatePlan) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableRequestPrivatePlan) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableRequestPrivatePlan(val *RequestPrivatePlan) *NullableRequestPrivatePlan { return &NullableRequestPrivatePlan{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableRequestPrivatePlan) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableRequestPrivatePlan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_resolve_customer_payload.go b/services/stackitmarketplace/model_resolve_customer_payload.go index 2ad8bf5225..045b85ca45 100644 --- a/services/stackitmarketplace/model_resolve_customer_payload.go +++ b/services/stackitmarketplace/model_resolve_customer_payload.go @@ -22,8 +22,10 @@ var _ MappedNullable = &ResolveCustomerPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ResolveCustomerPayloadGetTokenAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getResolveCustomerPayloadGetTokenAttributeTypeOk(arg ResolveCustomerPayloadGetTokenAttributeType) (ret ResolveCustomerPayloadGetTokenRetType, ok bool) { if arg == nil { return ret, false @@ -31,26 +33,32 @@ func getResolveCustomerPayloadGetTokenAttributeTypeOk(arg ResolveCustomerPayload return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setResolveCustomerPayloadGetTokenAttributeType(arg *ResolveCustomerPayloadGetTokenAttributeType, val ResolveCustomerPayloadGetTokenRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ResolveCustomerPayloadGetTokenArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ResolveCustomerPayloadGetTokenRetType = string // ResolveCustomerPayload struct for ResolveCustomerPayload +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ResolveCustomerPayload struct { // Opaque token exchangeable for subscription details. // REQUIRED Token ResolveCustomerPayloadGetTokenAttributeType `json:"token" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _ResolveCustomerPayload ResolveCustomerPayload // NewResolveCustomerPayload instantiates a new ResolveCustomerPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewResolveCustomerPayload(token ResolveCustomerPayloadGetTokenArgType) *ResolveCustomerPayload { this := ResolveCustomerPayload{} setResolveCustomerPayloadGetTokenAttributeType(&this.Token, token) @@ -60,12 +68,14 @@ func NewResolveCustomerPayload(token ResolveCustomerPayloadGetTokenArgType) *Res // NewResolveCustomerPayloadWithDefaults instantiates a new ResolveCustomerPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewResolveCustomerPayloadWithDefaults() *ResolveCustomerPayload { this := ResolveCustomerPayload{} return &this } // GetToken returns the Token field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ResolveCustomerPayload) GetToken() (ret ResolveCustomerPayloadGetTokenRetType) { ret, _ = o.GetTokenOk() return ret @@ -73,15 +83,18 @@ func (o *ResolveCustomerPayload) GetToken() (ret ResolveCustomerPayloadGetTokenR // GetTokenOk returns a tuple with the Token field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ResolveCustomerPayload) GetTokenOk() (ret ResolveCustomerPayloadGetTokenRetType, ok bool) { return getResolveCustomerPayloadGetTokenAttributeTypeOk(o.Token) } // SetToken sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ResolveCustomerPayload) SetToken(v ResolveCustomerPayloadGetTokenRetType) { setResolveCustomerPayloadGetTokenAttributeType(&o.Token, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ResolveCustomerPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getResolveCustomerPayloadGetTokenAttributeTypeOk(o.Token); ok { @@ -90,37 +103,45 @@ func (o ResolveCustomerPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableResolveCustomerPayload struct { value *ResolveCustomerPayload isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableResolveCustomerPayload) Get() *ResolveCustomerPayload { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableResolveCustomerPayload) Set(val *ResolveCustomerPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableResolveCustomerPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableResolveCustomerPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableResolveCustomerPayload(val *ResolveCustomerPayload) *NullableResolveCustomerPayload { return &NullableResolveCustomerPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableResolveCustomerPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableResolveCustomerPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_scope.go b/services/stackitmarketplace/model_scope.go index 95aaab158d..7066dca721 100644 --- a/services/stackitmarketplace/model_scope.go +++ b/services/stackitmarketplace/model_scope.go @@ -16,22 +16,28 @@ import ( ) // Scope The (visibility) scope. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type Scope string // List of scope const ( - SCOPE_PUBLIC Scope = "PUBLIC" - SCOPE_AUTHENTICATED Scope = "AUTHENTICATED" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SCOPE_PUBLIC Scope = "PUBLIC" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SCOPE_AUTHENTICATED Scope = "AUTHENTICATED" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead SCOPE_PRIVATE_PROJECT Scope = "PRIVATE_PROJECT" ) // All allowed values of Scope enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedScopeEnumValues = []Scope{ "PUBLIC", "AUTHENTICATED", "PRIVATE_PROJECT", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *Scope) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -56,6 +62,7 @@ func (v *Scope) UnmarshalJSON(src []byte) error { // NewScopeFromValue returns a pointer to a valid Scope // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewScopeFromValue(v string) (*Scope, error) { ev := Scope(v) if ev.IsValid() { @@ -66,6 +73,7 @@ func NewScopeFromValue(v string) (*Scope, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v Scope) IsValid() bool { for _, existing := range AllowedScopeEnumValues { if existing == v { @@ -76,41 +84,50 @@ func (v Scope) IsValid() bool { } // Ptr returns reference to scope value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v Scope) Ptr() *Scope { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableScope struct { value *Scope isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableScope) Get() *Scope { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableScope) Set(val *Scope) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableScope) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableScope) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableScope(val *Scope) *NullableScope { return &NullableScope{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableScope) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableScope) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_service_certificate.go b/services/stackitmarketplace/model_service_certificate.go index 51d499081b..c3af12ad09 100644 --- a/services/stackitmarketplace/model_service_certificate.go +++ b/services/stackitmarketplace/model_service_certificate.go @@ -22,10 +22,14 @@ var _ MappedNullable = &ServiceCertificate{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ServiceCertificateGetVersionAttributeType = *LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ServiceCertificateGetVersionArgType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ServiceCertificateGetVersionRetType = LocalizedVersion +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getServiceCertificateGetVersionAttributeTypeOk(arg ServiceCertificateGetVersionAttributeType) (ret ServiceCertificateGetVersionRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +37,13 @@ func getServiceCertificateGetVersionAttributeTypeOk(arg ServiceCertificateGetVer return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setServiceCertificateGetVersionAttributeType(arg *ServiceCertificateGetVersionAttributeType, val ServiceCertificateGetVersionRetType) { *arg = &val } // ServiceCertificate The related service certificate of the (subscription) product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type ServiceCertificate struct { Version ServiceCertificateGetVersionAttributeType `json:"version,omitempty"` } @@ -46,6 +52,7 @@ type ServiceCertificate struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewServiceCertificate() *ServiceCertificate { this := ServiceCertificate{} return &this @@ -54,12 +61,14 @@ func NewServiceCertificate() *ServiceCertificate { // NewServiceCertificateWithDefaults instantiates a new ServiceCertificate object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewServiceCertificateWithDefaults() *ServiceCertificate { this := ServiceCertificate{} return &this } // GetVersion returns the Version field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ServiceCertificate) GetVersion() (res ServiceCertificateGetVersionRetType) { res, _ = o.GetVersionOk() return @@ -67,21 +76,25 @@ func (o *ServiceCertificate) GetVersion() (res ServiceCertificateGetVersionRetTy // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ServiceCertificate) GetVersionOk() (ret ServiceCertificateGetVersionRetType, ok bool) { return getServiceCertificateGetVersionAttributeTypeOk(o.Version) } // HasVersion returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ServiceCertificate) HasVersion() bool { _, ok := o.GetVersionOk() return ok } // SetVersion gets a reference to the given LocalizedVersion and assigns it to the Version field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *ServiceCertificate) SetVersion(v ServiceCertificateGetVersionRetType) { setServiceCertificateGetVersionAttributeType(&o.Version, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o ServiceCertificate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getServiceCertificateGetVersionAttributeTypeOk(o.Version); ok { @@ -90,37 +103,45 @@ func (o ServiceCertificate) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableServiceCertificate struct { value *ServiceCertificate isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableServiceCertificate) Get() *ServiceCertificate { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableServiceCertificate) Set(val *ServiceCertificate) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableServiceCertificate) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableServiceCertificate) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableServiceCertificate(val *ServiceCertificate) *NullableServiceCertificate { return &NullableServiceCertificate{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableServiceCertificate) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableServiceCertificate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_subscription_id.go b/services/stackitmarketplace/model_subscription_id.go index aa7a92652f..2f43c37f59 100644 --- a/services/stackitmarketplace/model_subscription_id.go +++ b/services/stackitmarketplace/model_subscription_id.go @@ -18,6 +18,7 @@ import ( var _ MappedNullable = &SubscriptionId{} // SubscriptionId The subscription ID. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionId struct { } @@ -25,6 +26,7 @@ type SubscriptionId struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSubscriptionId() *SubscriptionId { this := SubscriptionId{} return &this @@ -33,47 +35,57 @@ func NewSubscriptionId() *SubscriptionId { // NewSubscriptionIdWithDefaults instantiates a new SubscriptionId object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSubscriptionIdWithDefaults() *SubscriptionId { this := SubscriptionId{} return &this } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o SubscriptionId) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableSubscriptionId struct { value *SubscriptionId isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionId) Get() *SubscriptionId { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionId) Set(val *SubscriptionId) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionId) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionId) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableSubscriptionId(val *SubscriptionId) *NullableSubscriptionId { return &NullableSubscriptionId{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionId) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionId) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_subscription_lifecycle_state.go b/services/stackitmarketplace/model_subscription_lifecycle_state.go index bb76b26436..588d4e0d55 100644 --- a/services/stackitmarketplace/model_subscription_lifecycle_state.go +++ b/services/stackitmarketplace/model_subscription_lifecycle_state.go @@ -16,19 +16,27 @@ import ( ) // SubscriptionLifecycleState Lifecycle state of the subscription. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionLifecycleState string // List of subscriptionLifecycleState const ( - SUBSCRIPTIONLIFECYCLESTATE_PENDING SubscriptionLifecycleState = "SUBSCRIPTION_PENDING" - SUBSCRIPTIONLIFECYCLESTATE_ACTIVE SubscriptionLifecycleState = "SUBSCRIPTION_ACTIVE" - SUBSCRIPTIONLIFECYCLESTATE_INACTIVE SubscriptionLifecycleState = "SUBSCRIPTION_INACTIVE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SUBSCRIPTIONLIFECYCLESTATE_PENDING SubscriptionLifecycleState = "SUBSCRIPTION_PENDING" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SUBSCRIPTIONLIFECYCLESTATE_ACTIVE SubscriptionLifecycleState = "SUBSCRIPTION_ACTIVE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SUBSCRIPTIONLIFECYCLESTATE_INACTIVE SubscriptionLifecycleState = "SUBSCRIPTION_INACTIVE" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead SUBSCRIPTIONLIFECYCLESTATE_CANCELLING SubscriptionLifecycleState = "SUBSCRIPTION_CANCELLING" - SUBSCRIPTIONLIFECYCLESTATE_CANCELLED SubscriptionLifecycleState = "SUBSCRIPTION_CANCELLED" - SUBSCRIPTIONLIFECYCLESTATE_REJECTED SubscriptionLifecycleState = "SUBSCRIPTION_REJECTED" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SUBSCRIPTIONLIFECYCLESTATE_CANCELLED SubscriptionLifecycleState = "SUBSCRIPTION_CANCELLED" + // Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead + SUBSCRIPTIONLIFECYCLESTATE_REJECTED SubscriptionLifecycleState = "SUBSCRIPTION_REJECTED" ) // All allowed values of SubscriptionLifecycleState enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead var AllowedSubscriptionLifecycleStateEnumValues = []SubscriptionLifecycleState{ "SUBSCRIPTION_PENDING", "SUBSCRIPTION_ACTIVE", @@ -38,6 +46,7 @@ var AllowedSubscriptionLifecycleStateEnumValues = []SubscriptionLifecycleState{ "SUBSCRIPTION_REJECTED", } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *SubscriptionLifecycleState) UnmarshalJSON(src []byte) error { var value string err := json.Unmarshal(src, &value) @@ -62,6 +71,7 @@ func (v *SubscriptionLifecycleState) UnmarshalJSON(src []byte) error { // NewSubscriptionLifecycleStateFromValue returns a pointer to a valid SubscriptionLifecycleState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSubscriptionLifecycleStateFromValue(v string) (*SubscriptionLifecycleState, error) { ev := SubscriptionLifecycleState(v) if ev.IsValid() { @@ -72,6 +82,7 @@ func NewSubscriptionLifecycleStateFromValue(v string) (*SubscriptionLifecycleSta } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v SubscriptionLifecycleState) IsValid() bool { for _, existing := range AllowedSubscriptionLifecycleStateEnumValues { if existing == v { @@ -82,41 +93,50 @@ func (v SubscriptionLifecycleState) IsValid() bool { } // Ptr returns reference to subscriptionLifecycleState value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v SubscriptionLifecycleState) Ptr() *SubscriptionLifecycleState { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableSubscriptionLifecycleState struct { value *SubscriptionLifecycleState isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionLifecycleState) Get() *SubscriptionLifecycleState { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionLifecycleState) Set(val *SubscriptionLifecycleState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionLifecycleState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionLifecycleState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableSubscriptionLifecycleState(val *SubscriptionLifecycleState) *NullableSubscriptionLifecycleState { return &NullableSubscriptionLifecycleState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionLifecycleState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionLifecycleState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_subscription_product.go b/services/stackitmarketplace/model_subscription_product.go index 09983caf26..c925bf431a 100644 --- a/services/stackitmarketplace/model_subscription_product.go +++ b/services/stackitmarketplace/model_subscription_product.go @@ -22,10 +22,14 @@ var _ MappedNullable = &SubscriptionProduct{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetAssetsAttributeType = *Assets +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetAssetsArgType = Assets +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetAssetsRetType = Assets +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetAssetsAttributeTypeOk(arg SubscriptionProductGetAssetsAttributeType) (ret SubscriptionProductGetAssetsRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getSubscriptionProductGetAssetsAttributeTypeOk(arg SubscriptionProductGetAs return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetAssetsAttributeType(arg *SubscriptionProductGetAssetsAttributeType, val SubscriptionProductGetAssetsRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setSubscriptionProductGetAssetsAttributeType(arg *SubscriptionProductGetAss */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetDeliveryMethodAttributeType = *DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetDeliveryMethodArgType = DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetDeliveryMethodRetType = DeliveryMethod +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetDeliveryMethodAttributeTypeOk(arg SubscriptionProductGetDeliveryMethodAttributeType) (ret SubscriptionProductGetDeliveryMethodRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +62,7 @@ func getSubscriptionProductGetDeliveryMethodAttributeTypeOk(arg SubscriptionProd return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetDeliveryMethodAttributeType(arg *SubscriptionProductGetDeliveryMethodAttributeType, val SubscriptionProductGetDeliveryMethodRetType) { *arg = &val } @@ -62,10 +72,14 @@ func setSubscriptionProductGetDeliveryMethodAttributeType(arg *SubscriptionProdu */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetLifecycleStateAttributeType = *ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetLifecycleStateArgType = ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetLifecycleStateRetType = ProductLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetLifecycleStateAttributeTypeOk(arg SubscriptionProductGetLifecycleStateAttributeType) (ret SubscriptionProductGetLifecycleStateRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +87,7 @@ func getSubscriptionProductGetLifecycleStateAttributeTypeOk(arg SubscriptionProd return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetLifecycleStateAttributeType(arg *SubscriptionProductGetLifecycleStateAttributeType, val SubscriptionProductGetLifecycleStateRetType) { *arg = &val } @@ -82,8 +97,10 @@ func setSubscriptionProductGetLifecycleStateAttributeType(arg *SubscriptionProdu */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetPlanIdAttributeTypeOk(arg SubscriptionProductGetPlanIdAttributeType) (ret SubscriptionProductGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -91,11 +108,14 @@ func getSubscriptionProductGetPlanIdAttributeTypeOk(arg SubscriptionProductGetPl return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetPlanIdAttributeType(arg *SubscriptionProductGetPlanIdAttributeType, val SubscriptionProductGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPlanIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPlanIdRetType = string /* @@ -103,10 +123,14 @@ type SubscriptionProductGetPlanIdRetType = string */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPriceTypeAttributeType = *PriceType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPriceTypeArgType = PriceType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPriceTypeRetType = PriceType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetPriceTypeAttributeTypeOk(arg SubscriptionProductGetPriceTypeAttributeType) (ret SubscriptionProductGetPriceTypeRetType, ok bool) { if arg == nil { return ret, false @@ -114,6 +138,7 @@ func getSubscriptionProductGetPriceTypeAttributeTypeOk(arg SubscriptionProductGe return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetPriceTypeAttributeType(arg *SubscriptionProductGetPriceTypeAttributeType, val SubscriptionProductGetPriceTypeRetType) { *arg = &val } @@ -123,8 +148,10 @@ func setSubscriptionProductGetPriceTypeAttributeType(arg *SubscriptionProductGet */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPricingPlanAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetPricingPlanAttributeTypeOk(arg SubscriptionProductGetPricingPlanAttributeType) (ret SubscriptionProductGetPricingPlanRetType, ok bool) { if arg == nil { return ret, false @@ -132,11 +159,14 @@ func getSubscriptionProductGetPricingPlanAttributeTypeOk(arg SubscriptionProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetPricingPlanAttributeType(arg *SubscriptionProductGetPricingPlanAttributeType, val SubscriptionProductGetPricingPlanRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPricingPlanArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetPricingPlanRetType = string /* @@ -144,8 +174,10 @@ type SubscriptionProductGetPricingPlanRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetProductIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetProductIdAttributeTypeOk(arg SubscriptionProductGetProductIdAttributeType) (ret SubscriptionProductGetProductIdRetType, ok bool) { if arg == nil { return ret, false @@ -153,11 +185,14 @@ func getSubscriptionProductGetProductIdAttributeTypeOk(arg SubscriptionProductGe return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetProductIdAttributeType(arg *SubscriptionProductGetProductIdAttributeType, val SubscriptionProductGetProductIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetProductIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetProductIdRetType = string /* @@ -165,8 +200,10 @@ type SubscriptionProductGetProductIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetProductNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetProductNameAttributeTypeOk(arg SubscriptionProductGetProductNameAttributeType) (ret SubscriptionProductGetProductNameRetType, ok bool) { if arg == nil { return ret, false @@ -174,11 +211,14 @@ func getSubscriptionProductGetProductNameAttributeTypeOk(arg SubscriptionProduct return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetProductNameAttributeType(arg *SubscriptionProductGetProductNameAttributeType, val SubscriptionProductGetProductNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetProductNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetProductNameRetType = string /* @@ -186,8 +226,10 @@ type SubscriptionProductGetProductNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorNameAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetVendorNameAttributeTypeOk(arg SubscriptionProductGetVendorNameAttributeType) (ret SubscriptionProductGetVendorNameRetType, ok bool) { if arg == nil { return ret, false @@ -195,11 +237,14 @@ func getSubscriptionProductGetVendorNameAttributeTypeOk(arg SubscriptionProductG return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetVendorNameAttributeType(arg *SubscriptionProductGetVendorNameAttributeType, val SubscriptionProductGetVendorNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorNameArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorNameRetType = string /* @@ -207,8 +252,10 @@ type SubscriptionProductGetVendorNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetVendorPlanIdAttributeTypeOk(arg SubscriptionProductGetVendorPlanIdAttributeType) (ret SubscriptionProductGetVendorPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -216,11 +263,14 @@ func getSubscriptionProductGetVendorPlanIdAttributeTypeOk(arg SubscriptionProduc return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetVendorPlanIdAttributeType(arg *SubscriptionProductGetVendorPlanIdAttributeType, val SubscriptionProductGetVendorPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorPlanIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorPlanIdRetType = string /* @@ -228,8 +278,10 @@ type SubscriptionProductGetVendorPlanIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorProductIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetVendorProductIdAttributeTypeOk(arg SubscriptionProductGetVendorProductIdAttributeType) (ret SubscriptionProductGetVendorProductIdRetType, ok bool) { if arg == nil { return ret, false @@ -237,11 +289,14 @@ func getSubscriptionProductGetVendorProductIdAttributeTypeOk(arg SubscriptionPro return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetVendorProductIdAttributeType(arg *SubscriptionProductGetVendorProductIdAttributeType, val SubscriptionProductGetVendorProductIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorProductIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorProductIdRetType = string /* @@ -249,8 +304,10 @@ type SubscriptionProductGetVendorProductIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorWebsiteUrlAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSubscriptionProductGetVendorWebsiteUrlAttributeTypeOk(arg SubscriptionProductGetVendorWebsiteUrlAttributeType) (ret SubscriptionProductGetVendorWebsiteUrlRetType, ok bool) { if arg == nil { return ret, false @@ -258,14 +315,18 @@ func getSubscriptionProductGetVendorWebsiteUrlAttributeTypeOk(arg SubscriptionPr return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSubscriptionProductGetVendorWebsiteUrlAttributeType(arg *SubscriptionProductGetVendorWebsiteUrlAttributeType, val SubscriptionProductGetVendorWebsiteUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorWebsiteUrlArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProductGetVendorWebsiteUrlRetType = string // SubscriptionProduct The product of a subscription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SubscriptionProduct struct { Assets SubscriptionProductGetAssetsAttributeType `json:"assets,omitempty"` // REQUIRED @@ -298,12 +359,14 @@ type SubscriptionProduct struct { VendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlAttributeType `json:"vendorWebsiteUrl" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _SubscriptionProduct SubscriptionProduct // NewSubscriptionProduct instantiates a new SubscriptionProduct object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSubscriptionProduct(deliveryMethod SubscriptionProductGetDeliveryMethodArgType, lifecycleState SubscriptionProductGetLifecycleStateArgType, planId SubscriptionProductGetPlanIdArgType, priceType SubscriptionProductGetPriceTypeArgType, pricingPlan SubscriptionProductGetPricingPlanArgType, productId SubscriptionProductGetProductIdArgType, productName SubscriptionProductGetProductNameArgType, vendorName SubscriptionProductGetVendorNameArgType, vendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlArgType) *SubscriptionProduct { this := SubscriptionProduct{} setSubscriptionProductGetDeliveryMethodAttributeType(&this.DeliveryMethod, deliveryMethod) @@ -321,12 +384,14 @@ func NewSubscriptionProduct(deliveryMethod SubscriptionProductGetDeliveryMethodA // NewSubscriptionProductWithDefaults instantiates a new SubscriptionProduct object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSubscriptionProductWithDefaults() *SubscriptionProduct { this := SubscriptionProduct{} return &this } // GetAssets returns the Assets field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetAssets() (res SubscriptionProductGetAssetsRetType) { res, _ = o.GetAssetsOk() return @@ -334,22 +399,26 @@ func (o *SubscriptionProduct) GetAssets() (res SubscriptionProductGetAssetsRetTy // GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetAssetsOk() (ret SubscriptionProductGetAssetsRetType, ok bool) { return getSubscriptionProductGetAssetsAttributeTypeOk(o.Assets) } // HasAssets returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) HasAssets() bool { _, ok := o.GetAssetsOk() return ok } // SetAssets gets a reference to the given Assets and assigns it to the Assets field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetAssets(v SubscriptionProductGetAssetsRetType) { setSubscriptionProductGetAssetsAttributeType(&o.Assets, v) } // GetDeliveryMethod returns the DeliveryMethod field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetDeliveryMethod() (ret SubscriptionProductGetDeliveryMethodRetType) { ret, _ = o.GetDeliveryMethodOk() return ret @@ -357,16 +426,19 @@ func (o *SubscriptionProduct) GetDeliveryMethod() (ret SubscriptionProductGetDel // GetDeliveryMethodOk returns a tuple with the DeliveryMethod field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetDeliveryMethodOk() (ret SubscriptionProductGetDeliveryMethodRetType, ok bool) { return getSubscriptionProductGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod) } // SetDeliveryMethod sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetDeliveryMethod(v SubscriptionProductGetDeliveryMethodRetType) { setSubscriptionProductGetDeliveryMethodAttributeType(&o.DeliveryMethod, v) } // GetLifecycleState returns the LifecycleState field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetLifecycleState() (ret SubscriptionProductGetLifecycleStateRetType) { ret, _ = o.GetLifecycleStateOk() return ret @@ -374,16 +446,19 @@ func (o *SubscriptionProduct) GetLifecycleState() (ret SubscriptionProductGetLif // GetLifecycleStateOk returns a tuple with the LifecycleState field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetLifecycleStateOk() (ret SubscriptionProductGetLifecycleStateRetType, ok bool) { return getSubscriptionProductGetLifecycleStateAttributeTypeOk(o.LifecycleState) } // SetLifecycleState sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetLifecycleState(v SubscriptionProductGetLifecycleStateRetType) { setSubscriptionProductGetLifecycleStateAttributeType(&o.LifecycleState, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetPlanId() (ret SubscriptionProductGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -391,16 +466,19 @@ func (o *SubscriptionProduct) GetPlanId() (ret SubscriptionProductGetPlanIdRetTy // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetPlanIdOk() (ret SubscriptionProductGetPlanIdRetType, ok bool) { return getSubscriptionProductGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetPlanId(v SubscriptionProductGetPlanIdRetType) { setSubscriptionProductGetPlanIdAttributeType(&o.PlanId, v) } // GetPriceType returns the PriceType field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetPriceType() (ret SubscriptionProductGetPriceTypeRetType) { ret, _ = o.GetPriceTypeOk() return ret @@ -408,16 +486,19 @@ func (o *SubscriptionProduct) GetPriceType() (ret SubscriptionProductGetPriceTyp // GetPriceTypeOk returns a tuple with the PriceType field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetPriceTypeOk() (ret SubscriptionProductGetPriceTypeRetType, ok bool) { return getSubscriptionProductGetPriceTypeAttributeTypeOk(o.PriceType) } // SetPriceType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetPriceType(v SubscriptionProductGetPriceTypeRetType) { setSubscriptionProductGetPriceTypeAttributeType(&o.PriceType, v) } // GetPricingPlan returns the PricingPlan field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetPricingPlan() (ret SubscriptionProductGetPricingPlanRetType) { ret, _ = o.GetPricingPlanOk() return ret @@ -425,16 +506,19 @@ func (o *SubscriptionProduct) GetPricingPlan() (ret SubscriptionProductGetPricin // GetPricingPlanOk returns a tuple with the PricingPlan field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetPricingPlanOk() (ret SubscriptionProductGetPricingPlanRetType, ok bool) { return getSubscriptionProductGetPricingPlanAttributeTypeOk(o.PricingPlan) } // SetPricingPlan sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetPricingPlan(v SubscriptionProductGetPricingPlanRetType) { setSubscriptionProductGetPricingPlanAttributeType(&o.PricingPlan, v) } // GetProductId returns the ProductId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetProductId() (ret SubscriptionProductGetProductIdRetType) { ret, _ = o.GetProductIdOk() return ret @@ -442,16 +526,19 @@ func (o *SubscriptionProduct) GetProductId() (ret SubscriptionProductGetProductI // GetProductIdOk returns a tuple with the ProductId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetProductIdOk() (ret SubscriptionProductGetProductIdRetType, ok bool) { return getSubscriptionProductGetProductIdAttributeTypeOk(o.ProductId) } // SetProductId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetProductId(v SubscriptionProductGetProductIdRetType) { setSubscriptionProductGetProductIdAttributeType(&o.ProductId, v) } // GetProductName returns the ProductName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetProductName() (ret SubscriptionProductGetProductNameRetType) { ret, _ = o.GetProductNameOk() return ret @@ -459,16 +546,19 @@ func (o *SubscriptionProduct) GetProductName() (ret SubscriptionProductGetProduc // GetProductNameOk returns a tuple with the ProductName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetProductNameOk() (ret SubscriptionProductGetProductNameRetType, ok bool) { return getSubscriptionProductGetProductNameAttributeTypeOk(o.ProductName) } // SetProductName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetProductName(v SubscriptionProductGetProductNameRetType) { setSubscriptionProductGetProductNameAttributeType(&o.ProductName, v) } // GetVendorName returns the VendorName field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorName() (ret SubscriptionProductGetVendorNameRetType) { ret, _ = o.GetVendorNameOk() return ret @@ -476,16 +566,19 @@ func (o *SubscriptionProduct) GetVendorName() (ret SubscriptionProductGetVendorN // GetVendorNameOk returns a tuple with the VendorName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorNameOk() (ret SubscriptionProductGetVendorNameRetType, ok bool) { return getSubscriptionProductGetVendorNameAttributeTypeOk(o.VendorName) } // SetVendorName sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetVendorName(v SubscriptionProductGetVendorNameRetType) { setSubscriptionProductGetVendorNameAttributeType(&o.VendorName, v) } // GetVendorPlanId returns the VendorPlanId field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorPlanId() (res SubscriptionProductGetVendorPlanIdRetType) { res, _ = o.GetVendorPlanIdOk() return @@ -493,22 +586,26 @@ func (o *SubscriptionProduct) GetVendorPlanId() (res SubscriptionProductGetVendo // GetVendorPlanIdOk returns a tuple with the VendorPlanId field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorPlanIdOk() (ret SubscriptionProductGetVendorPlanIdRetType, ok bool) { return getSubscriptionProductGetVendorPlanIdAttributeTypeOk(o.VendorPlanId) } // HasVendorPlanId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) HasVendorPlanId() bool { _, ok := o.GetVendorPlanIdOk() return ok } // SetVendorPlanId gets a reference to the given string and assigns it to the VendorPlanId field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetVendorPlanId(v SubscriptionProductGetVendorPlanIdRetType) { setSubscriptionProductGetVendorPlanIdAttributeType(&o.VendorPlanId, v) } // GetVendorProductId returns the VendorProductId field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorProductId() (res SubscriptionProductGetVendorProductIdRetType) { res, _ = o.GetVendorProductIdOk() return @@ -516,22 +613,26 @@ func (o *SubscriptionProduct) GetVendorProductId() (res SubscriptionProductGetVe // GetVendorProductIdOk returns a tuple with the VendorProductId field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorProductIdOk() (ret SubscriptionProductGetVendorProductIdRetType, ok bool) { return getSubscriptionProductGetVendorProductIdAttributeTypeOk(o.VendorProductId) } // HasVendorProductId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) HasVendorProductId() bool { _, ok := o.GetVendorProductIdOk() return ok } // SetVendorProductId gets a reference to the given string and assigns it to the VendorProductId field. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetVendorProductId(v SubscriptionProductGetVendorProductIdRetType) { setSubscriptionProductGetVendorProductIdAttributeType(&o.VendorProductId, v) } // GetVendorWebsiteUrl returns the VendorWebsiteUrl field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorWebsiteUrl() (ret SubscriptionProductGetVendorWebsiteUrlRetType) { ret, _ = o.GetVendorWebsiteUrlOk() return ret @@ -539,15 +640,18 @@ func (o *SubscriptionProduct) GetVendorWebsiteUrl() (ret SubscriptionProductGetV // GetVendorWebsiteUrlOk returns a tuple with the VendorWebsiteUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) GetVendorWebsiteUrlOk() (ret SubscriptionProductGetVendorWebsiteUrlRetType, ok bool) { return getSubscriptionProductGetVendorWebsiteUrlAttributeTypeOk(o.VendorWebsiteUrl) } // SetVendorWebsiteUrl sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SubscriptionProduct) SetVendorWebsiteUrl(v SubscriptionProductGetVendorWebsiteUrlRetType) { setSubscriptionProductGetVendorWebsiteUrlAttributeType(&o.VendorWebsiteUrl, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o SubscriptionProduct) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getSubscriptionProductGetAssetsAttributeTypeOk(o.Assets); ok { @@ -589,37 +693,45 @@ func (o SubscriptionProduct) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableSubscriptionProduct struct { value *SubscriptionProduct isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionProduct) Get() *SubscriptionProduct { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionProduct) Set(val *SubscriptionProduct) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionProduct) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionProduct) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableSubscriptionProduct(val *SubscriptionProduct) *NullableSubscriptionProduct { return &NullableSubscriptionProduct{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSubscriptionProduct) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSubscriptionProduct) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_suggest_product.go b/services/stackitmarketplace/model_suggest_product.go index 38ee46bf7d..e36f4510cb 100644 --- a/services/stackitmarketplace/model_suggest_product.go +++ b/services/stackitmarketplace/model_suggest_product.go @@ -22,10 +22,14 @@ var _ MappedNullable = &SuggestProduct{} */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProductGetSuggestProductAttributeType = *InquirySuggestProduct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProductGetSuggestProductArgType = InquirySuggestProduct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProductGetSuggestProductRetType = InquirySuggestProduct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSuggestProductGetSuggestProductAttributeTypeOk(arg SuggestProductGetSuggestProductAttributeType) (ret SuggestProductGetSuggestProductRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getSuggestProductGetSuggestProductAttributeTypeOk(arg SuggestProductGetSugg return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSuggestProductGetSuggestProductAttributeType(arg *SuggestProductGetSuggestProductAttributeType, val SuggestProductGetSuggestProductRetType) { *arg = &val } @@ -42,10 +47,14 @@ func setSuggestProductGetSuggestProductAttributeType(arg *SuggestProductGetSugge */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProductGetTypeAttributeType = *InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProductGetTypeArgType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProductGetTypeRetType = InquiryFormType +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getSuggestProductGetTypeAttributeTypeOk(arg SuggestProductGetTypeAttributeType) (ret SuggestProductGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +62,13 @@ func getSuggestProductGetTypeAttributeTypeOk(arg SuggestProductGetTypeAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setSuggestProductGetTypeAttributeType(arg *SuggestProductGetTypeAttributeType, val SuggestProductGetTypeRetType) { *arg = &val } // SuggestProduct Suggest a product. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type SuggestProduct struct { // REQUIRED SuggestProduct SuggestProductGetSuggestProductAttributeType `json:"suggestProduct" required:"true"` @@ -65,12 +76,14 @@ type SuggestProduct struct { Type SuggestProductGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _SuggestProduct SuggestProduct // NewSuggestProduct instantiates a new SuggestProduct object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSuggestProduct(suggestProduct SuggestProductGetSuggestProductArgType, types SuggestProductGetTypeArgType) *SuggestProduct { this := SuggestProduct{} setSuggestProductGetSuggestProductAttributeType(&this.SuggestProduct, suggestProduct) @@ -81,12 +94,14 @@ func NewSuggestProduct(suggestProduct SuggestProductGetSuggestProductArgType, ty // NewSuggestProductWithDefaults instantiates a new SuggestProduct object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewSuggestProductWithDefaults() *SuggestProduct { this := SuggestProduct{} return &this } // GetSuggestProduct returns the SuggestProduct field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SuggestProduct) GetSuggestProduct() (ret SuggestProductGetSuggestProductRetType) { ret, _ = o.GetSuggestProductOk() return ret @@ -94,16 +109,19 @@ func (o *SuggestProduct) GetSuggestProduct() (ret SuggestProductGetSuggestProduc // GetSuggestProductOk returns a tuple with the SuggestProduct field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SuggestProduct) GetSuggestProductOk() (ret SuggestProductGetSuggestProductRetType, ok bool) { return getSuggestProductGetSuggestProductAttributeTypeOk(o.SuggestProduct) } // SetSuggestProduct sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SuggestProduct) SetSuggestProduct(v SuggestProductGetSuggestProductRetType) { setSuggestProductGetSuggestProductAttributeType(&o.SuggestProduct, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SuggestProduct) GetType() (ret SuggestProductGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -111,15 +129,18 @@ func (o *SuggestProduct) GetType() (ret SuggestProductGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SuggestProduct) GetTypeOk() (ret SuggestProductGetTypeRetType, ok bool) { return getSuggestProductGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *SuggestProduct) SetType(v SuggestProductGetTypeRetType) { setSuggestProductGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o SuggestProduct) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getSuggestProductGetSuggestProductAttributeTypeOk(o.SuggestProduct); ok { @@ -131,37 +152,45 @@ func (o SuggestProduct) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableSuggestProduct struct { value *SuggestProduct isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSuggestProduct) Get() *SuggestProduct { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSuggestProduct) Set(val *SuggestProduct) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSuggestProduct) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSuggestProduct) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableSuggestProduct(val *SuggestProduct) *NullableSuggestProduct { return &NullableSuggestProduct{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableSuggestProduct) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableSuggestProduct) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_vendor_id.go b/services/stackitmarketplace/model_vendor_id.go index 033d20c39f..8f6163a515 100644 --- a/services/stackitmarketplace/model_vendor_id.go +++ b/services/stackitmarketplace/model_vendor_id.go @@ -18,6 +18,7 @@ import ( var _ MappedNullable = &VendorId{} // VendorId The vendor ID. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorId struct { } @@ -25,6 +26,7 @@ type VendorId struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewVendorId() *VendorId { this := VendorId{} return &this @@ -33,47 +35,57 @@ func NewVendorId() *VendorId { // NewVendorIdWithDefaults instantiates a new VendorId object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewVendorIdWithDefaults() *VendorId { this := VendorId{} return &this } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o VendorId) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableVendorId struct { value *VendorId isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableVendorId) Get() *VendorId { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableVendorId) Set(val *VendorId) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableVendorId) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableVendorId) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableVendorId(val *VendorId) *NullableVendorId { return &NullableVendorId{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableVendorId) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableVendorId) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/model_vendor_subscription.go b/services/stackitmarketplace/model_vendor_subscription.go index fb7f0af55e..e60b75d98b 100644 --- a/services/stackitmarketplace/model_vendor_subscription.go +++ b/services/stackitmarketplace/model_vendor_subscription.go @@ -22,10 +22,14 @@ var _ MappedNullable = &VendorSubscription{} */ // isEnumRef +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetLifecycleStateAttributeType = *SubscriptionLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetLifecycleStateArgType = SubscriptionLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetLifecycleStateRetType = SubscriptionLifecycleState +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getVendorSubscriptionGetLifecycleStateAttributeTypeOk(arg VendorSubscriptionGetLifecycleStateAttributeType) (ret VendorSubscriptionGetLifecycleStateRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +37,7 @@ func getVendorSubscriptionGetLifecycleStateAttributeTypeOk(arg VendorSubscriptio return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setVendorSubscriptionGetLifecycleStateAttributeType(arg *VendorSubscriptionGetLifecycleStateAttributeType, val VendorSubscriptionGetLifecycleStateRetType) { *arg = &val } @@ -42,8 +47,10 @@ func setVendorSubscriptionGetLifecycleStateAttributeType(arg *VendorSubscription */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetOrganizationIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getVendorSubscriptionGetOrganizationIdAttributeTypeOk(arg VendorSubscriptionGetOrganizationIdAttributeType) (ret VendorSubscriptionGetOrganizationIdRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +58,14 @@ func getVendorSubscriptionGetOrganizationIdAttributeTypeOk(arg VendorSubscriptio return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setVendorSubscriptionGetOrganizationIdAttributeType(arg *VendorSubscriptionGetOrganizationIdAttributeType, val VendorSubscriptionGetOrganizationIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetOrganizationIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetOrganizationIdRetType = string /* @@ -63,10 +73,14 @@ type VendorSubscriptionGetOrganizationIdRetType = string */ // isModel +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetProductAttributeType = *SubscriptionProduct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetProductArgType = SubscriptionProduct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetProductRetType = SubscriptionProduct +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getVendorSubscriptionGetProductAttributeTypeOk(arg VendorSubscriptionGetProductAttributeType) (ret VendorSubscriptionGetProductRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +88,7 @@ func getVendorSubscriptionGetProductAttributeTypeOk(arg VendorSubscriptionGetPro return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setVendorSubscriptionGetProductAttributeType(arg *VendorSubscriptionGetProductAttributeType, val VendorSubscriptionGetProductRetType) { *arg = &val } @@ -83,8 +98,10 @@ func setVendorSubscriptionGetProductAttributeType(arg *VendorSubscriptionGetProd */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetProjectIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getVendorSubscriptionGetProjectIdAttributeTypeOk(arg VendorSubscriptionGetProjectIdAttributeType) (ret VendorSubscriptionGetProjectIdRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +109,14 @@ func getVendorSubscriptionGetProjectIdAttributeTypeOk(arg VendorSubscriptionGetP return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setVendorSubscriptionGetProjectIdAttributeType(arg *VendorSubscriptionGetProjectIdAttributeType, val VendorSubscriptionGetProjectIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetProjectIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetProjectIdRetType = string /* @@ -104,8 +124,10 @@ type VendorSubscriptionGetProjectIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetSubscriptionIdAttributeType = *string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func getVendorSubscriptionGetSubscriptionIdAttributeTypeOk(arg VendorSubscriptionGetSubscriptionIdAttributeType) (ret VendorSubscriptionGetSubscriptionIdRetType, ok bool) { if arg == nil { return ret, false @@ -113,14 +135,18 @@ func getVendorSubscriptionGetSubscriptionIdAttributeTypeOk(arg VendorSubscriptio return *arg, true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func setVendorSubscriptionGetSubscriptionIdAttributeType(arg *VendorSubscriptionGetSubscriptionIdAttributeType, val VendorSubscriptionGetSubscriptionIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetSubscriptionIdArgType = string +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscriptionGetSubscriptionIdRetType = string // VendorSubscription struct for VendorSubscription +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type VendorSubscription struct { // REQUIRED LifecycleState VendorSubscriptionGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` @@ -137,12 +163,14 @@ type VendorSubscription struct { SubscriptionId VendorSubscriptionGetSubscriptionIdAttributeType `json:"subscriptionId" required:"true"` } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type _VendorSubscription VendorSubscription // NewVendorSubscription instantiates a new VendorSubscription object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewVendorSubscription(lifecycleState VendorSubscriptionGetLifecycleStateArgType, organizationId VendorSubscriptionGetOrganizationIdArgType, product VendorSubscriptionGetProductArgType, projectId VendorSubscriptionGetProjectIdArgType, subscriptionId VendorSubscriptionGetSubscriptionIdArgType) *VendorSubscription { this := VendorSubscription{} setVendorSubscriptionGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState) @@ -156,12 +184,14 @@ func NewVendorSubscription(lifecycleState VendorSubscriptionGetLifecycleStateArg // NewVendorSubscriptionWithDefaults instantiates a new VendorSubscription object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewVendorSubscriptionWithDefaults() *VendorSubscription { this := VendorSubscription{} return &this } // GetLifecycleState returns the LifecycleState field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetLifecycleState() (ret VendorSubscriptionGetLifecycleStateRetType) { ret, _ = o.GetLifecycleStateOk() return ret @@ -169,16 +199,19 @@ func (o *VendorSubscription) GetLifecycleState() (ret VendorSubscriptionGetLifec // GetLifecycleStateOk returns a tuple with the LifecycleState field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetLifecycleStateOk() (ret VendorSubscriptionGetLifecycleStateRetType, ok bool) { return getVendorSubscriptionGetLifecycleStateAttributeTypeOk(o.LifecycleState) } // SetLifecycleState sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) SetLifecycleState(v VendorSubscriptionGetLifecycleStateRetType) { setVendorSubscriptionGetLifecycleStateAttributeType(&o.LifecycleState, v) } // GetOrganizationId returns the OrganizationId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetOrganizationId() (ret VendorSubscriptionGetOrganizationIdRetType) { ret, _ = o.GetOrganizationIdOk() return ret @@ -186,16 +219,19 @@ func (o *VendorSubscription) GetOrganizationId() (ret VendorSubscriptionGetOrgan // GetOrganizationIdOk returns a tuple with the OrganizationId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetOrganizationIdOk() (ret VendorSubscriptionGetOrganizationIdRetType, ok bool) { return getVendorSubscriptionGetOrganizationIdAttributeTypeOk(o.OrganizationId) } // SetOrganizationId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) SetOrganizationId(v VendorSubscriptionGetOrganizationIdRetType) { setVendorSubscriptionGetOrganizationIdAttributeType(&o.OrganizationId, v) } // GetProduct returns the Product field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetProduct() (ret VendorSubscriptionGetProductRetType) { ret, _ = o.GetProductOk() return ret @@ -203,16 +239,19 @@ func (o *VendorSubscription) GetProduct() (ret VendorSubscriptionGetProductRetTy // GetProductOk returns a tuple with the Product field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetProductOk() (ret VendorSubscriptionGetProductRetType, ok bool) { return getVendorSubscriptionGetProductAttributeTypeOk(o.Product) } // SetProduct sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) SetProduct(v VendorSubscriptionGetProductRetType) { setVendorSubscriptionGetProductAttributeType(&o.Product, v) } // GetProjectId returns the ProjectId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetProjectId() (ret VendorSubscriptionGetProjectIdRetType) { ret, _ = o.GetProjectIdOk() return ret @@ -220,16 +259,19 @@ func (o *VendorSubscription) GetProjectId() (ret VendorSubscriptionGetProjectIdR // GetProjectIdOk returns a tuple with the ProjectId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetProjectIdOk() (ret VendorSubscriptionGetProjectIdRetType, ok bool) { return getVendorSubscriptionGetProjectIdAttributeTypeOk(o.ProjectId) } // SetProjectId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) SetProjectId(v VendorSubscriptionGetProjectIdRetType) { setVendorSubscriptionGetProjectIdAttributeType(&o.ProjectId, v) } // GetSubscriptionId returns the SubscriptionId field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetSubscriptionId() (ret VendorSubscriptionGetSubscriptionIdRetType) { ret, _ = o.GetSubscriptionIdOk() return ret @@ -237,15 +279,18 @@ func (o *VendorSubscription) GetSubscriptionId() (ret VendorSubscriptionGetSubsc // GetSubscriptionIdOk returns a tuple with the SubscriptionId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) GetSubscriptionIdOk() (ret VendorSubscriptionGetSubscriptionIdRetType, ok bool) { return getVendorSubscriptionGetSubscriptionIdAttributeTypeOk(o.SubscriptionId) } // SetSubscriptionId sets field value +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o *VendorSubscription) SetSubscriptionId(v VendorSubscriptionGetSubscriptionIdRetType) { setVendorSubscriptionGetSubscriptionIdAttributeType(&o.SubscriptionId, v) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (o VendorSubscription) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getVendorSubscriptionGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok { @@ -266,37 +311,45 @@ func (o VendorSubscription) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableVendorSubscription struct { value *VendorSubscription isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableVendorSubscription) Get() *VendorSubscription { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableVendorSubscription) Set(val *VendorSubscription) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableVendorSubscription) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableVendorSubscription) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableVendorSubscription(val *VendorSubscription) *NullableVendorSubscription { return &NullableVendorSubscription{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableVendorSubscription) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableVendorSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/stackitmarketplace/oas_commit b/services/stackitmarketplace/oas_commit new file mode 100644 index 0000000000..6a8ba08d49 --- /dev/null +++ b/services/stackitmarketplace/oas_commit @@ -0,0 +1 @@ +ef9232ba8d49c72fc3397a365b09ca1a8205b25e diff --git a/services/stackitmarketplace/utils.go b/services/stackitmarketplace/utils.go index 8677b8e67b..cb09594640 100644 --- a/services/stackitmarketplace/utils.go +++ b/services/stackitmarketplace/utils.go @@ -18,341 +18,419 @@ import ( ) // PtrBool is a helper routine that returns a pointer to given boolean value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrBool(v bool) *bool { return &v } // PtrInt is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrInt(v int) *int { return &v } // PtrInt32 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrInt32(v int32) *int32 { return &v } // PtrInt64 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrInt64(v int64) *int64 { return &v } // PtrFloat32 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrFloat32(v float32) *float32 { return &v } // PtrFloat64 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrFloat64(v float64) *float64 { return &v } // PtrString is a helper routine that returns a pointer to given string value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrString(v string) *string { return &v } // PtrTime is helper routine that returns a pointer to given Time value. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func PtrTime(v time.Time) *time.Time { return &v } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableValue[T any] struct { value *T isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) Get() *T { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Set(val *T) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableBool struct { value *bool isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableBool) Get() *bool { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableBool) Set(val *bool) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableBool) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableBool) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableBool(val *bool) *NullableBool { return &NullableBool{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableBool) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInt struct { value *int isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt) Get() *int { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt) Set(val *int) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInt(val *int) *NullableInt { return &NullableInt{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInt32 struct { value *int32 isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt32) Get() *int32 { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Set(val *int32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInt32(val *int32) *NullableInt32 { return &NullableInt32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableInt64 struct { value *int64 isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt64) Get() *int64 { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Set(val *int64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableInt64(val *int64) *NullableInt64 { return &NullableInt64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableInt64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableInt64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableFloat32 struct { value *float32 isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFloat32) Get() *float32 { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Set(val *float32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFloat32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableFloat32(val *float32) *NullableFloat32 { return &NullableFloat32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFloat32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableFloat64 struct { value *float64 isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFloat64) Get() *float64 { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Set(val *float64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFloat64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableFloat64(val *float64) *NullableFloat64 { return &NullableFloat64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableFloat64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableString struct { value *string isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableString) Get() *string { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableString) Set(val *string) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableString) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableString) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableString(val *string) *NullableString { return &NullableString{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableString) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type NullableTime struct { value *time.Time isSet bool } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableTime) Get() *time.Time { return v.value } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableTime) Set(val *time.Time) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableTime) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableTime) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func NewNullableTime(val *time.Time) *NullableTime { return &NullableTime{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v NullableTime) MarshalJSON() ([]byte, error) { return v.value.MarshalJSON() } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } // IsNil checks if an input is nil +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func IsNil(i interface{}) bool { if i == nil { return true @@ -369,6 +447,7 @@ func IsNil(i interface{}) bool { return false } +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead type MappedNullable interface { ToMap() (map[string]interface{}, error) } @@ -376,6 +455,7 @@ type MappedNullable interface { const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // randString returns a random string with a specified length. It panics if n <= 0. +// Deprecated: Will be removed after 2026-11-30. Move to the packages generated for each available API version instead func randString(n int) string { b := make([]byte, n) for i := range b { From 2be952f0cb43fb2f7a7cdff08453312bff7b7427 Mon Sep 17 00:00:00 2001 From: Ruben Hoenle Date: Fri, 16 Oct 2026 12:58:13 +0200 Subject: [PATCH 3/3] changelogs --- CHANGELOG.md | 5 +++++ services/stackitmarketplace/CHANGELOG.md | 5 +++++ services/stackitmarketplace/VERSION | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17e369d129..2b4918976b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -244,6 +244,11 @@ - [v1.19.0](services/sqlserverflex/CHANGELOG.md#v1190) - **Breaking change:** Removal of deprecated compatibility layer previously found in the root of the SDK module - **Dependencies:** Bump STACKIT SDK core module from `v0.27.0` to `v0.27.1` +- `stackitmarketplace`: + - [v1.19.0](services/stackitmarketplace/CHANGELOG.md#v1190) + - **Feature:** Introduction of multi API version support for the STACKIT Marketplace SDK module. For more details please see the announcement on GitHub: https://github.com/stackitcloud/stackit-sdk-go/discussions/5062 + - `v1api`: New package which should be used for communication with the STACKIT Marketplace API in the future + - **Deprecation:** The contents in the root of this SDK module are marked as deprecated and will be removed after 2026-11-30. Switch to the new `v1api` package instead. - `telemetrylink`: - [v0.6.0](services/telemetrylink/CHANGELOG.md#v060) - `v1api`: diff --git a/services/stackitmarketplace/CHANGELOG.md b/services/stackitmarketplace/CHANGELOG.md index ac74003952..e0f189e860 100644 --- a/services/stackitmarketplace/CHANGELOG.md +++ b/services/stackitmarketplace/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.19.0 +- **Feature:** Introduction of multi API version support for the STACKIT Marketplace SDK module. For more details please see the announcement on GitHub: https://github.com/stackitcloud/stackit-sdk-go/discussions/5062 +- `v1api`: New package which should be used for communication with the STACKIT Marketplace API in the future +- **Deprecation:** The contents in the root of this SDK module are marked as deprecated and will be removed after 2026-11-30. Switch to the new `v1api` package instead. + ## v1.18.2 - **Dependencies:** Bump STACKIT SDK core module from `v0.26.0` to `v0.27.0` diff --git a/services/stackitmarketplace/VERSION b/services/stackitmarketplace/VERSION index 4fe71e952d..40a06c501b 100644 --- a/services/stackitmarketplace/VERSION +++ b/services/stackitmarketplace/VERSION @@ -1 +1 @@ -v1.18.2 +v1.19.0