diff --git a/services/stackitmarketplace/.openapi-generator/VERSION b/services/stackitmarketplace/.openapi-generator/VERSION deleted file mode 100644 index cd802a1ec4..0000000000 --- a/services/stackitmarketplace/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.6.0 \ No newline at end of file diff --git a/services/stackitmarketplace/api_default.go b/services/stackitmarketplace/api_default.go deleted file mode 100644 index cba61cf93b..0000000000 --- a/services/stackitmarketplace/api_default.go +++ /dev/null @@ -1,1692 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -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 ( - "bytes" - "context" - "fmt" - "io" - "net/http" - "net/url" - "strings" - - "github.com/stackitcloud/stackit-sdk-go/core/config" - "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 - Approve a pending subscription. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @param subscriptionId The subscription ID. - @return ApiApproveSubscriptionRequest - */ - ApproveSubscription(ctx context.Context, projectId string, subscriptionId string) ApiApproveSubscriptionRequest - /* - ApproveSubscriptionExecute executes the request - - */ - ApproveSubscriptionExecute(ctx context.Context, projectId string, subscriptionId string) error - /* - GetCatalogProduct Get a product - Deprecated: Get a product. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productId The product ID. - @return ApiGetCatalogProductRequest - */ - GetCatalogProduct(ctx context.Context, productId string) ApiGetCatalogProductRequest - /* - GetCatalogProductExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productId The product ID. - @return CatalogProductDetail - - Deprecated: Get a product. - */ - GetCatalogProductExecute(ctx context.Context, productId string) (*CatalogProductDetail, error) - /* - GetVendorSubscription 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 The project ID. - @param subscriptionId The subscription ID. - @return ApiGetVendorSubscriptionRequest - */ - GetVendorSubscription(ctx context.Context, projectId string, subscriptionId string) ApiGetVendorSubscriptionRequest - /* - GetVendorSubscriptionExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @param subscriptionId The subscription ID. - @return VendorSubscription - - */ - GetVendorSubscriptionExecute(ctx context.Context, projectId string, subscriptionId string) (*VendorSubscription, error) - /* - InquiriesCreateInquiry Create inquiry - Deprecated: Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiInquiriesCreateInquiryRequest - */ - InquiriesCreateInquiry(ctx context.Context) ApiInquiriesCreateInquiryRequest - /* - InquiriesCreateInquiryExecute executes the request - - Deprecated: Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes. - */ - InquiriesCreateInquiryExecute(ctx context.Context) error - /* - ListCatalogProducts List all products - Deprecated: List all products. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCatalogProductsRequest - */ - ListCatalogProducts(ctx context.Context) ApiListCatalogProductsRequest - /* - ListCatalogProductsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ListCatalogProductsResponse - - Deprecated: List all products. - */ - ListCatalogProductsExecute(ctx context.Context) (*ListCatalogProductsResponse, error) - /* - ListVendorSubscriptions List all subscriptions of a project. - List all subscriptions of a project. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @return ApiListVendorSubscriptionsRequest - */ - ListVendorSubscriptions(ctx context.Context, projectId string) ApiListVendorSubscriptionsRequest - /* - ListVendorSubscriptionsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @return ListVendorSubscriptionsResponse - - */ - ListVendorSubscriptionsExecute(ctx context.Context, projectId string) (*ListVendorSubscriptionsResponse, error) - /* - ResolveCustomer Resolve customer - Get details about the requested subscription. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @return ApiResolveCustomerRequest - */ - ResolveCustomer(ctx context.Context, projectId string) ApiResolveCustomerRequest - /* - ResolveCustomerExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @return VendorSubscription - - */ - ResolveCustomerExecute(ctx context.Context, projectId string) (*VendorSubscription, 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 The project ID. - @param subscriptionId The subscription ID. - @return ApiVendorsSubscriptionsRejectRequest - */ - VendorsSubscriptionsReject(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsRejectRequest - /* - VendorsSubscriptionsRejectExecute executes the request - - */ - 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 - // The maximum number of items to return in the response. If maximum is exceeded, maximum is used. - Limit(limit float32) ApiListCatalogProductsRequest - // The language of the response. - Locale(locale string) ApiListCatalogProductsRequest - // Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. - Filter(filter string) ApiListCatalogProductsRequest - // Sort the products based on attributes and order e.g. `name:asc`. Attributes with scalar types (`createdAt`, `isProductListing`) or keywords (`name`, `deliveryMethod`, `lifecycleState`, `vendor.name`) can be used as sort criteria. To set the sort order, append `asc` (ascending) or `desc` (descending) to the attribute, e.g. `name:asc`. To sort by multiple attributes, separate them with a comma. E.g `name:asc,price:desc`. - Sort(sort string) ApiListCatalogProductsRequest - 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 - // The maximum number of items to return in the response. If maximum is exceeded, maximum is used. - Limit(limit float32) ApiListVendorSubscriptionsRequest - // The product ID. - ProductId(productId string) ApiListVendorSubscriptionsRequest - 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 - projectId string - subscriptionId string - approveSubscriptionPayload *ApproveSubscriptionPayload -} - -func (r ApproveSubscriptionRequest) ApproveSubscriptionPayload(approveSubscriptionPayload ApproveSubscriptionPayload) ApiApproveSubscriptionRequest { - r.approveSubscriptionPayload = &approveSubscriptionPayload - return r -} - -func (r ApproveSubscriptionRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := 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 strlen(r.projectId) < 36 { - return fmt.Errorf("projectId must have at least 36 elements") - } - if strlen(r.projectId) > 36 { - return fmt.Errorf("projectId must have less than 36 elements") - } - if strlen(r.subscriptionId) < 36 { - return fmt.Errorf("subscriptionId must have at least 36 elements") - } - if strlen(r.subscriptionId) > 36 { - return fmt.Errorf("subscriptionId must have less than 36 elements") - } - - // 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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 -} - -/* -ApproveSubscription: Approve a 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 The project ID. - @param subscriptionId The subscription ID. - @return ApiApproveSubscriptionRequest -*/ -func (a *APIClient) ApproveSubscription(ctx context.Context, projectId string, subscriptionId string) ApiApproveSubscriptionRequest { - return ApproveSubscriptionRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - subscriptionId: subscriptionId, - } -} - -func (a *APIClient) ApproveSubscriptionExecute(ctx context.Context, projectId string, subscriptionId string) error { - r := ApproveSubscriptionRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - subscriptionId: subscriptionId, - } - 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 - productId string - locale *string -} - -// The language of the response. - -func (r GetCatalogProductRequest) Locale(locale string) ApiGetCatalogProductRequest { - r.locale = &locale - return r -} - -func (r GetCatalogProductRequest) Execute() (*CatalogProductDetail, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CatalogProductDetail - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCatalogProduct") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v1/catalog/products/{productId}" - localVarPath = strings.Replace(localVarPath, "{"+"productId"+"}", url.PathEscape(ParameterValueToString(r.productId, "productId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if strlen(r.productId) < 10 { - return localVarReturnValue, fmt.Errorf("productId must have at least 10 elements") - } - if strlen(r.productId) > 29 { - return localVarReturnValue, fmt.Errorf("productId must have less than 29 elements") - } - - if r.locale != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "") - } - // 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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 = 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 -} - -/* -GetCatalogProduct: Get a product - -Deprecated: Get a product. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param productId The product ID. - @return ApiGetCatalogProductRequest -*/ -func (a *APIClient) GetCatalogProduct(ctx context.Context, productId string) ApiGetCatalogProductRequest { - return GetCatalogProductRequest{ - apiService: a.defaultApi, - ctx: ctx, - productId: productId, - } -} - -/* -Deprecated: Get a product. -*/ -func (a *APIClient) GetCatalogProductExecute(ctx context.Context, productId string) (*CatalogProductDetail, error) { - r := GetCatalogProductRequest{ - apiService: a.defaultApi, - ctx: ctx, - productId: productId, - } - 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 - projectId string - subscriptionId string -} - -func (r GetVendorSubscriptionRequest) Execute() (*VendorSubscription, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VendorSubscription - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetVendorSubscription") - 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 strlen(r.projectId) < 36 { - return localVarReturnValue, fmt.Errorf("projectId must have at least 36 elements") - } - if strlen(r.projectId) > 36 { - return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") - } - if strlen(r.subscriptionId) < 36 { - return localVarReturnValue, fmt.Errorf("subscriptionId must have at least 36 elements") - } - if strlen(r.subscriptionId) > 36 { - return localVarReturnValue, fmt.Errorf("subscriptionId must have less than 36 elements") - } - - // 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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 = 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 -} - -/* -GetVendorSubscription: 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 The project ID. - @param subscriptionId The subscription ID. - @return ApiGetVendorSubscriptionRequest -*/ -func (a *APIClient) GetVendorSubscription(ctx context.Context, projectId string, subscriptionId string) ApiGetVendorSubscriptionRequest { - return GetVendorSubscriptionRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - subscriptionId: subscriptionId, - } -} - -func (a *APIClient) GetVendorSubscriptionExecute(ctx context.Context, projectId string, subscriptionId string) (*VendorSubscription, error) { - r := GetVendorSubscriptionRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - subscriptionId: subscriptionId, - } - 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 - inquiriesCreateInquiryPayload *InquiriesCreateInquiryPayload -} - -func (r InquiriesCreateInquiryRequest) InquiriesCreateInquiryPayload(inquiriesCreateInquiryPayload InquiriesCreateInquiryPayload) ApiInquiriesCreateInquiryRequest { - r.inquiriesCreateInquiryPayload = &inquiriesCreateInquiryPayload - return r -} - -func (r InquiriesCreateInquiryRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InquiriesCreateInquiry") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v1/inquiries" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.inquiriesCreateInquiryPayload == nil { - return fmt.Errorf("inquiriesCreateInquiryPayload 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.inquiriesCreateInquiryPayload - req, err := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 -} - -/* -InquiriesCreateInquiry: Create inquiry - -Deprecated: Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiInquiriesCreateInquiryRequest -*/ -func (a *APIClient) InquiriesCreateInquiry(ctx context.Context) ApiInquiriesCreateInquiryRequest { - return InquiriesCreateInquiryRequest{ - apiService: a.defaultApi, - ctx: ctx, - } -} - -/* -Deprecated: Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes. -*/ -func (a *APIClient) InquiriesCreateInquiryExecute(ctx context.Context) error { - r := InquiriesCreateInquiryRequest{ - apiService: a.defaultApi, - ctx: ctx, - } - 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 - cursor *string - limit *float32 - locale *string - filter *string - sort *string -} - -// 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. - -func (r ListCatalogProductsRequest) Cursor(cursor string) ApiListCatalogProductsRequest { - r.cursor = &cursor - return r -} - -// The maximum number of items to return in the response. If maximum is exceeded, maximum is used. - -func (r ListCatalogProductsRequest) Limit(limit float32) ApiListCatalogProductsRequest { - r.limit = &limit - return r -} - -// The language of the response. - -func (r ListCatalogProductsRequest) Locale(locale string) ApiListCatalogProductsRequest { - r.locale = &locale - return r -} - -// Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. - -func (r ListCatalogProductsRequest) Filter(filter string) ApiListCatalogProductsRequest { - r.filter = &filter - return r -} - -// Sort the products based on attributes and order e.g. `name:asc`. Attributes with scalar types (`createdAt`, `isProductListing`) or keywords (`name`, `deliveryMethod`, `lifecycleState`, `vendor.name`) can be used as sort criteria. To set the sort order, append `asc` (ascending) or `desc` (descending) to the attribute, e.g. `name:asc`. To sort by multiple attributes, separate them with a comma. E.g `name:asc,price:desc`. - -func (r ListCatalogProductsRequest) Sort(sort string) ApiListCatalogProductsRequest { - r.sort = &sort - return r -} - -func (r ListCatalogProductsRequest) Execute() (*ListCatalogProductsResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListCatalogProductsResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListCatalogProducts") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v1/catalog/products" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.locale != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "") - } - if r.filter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "") - } - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } - // 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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 -} - -/* -ListCatalogProducts: List all products - -Deprecated: List all products. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCatalogProductsRequest -*/ -func (a *APIClient) ListCatalogProducts(ctx context.Context) ApiListCatalogProductsRequest { - return ListCatalogProductsRequest{ - apiService: a.defaultApi, - ctx: ctx, - } -} - -/* -Deprecated: List all products. -*/ -func (a *APIClient) ListCatalogProductsExecute(ctx context.Context) (*ListCatalogProductsResponse, error) { - r := ListCatalogProductsRequest{ - apiService: a.defaultApi, - ctx: ctx, - } - 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 - projectId string - cursor *string - limit *float32 - productId *string -} - -// 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. - -func (r ListVendorSubscriptionsRequest) Cursor(cursor string) ApiListVendorSubscriptionsRequest { - r.cursor = &cursor - return r -} - -// The maximum number of items to return in the response. If maximum is exceeded, maximum is used. - -func (r ListVendorSubscriptionsRequest) Limit(limit float32) ApiListVendorSubscriptionsRequest { - r.limit = &limit - return r -} - -// The product ID. - -func (r ListVendorSubscriptionsRequest) ProductId(productId string) ApiListVendorSubscriptionsRequest { - r.productId = &productId - return r -} - -func (r ListVendorSubscriptionsRequest) Execute() (*ListVendorSubscriptionsResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListVendorSubscriptionsResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListVendorSubscriptions") - 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 strlen(r.projectId) < 36 { - return localVarReturnValue, fmt.Errorf("projectId must have at least 36 elements") - } - if strlen(r.projectId) > 36 { - return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") - } - - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.productId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "productId", r.productId, "") - } - // 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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 -} - -/* -ListVendorSubscriptions: List all subscriptions of a project. - -List all subscriptions of a project. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @return ApiListVendorSubscriptionsRequest -*/ -func (a *APIClient) ListVendorSubscriptions(ctx context.Context, projectId string) ApiListVendorSubscriptionsRequest { - return ListVendorSubscriptionsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } -} - -func (a *APIClient) ListVendorSubscriptionsExecute(ctx context.Context, projectId string) (*ListVendorSubscriptionsResponse, error) { - r := ListVendorSubscriptionsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } - 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 - projectId string - resolveCustomerPayload *ResolveCustomerPayload -} - -func (r ResolveCustomerRequest) ResolveCustomerPayload(resolveCustomerPayload ResolveCustomerPayload) ApiResolveCustomerRequest { - r.resolveCustomerPayload = &resolveCustomerPayload - return r -} - -func (r ResolveCustomerRequest) Execute() (*VendorSubscription, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VendorSubscription - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := 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 strlen(r.projectId) < 36 { - return localVarReturnValue, fmt.Errorf("projectId must have at least 36 elements") - } - if strlen(r.projectId) > 36 { - return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") - } - if r.resolveCustomerPayload == nil { - return localVarReturnValue, fmt.Errorf("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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 = 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 -} - -/* -ResolveCustomer: Resolve customer - -Get details about the requested subscription. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID. - @return ApiResolveCustomerRequest -*/ -func (a *APIClient) ResolveCustomer(ctx context.Context, projectId string) ApiResolveCustomerRequest { - return ResolveCustomerRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } -} - -func (a *APIClient) ResolveCustomerExecute(ctx context.Context, projectId string) (*VendorSubscription, error) { - r := ResolveCustomerRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } - 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 - projectId string - subscriptionId string -} - -func (r VendorsSubscriptionsRejectRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := 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{} - if strlen(r.projectId) < 36 { - return fmt.Errorf("projectId must have at least 36 elements") - } - if strlen(r.projectId) > 36 { - return fmt.Errorf("projectId must have less than 36 elements") - } - if strlen(r.subscriptionId) < 36 { - return fmt.Errorf("subscriptionId must have at least 36 elements") - } - if strlen(r.subscriptionId) > 36 { - return fmt.Errorf("subscriptionId must have less than 36 elements") - } - - // 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 := 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 := 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{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ErrorResponse - err = 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 = 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 = 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 = 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 -} - -/* -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 The project ID. - @param subscriptionId The subscription ID. - @return ApiVendorsSubscriptionsRejectRequest -*/ -func (a *APIClient) VendorsSubscriptionsReject(ctx context.Context, projectId string, subscriptionId string) ApiVendorsSubscriptionsRejectRequest { - return VendorsSubscriptionsRejectRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - subscriptionId: subscriptionId, - } -} - -func (a *APIClient) VendorsSubscriptionsRejectExecute(ctx context.Context, projectId string, subscriptionId string) error { - r := VendorsSubscriptionsRejectRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - subscriptionId: subscriptionId, - } - return r.Execute() -} diff --git a/services/stackitmarketplace/api_default_test.go b/services/stackitmarketplace/api_default_test.go deleted file mode 100644 index 94fc017168..0000000000 --- a/services/stackitmarketplace/api_default_test.go +++ /dev/null @@ -1,428 +0,0 @@ -/* -STACKIT Marketplace API - -Testing DefaultApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package stackitmarketplace - -import ( - "context" - "encoding/json" - "net/http" - "net/http/httptest" - "net/url" - "strings" - "testing" - - "github.com/stackitcloud/stackit-sdk-go/core/config" -) - -func Test_stackitmarketplace_DefaultApiService(t *testing.T) { - - t.Run("Test DefaultApiService ApproveSubscription", func(t *testing.T) { - _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/approve" - projectIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - subscriptionIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"subscriptionId"+"}", url.PathEscape(ParameterValueToString(subscriptionIdValue, "subscriptionId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - projectId := projectIdValue - subscriptionId := subscriptionIdValue - - reqErr := apiClient.ApproveSubscription(context.Background(), projectId, subscriptionId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - }) - - t.Run("Test DefaultApiService GetCatalogProduct", func(t *testing.T) { - _apiUrlPath := "/v1/catalog/products/{productId}" - productIdValue := randString(10) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"productId"+"}", url.PathEscape(ParameterValueToString(productIdValue, "productId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := CatalogProductDetail{} - w.Header().Add("Content-Type", "application/json") - json.NewEncoder(w).Encode(data) - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - productId := productIdValue - - resp, reqErr := apiClient.GetCatalogProduct(context.Background(), productId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - if IsNil(resp) { - t.Fatalf("response not present") - } - }) - - t.Run("Test DefaultApiService GetVendorSubscription", func(t *testing.T) { - _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}" - projectIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - subscriptionIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"subscriptionId"+"}", url.PathEscape(ParameterValueToString(subscriptionIdValue, "subscriptionId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := VendorSubscription{} - w.Header().Add("Content-Type", "application/json") - json.NewEncoder(w).Encode(data) - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - projectId := projectIdValue - subscriptionId := subscriptionIdValue - - resp, reqErr := apiClient.GetVendorSubscription(context.Background(), projectId, subscriptionId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - if IsNil(resp) { - t.Fatalf("response not present") - } - }) - - t.Run("Test DefaultApiService InquiriesCreateInquiry", func(t *testing.T) { - _apiUrlPath := "/v1/inquiries" - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - inquiriesCreateInquiryPayload := InquiriesCreateInquiryPayload{} - - reqErr := apiClient.InquiriesCreateInquiry(context.Background()).InquiriesCreateInquiryPayload(inquiriesCreateInquiryPayload).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - }) - - t.Run("Test DefaultApiService ListCatalogProducts", func(t *testing.T) { - _apiUrlPath := "/v1/catalog/products" - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := ListCatalogProductsResponse{} - w.Header().Add("Content-Type", "application/json") - json.NewEncoder(w).Encode(data) - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - resp, reqErr := apiClient.ListCatalogProducts(context.Background()).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - if IsNil(resp) { - t.Fatalf("response not present") - } - }) - - t.Run("Test DefaultApiService ListVendorSubscriptions", func(t *testing.T) { - _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions" - projectIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := ListVendorSubscriptionsResponse{} - w.Header().Add("Content-Type", "application/json") - json.NewEncoder(w).Encode(data) - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - projectId := projectIdValue - - resp, reqErr := apiClient.ListVendorSubscriptions(context.Background(), projectId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - if IsNil(resp) { - t.Fatalf("response not present") - } - }) - - t.Run("Test DefaultApiService ResolveCustomer", func(t *testing.T) { - _apiUrlPath := "/v1/vendors/projects/{projectId}/resolve-customer" - projectIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := VendorSubscription{} - w.Header().Add("Content-Type", "application/json") - json.NewEncoder(w).Encode(data) - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - projectId := projectIdValue - resolveCustomerPayload := ResolveCustomerPayload{} - - resp, reqErr := apiClient.ResolveCustomer(context.Background(), projectId).ResolveCustomerPayload(resolveCustomerPayload).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - if IsNil(resp) { - t.Fatalf("response not present") - } - }) - - t.Run("Test DefaultApiService VendorsSubscriptionsReject", func(t *testing.T) { - _apiUrlPath := "/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject" - projectIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - subscriptionIdValue := randString(36) - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"subscriptionId"+"}", url.PathEscape(ParameterValueToString(subscriptionIdValue, "subscriptionId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for stackitmarketplace_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - projectId := projectIdValue - subscriptionId := subscriptionIdValue - - reqErr := apiClient.VendorsSubscriptionsReject(context.Background(), projectId, subscriptionId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - }) - -} diff --git a/services/stackitmarketplace/client.go b/services/stackitmarketplace/client.go deleted file mode 100644 index 8003921cb1..0000000000 --- a/services/stackitmarketplace/client.go +++ /dev/null @@ -1,636 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -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 ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "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)/(?:vnd\.[^;]+\+)?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. -// 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. - defaultApi *DefaultApiService -} - -type service struct { - client DefaultApi -} - -// 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() - - 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 - 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 -} - -// 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) - } - 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{}, 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, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), 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) - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), 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(), collectionType) - } - return - - case reflect.Interface: - fallthrough - case reflect.Ptr: - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), 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 !IsNil(postBody) { - 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, fmt.Errorf("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, fmt.Errorf("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 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 fmt.Errorf("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 fmt.Errorf("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 - } - err = file.Close() - if err != nil { - return err - } - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// 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) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s", 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. -// 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 - 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) -} diff --git a/services/stackitmarketplace/configuration.go b/services/stackitmarketplace/configuration.go deleted file mode 100644 index 525cea60cf..0000000000 --- a/services/stackitmarketplace/configuration.go +++ /dev/null @@ -1,40 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -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 ( - "github.com/stackitcloud/stackit-sdk-go/core/config" -) - -// 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), - 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/go.mod b/services/stackitmarketplace/go.mod index f6f0ce842c..b83b564f93 100644 --- a/services/stackitmarketplace/go.mod +++ b/services/stackitmarketplace/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/stackitmarketplace go 1.25 -require github.com/stackitcloud/stackit-sdk-go/core v0.27.0 +require github.com/stackitcloud/stackit-sdk-go/core v0.27.1 require ( github.com/golang-jwt/jwt/v5 v5.3.1 // indirect diff --git a/services/stackitmarketplace/go.sum b/services/stackitmarketplace/go.sum index 042f4a71a5..5bae1d1250 100644 --- a/services/stackitmarketplace/go.sum +++ b/services/stackitmarketplace/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/stackitmarketplace/model_approve_subscription_payload.go b/services/stackitmarketplace/model_approve_subscription_payload.go deleted file mode 100644 index cebf079424..0000000000 --- a/services/stackitmarketplace/model_approve_subscription_payload.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -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 ( - "encoding/json" -) - -// checks if the ApproveSubscriptionPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApproveSubscriptionPayload{} - -/* - types and functions for instanceTarget -*/ - -// 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) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setApproveSubscriptionPayloadGetInstanceTargetAttributeType(arg *ApproveSubscriptionPayloadGetInstanceTargetAttributeType, val ApproveSubscriptionPayloadGetInstanceTargetRetType) { - *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"` -} - -// 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 -// 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 -} - -// 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 -} - -// 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() (ret ApproveSubscriptionPayloadGetInstanceTargetRetType, ok bool) { - return getApproveSubscriptionPayloadGetInstanceTargetAttributeTypeOk(o.InstanceTarget) -} - -// 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 { - toSerialize["InstanceTarget"] = val - } - 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_approve_subscription_payload_test.go b/services/stackitmarketplace/model_approve_subscription_payload_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_approve_subscription_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_assets.go b/services/stackitmarketplace/model_assets.go deleted file mode 100644 index b74d2acfdc..0000000000 --- a/services/stackitmarketplace/model_assets.go +++ /dev/null @@ -1,309 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -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 ( - "encoding/json" -) - -// checks if the Assets type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Assets{} - -/* - types and functions for endUserLicenseAgreement -*/ - -// 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) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setAssetsGetEndUserLicenseAgreementAttributeType(arg *AssetsGetEndUserLicenseAgreementAttributeType, val AssetsGetEndUserLicenseAgreementRetType) { - *arg = &val -} - -/* - types and functions for productDescription -*/ - -// 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) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setAssetsGetProductDescriptionAttributeType(arg *AssetsGetProductDescriptionAttributeType, val AssetsGetProductDescriptionRetType) { - *arg = &val -} - -/* - types and functions for serviceCertificate -*/ - -// 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) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setAssetsGetServiceCertificateAttributeType(arg *AssetsGetServiceCertificateAttributeType, val AssetsGetServiceCertificateRetType) { - *arg = &val -} - -/* - types and functions for serviceLevelAgreement -*/ - -// 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) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setAssetsGetServiceLevelAgreementAttributeType(arg *AssetsGetServiceLevelAgreementAttributeType, val AssetsGetServiceLevelAgreementRetType) { - *arg = &val -} - -// 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"` - ServiceCertificate AssetsGetServiceCertificateAttributeType `json:"serviceCertificate,omitempty"` - ServiceLevelAgreement AssetsGetServiceLevelAgreementAttributeType `json:"serviceLevelAgreement,omitempty"` -} - -// NewAssets instantiates a new Assets 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 NewAssets() *Assets { - this := Assets{} - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["EndUserLicenseAgreement"] = val - } - if val, ok := getAssetsGetProductDescriptionAttributeTypeOk(o.ProductDescription); ok { - toSerialize["ProductDescription"] = val - } - if val, ok := getAssetsGetServiceCertificateAttributeTypeOk(o.ServiceCertificate); ok { - toSerialize["ServiceCertificate"] = val - } - if val, ok := getAssetsGetServiceLevelAgreementAttributeTypeOk(o.ServiceLevelAgreement); ok { - toSerialize["ServiceLevelAgreement"] = val - } - 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 deleted file mode 100644 index 4911386baf..0000000000 --- a/services/stackitmarketplace/model_assets_end_user_license_agreement.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the AssetsEndUserLicenseAgreement type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssetsEndUserLicenseAgreement{} - -/* - types and functions for version -*/ - -// 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 - } - 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"` -} - -// NewAssetsEndUserLicenseAgreement instantiates a new AssetsEndUserLicenseAgreement 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 NewAssetsEndUserLicenseAgreement() *AssetsEndUserLicenseAgreement { - this := AssetsEndUserLicenseAgreement{} - return &this -} - -// 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 -} - -// 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 { - toSerialize["Version"] = val - } - 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_end_user_license_agreement_test.go b/services/stackitmarketplace/model_assets_end_user_license_agreement_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_assets_end_user_license_agreement_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_assets_product_description.go b/services/stackitmarketplace/model_assets_product_description.go deleted file mode 100644 index b0ea29168c..0000000000 --- a/services/stackitmarketplace/model_assets_product_description.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the AssetsProductDescription type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssetsProductDescription{} - -/* - types and functions for version -*/ - -// 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 - } - 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"` -} - -// NewAssetsProductDescription instantiates a new AssetsProductDescription 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 NewAssetsProductDescription() *AssetsProductDescription { - this := AssetsProductDescription{} - return &this -} - -// 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 -} - -// 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 { - toSerialize["Version"] = val - } - 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_product_description_test.go b/services/stackitmarketplace/model_assets_product_description_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_assets_product_description_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_assets_service_level_agreement.go b/services/stackitmarketplace/model_assets_service_level_agreement.go deleted file mode 100644 index b8288ebcad..0000000000 --- a/services/stackitmarketplace/model_assets_service_level_agreement.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the AssetsServiceLevelAgreement type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AssetsServiceLevelAgreement{} - -/* - types and functions for version -*/ - -// 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 - } - 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"` -} - -// NewAssetsServiceLevelAgreement instantiates a new AssetsServiceLevelAgreement 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 NewAssetsServiceLevelAgreement() *AssetsServiceLevelAgreement { - this := AssetsServiceLevelAgreement{} - return &this -} - -// 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 -} - -// 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 { - toSerialize["Version"] = val - } - 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_assets_service_level_agreement_test.go b/services/stackitmarketplace/model_assets_service_level_agreement_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_assets_service_level_agreement_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_assets_test.go b/services/stackitmarketplace/model_assets_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_assets_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_become_vendor.go b/services/stackitmarketplace/model_become_vendor.go deleted file mode 100644 index f23c398e42..0000000000 --- a/services/stackitmarketplace/model_become_vendor.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the BecomeVendor type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BecomeVendor{} - -/* - types and functions for 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 - } - 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 -} - -/* - types and functions for type -*/ - -// 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 - } - 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"` - // REQUIRED - 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) - setBecomeVendorGetTypeAttributeType(&this.Type, types) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["BecomeVendor"] = val - } - if val, ok := getBecomeVendorGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - 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_become_vendor_test.go b/services/stackitmarketplace/model_become_vendor_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_become_vendor_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_pricing_option_highlight.go b/services/stackitmarketplace/model_catalog_pricing_option_highlight.go deleted file mode 100644 index 8bcaff0719..0000000000 --- a/services/stackitmarketplace/model_catalog_pricing_option_highlight.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogPricingOptionHighlight type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogPricingOptionHighlight{} - -/* - types and functions for highlightContent -*/ - -// 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 - } - 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"` -} - -// NewCatalogPricingOptionHighlight instantiates a new CatalogPricingOptionHighlight 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 NewCatalogPricingOptionHighlight() *CatalogPricingOptionHighlight { - this := CatalogPricingOptionHighlight{} - return &this -} - -// 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 -} - -// 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 { - toSerialize["HighlightContent"] = val - } - 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_pricing_option_highlight_test.go b/services/stackitmarketplace/model_catalog_pricing_option_highlight_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_pricing_option_highlight_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_detail.go b/services/stackitmarketplace/model_catalog_product_detail.go deleted file mode 100644 index 78fa8aa3fd..0000000000 --- a/services/stackitmarketplace/model_catalog_product_detail.go +++ /dev/null @@ -1,1461 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductDetail type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductDetail{} - -/* - types and functions for assets -*/ - -// 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 - } - 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 -} - -/* - types and functions for categories -*/ - -// 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 - } - 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 -} - -/* - types and functions for deliveryMethod -*/ - -// 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 - } - 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 -} - -/* - types and functions for demoUrl -*/ - -// 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 - } - 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 - -/* - types and functions for description -*/ - -// 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 - } - 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 - -/* - types and functions for documentationUrl -*/ - -// 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 - } - 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 - -/* - types and functions for email -*/ - -// 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 - } - 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 - -/* - types and functions for hasDemo -*/ - -// 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 - } - 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 -} - -/* - types and functions for hasPrivatePlanOption -*/ - -// 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 - } - 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 -} - -/* - types and functions for highlights -*/ - -// 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 - } - 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 -} - -/* - types and functions for industries -*/ - -// 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 - } - 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 -} - -/* - types and functions for isProductListing -*/ - -// 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 - } - 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 -} - -/* - types and functions for lifecycleState -*/ - -// 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 - } - 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 -} - -/* - types and functions for logo -*/ - -// 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 - } - 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 - -/* - types and functions for name -*/ - -// 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 - } - 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 - -/* - types and functions for offerType -*/ - -// 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 - } - 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 -} - -/* - types and functions for pricingOptions -*/ - -// 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 - } - 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 -} - -/* - types and functions for productId -*/ - -// 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 - } - 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 - -/* - types and functions for summary -*/ - -// 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 - } - 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 - -/* - types and functions for supportFaq -*/ - -// 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 - } - 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 - -/* - types and functions for supportPhone -*/ - -// 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 - } - 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 - -/* - types and functions for supportResources -*/ - -// 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 - } - 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 -} - -/* - types and functions for vendor -*/ - -// 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 - } - 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 -} - -/* - types and functions for vendorTerms -*/ - -// 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 - } - 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 -} - -/* - types and functions for videoUrl -*/ - -// 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 - } - 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. - Categories CatalogProductDetailGetCategoriesAttributeType `json:"categories,omitempty"` - // REQUIRED - DeliveryMethod CatalogProductDetailGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` - // Uniform Resource Locator. - DemoUrl CatalogProductDetailGetDemoUrlAttributeType `json:"demoUrl,omitempty"` - // The product description. - // REQUIRED - Description CatalogProductDetailGetDescriptionAttributeType `json:"description" required:"true"` - // Uniform Resource Locator. - // REQUIRED - DocumentationUrl CatalogProductDetailGetDocumentationUrlAttributeType `json:"documentationUrl" required:"true"` - // A e-mail address. - Email CatalogProductDetailGetEmailAttributeType `json:"email,omitempty"` - // Boolean data type. - HasDemo CatalogProductDetailgetHasDemoAttributeType `json:"hasDemo,omitempty"` - // Boolean data type. - HasPrivatePlanOption CatalogProductDetailgetHasPrivatePlanOptionAttributeType `json:"hasPrivatePlanOption,omitempty"` - // The list of highlights. - // REQUIRED - Highlights CatalogProductDetailGetHighlightsAttributeType `json:"highlights" required:"true"` - // The list of industries associated to the product. - Industries CatalogProductDetailGetIndustriesAttributeType `json:"industries,omitempty"` - // Boolean data type. - IsProductListing CatalogProductDetailgetIsProductListingAttributeType `json:"isProductListing,omitempty"` - // REQUIRED - LifecycleState CatalogProductDetailGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` - // The logo information. - // REQUIRED - Logo CatalogProductDetailGetLogoAttributeType `json:"logo" required:"true"` - // The name of the product. - // REQUIRED - Name CatalogProductDetailGetNameAttributeType `json:"name" required:"true"` - // REQUIRED - OfferType CatalogProductDetailGetOfferTypeAttributeType `json:"offerType" required:"true"` - // The list of pricing options. - // REQUIRED - PricingOptions CatalogProductDetailGetPricingOptionsAttributeType `json:"pricingOptions" required:"true"` - // The user-readable product ID. - // REQUIRED - ProductId CatalogProductDetailGetProductIdAttributeType `json:"productId" required:"true"` - // The short summary of the product. - // REQUIRED - Summary CatalogProductDetailGetSummaryAttributeType `json:"summary" required:"true"` - // Uniform Resource Locator. - SupportFaq CatalogProductDetailGetSupportFaqAttributeType `json:"supportFaq,omitempty"` - // The phone number for support inquiries. - SupportPhone CatalogProductDetailGetSupportPhoneAttributeType `json:"supportPhone,omitempty"` - // The list of support resources. - SupportResources CatalogProductDetailGetSupportResourcesAttributeType `json:"supportResources,omitempty"` - // REQUIRED - Vendor CatalogProductDetailGetVendorAttributeType `json:"vendor" required:"true"` - // The list of terms of use. - VendorTerms CatalogProductDetailGetVendorTermsAttributeType `json:"vendorTerms,omitempty"` - // Uniform Resource Locator. - // REQUIRED - 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) - setCatalogProductDetailGetDescriptionAttributeType(&this.Description, description) - setCatalogProductDetailGetDocumentationUrlAttributeType(&this.DocumentationUrl, documentationUrl) - setCatalogProductDetailGetHighlightsAttributeType(&this.Highlights, highlights) - setCatalogProductDetailGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState) - setCatalogProductDetailGetLogoAttributeType(&this.Logo, logo) - setCatalogProductDetailGetNameAttributeType(&this.Name, name) - setCatalogProductDetailGetOfferTypeAttributeType(&this.OfferType, offerType) - setCatalogProductDetailGetPricingOptionsAttributeType(&this.PricingOptions, pricingOptions) - setCatalogProductDetailGetProductIdAttributeType(&this.ProductId, productId) - setCatalogProductDetailGetSummaryAttributeType(&this.Summary, summary) - setCatalogProductDetailGetVendorAttributeType(&this.Vendor, vendor) - setCatalogProductDetailGetVideoUrlAttributeType(&this.VideoUrl, videoUrl) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Assets"] = val - } - if val, ok := getCatalogProductDetailGetCategoriesAttributeTypeOk(o.Categories); ok { - toSerialize["Categories"] = val - } - if val, ok := getCatalogProductDetailGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod); ok { - toSerialize["DeliveryMethod"] = val - } - if val, ok := getCatalogProductDetailGetDemoUrlAttributeTypeOk(o.DemoUrl); ok { - toSerialize["DemoUrl"] = val - } - if val, ok := getCatalogProductDetailGetDescriptionAttributeTypeOk(o.Description); ok { - toSerialize["Description"] = val - } - if val, ok := getCatalogProductDetailGetDocumentationUrlAttributeTypeOk(o.DocumentationUrl); ok { - toSerialize["DocumentationUrl"] = val - } - if val, ok := getCatalogProductDetailGetEmailAttributeTypeOk(o.Email); ok { - toSerialize["Email"] = val - } - if val, ok := getCatalogProductDetailgetHasDemoAttributeTypeOk(o.HasDemo); ok { - toSerialize["HasDemo"] = val - } - if val, ok := getCatalogProductDetailgetHasPrivatePlanOptionAttributeTypeOk(o.HasPrivatePlanOption); ok { - toSerialize["HasPrivatePlanOption"] = val - } - if val, ok := getCatalogProductDetailGetHighlightsAttributeTypeOk(o.Highlights); ok { - toSerialize["Highlights"] = val - } - if val, ok := getCatalogProductDetailGetIndustriesAttributeTypeOk(o.Industries); ok { - toSerialize["Industries"] = val - } - if val, ok := getCatalogProductDetailgetIsProductListingAttributeTypeOk(o.IsProductListing); ok { - toSerialize["IsProductListing"] = val - } - if val, ok := getCatalogProductDetailGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok { - toSerialize["LifecycleState"] = val - } - if val, ok := getCatalogProductDetailGetLogoAttributeTypeOk(o.Logo); ok { - toSerialize["Logo"] = val - } - if val, ok := getCatalogProductDetailGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCatalogProductDetailGetOfferTypeAttributeTypeOk(o.OfferType); ok { - toSerialize["OfferType"] = val - } - if val, ok := getCatalogProductDetailGetPricingOptionsAttributeTypeOk(o.PricingOptions); ok { - toSerialize["PricingOptions"] = val - } - if val, ok := getCatalogProductDetailGetProductIdAttributeTypeOk(o.ProductId); ok { - toSerialize["ProductId"] = val - } - if val, ok := getCatalogProductDetailGetSummaryAttributeTypeOk(o.Summary); ok { - toSerialize["Summary"] = val - } - if val, ok := getCatalogProductDetailGetSupportFaqAttributeTypeOk(o.SupportFaq); ok { - toSerialize["SupportFaq"] = val - } - if val, ok := getCatalogProductDetailGetSupportPhoneAttributeTypeOk(o.SupportPhone); ok { - toSerialize["SupportPhone"] = val - } - if val, ok := getCatalogProductDetailGetSupportResourcesAttributeTypeOk(o.SupportResources); ok { - toSerialize["SupportResources"] = val - } - if val, ok := getCatalogProductDetailGetVendorAttributeTypeOk(o.Vendor); ok { - toSerialize["Vendor"] = val - } - if val, ok := getCatalogProductDetailGetVendorTermsAttributeTypeOk(o.VendorTerms); ok { - toSerialize["VendorTerms"] = val - } - if val, ok := getCatalogProductDetailGetVideoUrlAttributeTypeOk(o.VideoUrl); ok { - toSerialize["VideoUrl"] = val - } - 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_detail_test.go b/services/stackitmarketplace/model_catalog_product_detail_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_detail_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_details_vendor.go b/services/stackitmarketplace/model_catalog_product_details_vendor.go deleted file mode 100644 index c5466663f9..0000000000 --- a/services/stackitmarketplace/model_catalog_product_details_vendor.go +++ /dev/null @@ -1,413 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductDetailsVendor type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductDetailsVendor{} - -/* - types and functions for description -*/ - -// 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 - } - 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 - -/* - types and functions for logo -*/ - -// 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 - } - 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 - -/* - types and functions for name -*/ - -// 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 - } - 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 - -/* - types and functions for vendorId -*/ - -// 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 - } - 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 - -/* - types and functions for videoUrl -*/ - -// 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 - } - 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 - -/* - types and functions for websiteUrl -*/ - -// 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 - } - 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 - Description CatalogProductDetailsVendorGetDescriptionAttributeType `json:"description" required:"true"` - // The logo information. - // REQUIRED - Logo CatalogProductDetailsVendorGetLogoAttributeType `json:"logo" required:"true"` - // The product's vendor name. - // REQUIRED - Name CatalogProductDetailsVendorGetNameAttributeType `json:"name" required:"true"` - // Universally Unique Identifier (UUID). - // REQUIRED - VendorId CatalogProductDetailsVendorGetVendorIdAttributeType `json:"vendorId" required:"true"` - // Uniform Resource Locator. - // REQUIRED - VideoUrl CatalogProductDetailsVendorGetVideoUrlAttributeType `json:"videoUrl" required:"true"` - // Uniform Resource Locator. - // REQUIRED - 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) - setCatalogProductDetailsVendorGetLogoAttributeType(&this.Logo, logo) - setCatalogProductDetailsVendorGetNameAttributeType(&this.Name, name) - setCatalogProductDetailsVendorGetVendorIdAttributeType(&this.VendorId, vendorId) - setCatalogProductDetailsVendorGetVideoUrlAttributeType(&this.VideoUrl, videoUrl) - setCatalogProductDetailsVendorGetWebsiteUrlAttributeType(&this.WebsiteUrl, websiteUrl) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Description"] = val - } - if val, ok := getCatalogProductDetailsVendorGetLogoAttributeTypeOk(o.Logo); ok { - toSerialize["Logo"] = val - } - if val, ok := getCatalogProductDetailsVendorGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCatalogProductDetailsVendorGetVendorIdAttributeTypeOk(o.VendorId); ok { - toSerialize["VendorId"] = val - } - if val, ok := getCatalogProductDetailsVendorGetVideoUrlAttributeTypeOk(o.VideoUrl); ok { - toSerialize["VideoUrl"] = val - } - if val, ok := getCatalogProductDetailsVendorGetWebsiteUrlAttributeTypeOk(o.WebsiteUrl); ok { - toSerialize["WebsiteUrl"] = val - } - 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_details_vendor_test.go b/services/stackitmarketplace/model_catalog_product_details_vendor_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_details_vendor_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_facets_value_inner.go b/services/stackitmarketplace/model_catalog_product_facets_value_inner.go deleted file mode 100644 index 5336cae3ab..0000000000 --- a/services/stackitmarketplace/model_catalog_product_facets_value_inner.go +++ /dev/null @@ -1,201 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductFacetsValueInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductFacetsValueInner{} - -/* - types and functions for count -*/ - -// 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 - } - 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 -} - -/* - types and functions for value -*/ - -// 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 - } - 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. - // REQUIRED - Count CatalogProductFacetsValueInnerGetCountAttributeType `json:"count" required:"true"` - // The value of the facet. - // REQUIRED - 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) - setCatalogProductFacetsValueInnerGetValueAttributeType(&this.Value, value) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Count"] = val - } - if val, ok := getCatalogProductFacetsValueInnerGetValueAttributeTypeOk(o.Value); ok { - toSerialize["Value"] = val - } - 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_facets_value_inner_test.go b/services/stackitmarketplace/model_catalog_product_facets_value_inner_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_facets_value_inner_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_highlight.go b/services/stackitmarketplace/model_catalog_product_highlight.go deleted file mode 100644 index baf1739a15..0000000000 --- a/services/stackitmarketplace/model_catalog_product_highlight.go +++ /dev/null @@ -1,266 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductHighlight type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductHighlight{} - -/* - types and functions for highlightContent -*/ - -// 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 - } - 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 - -/* - types and functions for highlightIcon -*/ - -// 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 - } - 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 - -/* - types and functions for highlightTitle -*/ - -// 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 - } - 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"` - // The highlight icon. - HighlightIcon CatalogProductHighlightGetHighlightIconAttributeType `json:"highlightIcon,omitempty"` - // The highlight title. - HighlightTitle CatalogProductHighlightGetHighlightTitleAttributeType `json:"highlightTitle,omitempty"` -} - -// NewCatalogProductHighlight instantiates a new CatalogProductHighlight 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 NewCatalogProductHighlight() *CatalogProductHighlight { - this := CatalogProductHighlight{} - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["HighlightContent"] = val - } - if val, ok := getCatalogProductHighlightGetHighlightIconAttributeTypeOk(o.HighlightIcon); ok { - toSerialize["HighlightIcon"] = val - } - if val, ok := getCatalogProductHighlightGetHighlightTitleAttributeTypeOk(o.HighlightTitle); ok { - toSerialize["HighlightTitle"] = val - } - 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_highlight_test.go b/services/stackitmarketplace/model_catalog_product_highlight_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_highlight_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_overview.go b/services/stackitmarketplace/model_catalog_product_overview.go deleted file mode 100644 index 2169b696c3..0000000000 --- a/services/stackitmarketplace/model_catalog_product_overview.go +++ /dev/null @@ -1,521 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductOverview type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductOverview{} - -/* - types and functions for deliveryMethod -*/ - -// 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 - } - 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 -} - -/* - types and functions for freeTrial -*/ - -// 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 - } - 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 -} - -/* - types and functions for lifecycleState -*/ - -// 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 - } - 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 -} - -/* - types and functions for logo -*/ - -// 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 - } - 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 - -/* - types and functions for name -*/ - -// 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 - } - 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 - -/* - types and functions for productId -*/ - -// 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 - } - 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 - -/* - types and functions for summary -*/ - -// 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 - } - 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 - -/* - types and functions for vendor -*/ - -// 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 - } - 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"` - FreeTrial CatalogProductOverviewGetFreeTrialAttributeType `json:"freeTrial,omitempty"` - // REQUIRED - LifecycleState CatalogProductOverviewGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` - // The logo information. - Logo CatalogProductOverviewGetLogoAttributeType `json:"logo,omitempty"` - // The name of the product. - // REQUIRED - Name CatalogProductOverviewGetNameAttributeType `json:"name" required:"true"` - // The user-readable product ID. - // REQUIRED - ProductId CatalogProductOverviewGetProductIdAttributeType `json:"productId" required:"true"` - // A custom message. - // REQUIRED - Summary CatalogProductOverviewGetSummaryAttributeType `json:"summary" required:"true"` - // REQUIRED - 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) - setCatalogProductOverviewGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState) - setCatalogProductOverviewGetNameAttributeType(&this.Name, name) - setCatalogProductOverviewGetProductIdAttributeType(&this.ProductId, productId) - setCatalogProductOverviewGetSummaryAttributeType(&this.Summary, summary) - setCatalogProductOverviewGetVendorAttributeType(&this.Vendor, vendor) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["DeliveryMethod"] = val - } - if val, ok := getCatalogProductOverviewGetFreeTrialAttributeTypeOk(o.FreeTrial); ok { - toSerialize["FreeTrial"] = val - } - if val, ok := getCatalogProductOverviewGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok { - toSerialize["LifecycleState"] = val - } - if val, ok := getCatalogProductOverviewGetLogoAttributeTypeOk(o.Logo); ok { - toSerialize["Logo"] = val - } - if val, ok := getCatalogProductOverviewGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCatalogProductOverviewGetProductIdAttributeTypeOk(o.ProductId); ok { - toSerialize["ProductId"] = val - } - if val, ok := getCatalogProductOverviewGetSummaryAttributeTypeOk(o.Summary); ok { - toSerialize["Summary"] = val - } - if val, ok := getCatalogProductOverviewGetVendorAttributeTypeOk(o.Vendor); ok { - toSerialize["Vendor"] = val - } - 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_test.go b/services/stackitmarketplace/model_catalog_product_overview_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_overview_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_overview_vendor.go b/services/stackitmarketplace/model_catalog_product_overview_vendor.go deleted file mode 100644 index 7db2e3c33d..0000000000 --- a/services/stackitmarketplace/model_catalog_product_overview_vendor.go +++ /dev/null @@ -1,254 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductOverviewVendor type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductOverviewVendor{} - -/* - types and functions for name -*/ - -// 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 - } - 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 - -/* - types and functions for vendorId -*/ - -// 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 - } - 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 - -/* - types and functions for websiteUrl -*/ - -// 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 - } - 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 - Name CatalogProductOverviewVendorGetNameAttributeType `json:"name" required:"true"` - // Universally Unique Identifier (UUID). - // REQUIRED - VendorId CatalogProductOverviewVendorGetVendorIdAttributeType `json:"vendorId" required:"true"` - // Uniform Resource Locator. - // REQUIRED - 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) - setCatalogProductOverviewVendorGetVendorIdAttributeType(&this.VendorId, vendorId) - setCatalogProductOverviewVendorGetWebsiteUrlAttributeType(&this.WebsiteUrl, websiteUrl) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Name"] = val - } - if val, ok := getCatalogProductOverviewVendorGetVendorIdAttributeTypeOk(o.VendorId); ok { - toSerialize["VendorId"] = val - } - if val, ok := getCatalogProductOverviewVendorGetWebsiteUrlAttributeTypeOk(o.WebsiteUrl); ok { - toSerialize["WebsiteUrl"] = val - } - 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_overview_vendor_test.go b/services/stackitmarketplace/model_catalog_product_overview_vendor_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_overview_vendor_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_pricing_option.go b/services/stackitmarketplace/model_catalog_product_pricing_option.go deleted file mode 100644 index b39c478b4b..0000000000 --- a/services/stackitmarketplace/model_catalog_product_pricing_option.go +++ /dev/null @@ -1,800 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductPricingOption type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductPricingOption{} - -/* - types and functions for description -*/ - -// 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 - } - 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 - -/* - types and functions for highlights -*/ - -// 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 - } - 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 -} - -/* - types and functions for name -*/ - -// 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 - } - 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 - -/* - types and functions for noticePeriod -*/ - -// 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 - } - 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 -} - -/* - types and functions for planId -*/ - -// 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 - } - 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 - -/* - types and functions for priceType -*/ - -// 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 - } - 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 -} - -/* - types and functions for pricingPlan -*/ - -// 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 - } - 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 - -/* - types and functions for rate -*/ - -// 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 - } - 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 - -/* - types and functions for scope -*/ - -// 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 - } - 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 -} - -/* - types and functions for sku -*/ - -// 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 - } - 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 - -/* - types and functions for skuInfo -*/ - -// 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 - } - 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 - -/* - types and functions for skuInfoDetails -*/ - -// 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 - } - 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 - -/* - types and functions for unit -*/ - -// 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 - } - 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 - Description CatalogProductPricingOptionGetDescriptionAttributeType `json:"description" required:"true"` - // The list of highlights. - // REQUIRED - Highlights CatalogProductPricingOptionGetHighlightsAttributeType `json:"highlights" required:"true"` - // The pricing option name. - // REQUIRED - Name CatalogProductPricingOptionGetNameAttributeType `json:"name" required:"true"` - NoticePeriod CatalogProductPricingOptionGetNoticePeriodAttributeType `json:"noticePeriod,omitempty"` - // The user-readable plan ID of a pricing option. - // REQUIRED - PlanId CatalogProductPricingOptionGetPlanIdAttributeType `json:"planId" required:"true"` - PriceType CatalogProductPricingOptionGetPriceTypeAttributeType `json:"priceType,omitempty"` - // Additional price type information. - PricingPlan CatalogProductPricingOptionGetPricingPlanAttributeType `json:"pricingPlan,omitempty"` - // The price of the product (per unit). - Rate CatalogProductPricingOptionGetRateAttributeType `json:"rate,omitempty"` - // REQUIRED - Scope CatalogProductPricingOptionGetScopeAttributeType `json:"scope" required:"true"` - // The concrete variant of the product. - // REQUIRED - Sku CatalogProductPricingOptionGetSkuAttributeType `json:"sku" required:"true"` - // Short description of this offering. - // REQUIRED - SkuInfo CatalogProductPricingOptionGetSkuInfoAttributeType `json:"skuInfo" required:"true"` - // More details about what this offering entails. - // REQUIRED - SkuInfoDetails CatalogProductPricingOptionGetSkuInfoDetailsAttributeType `json:"skuInfoDetails" required:"true"` - 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) - setCatalogProductPricingOptionGetHighlightsAttributeType(&this.Highlights, highlights) - setCatalogProductPricingOptionGetNameAttributeType(&this.Name, name) - setCatalogProductPricingOptionGetPlanIdAttributeType(&this.PlanId, planId) - setCatalogProductPricingOptionGetScopeAttributeType(&this.Scope, scope) - setCatalogProductPricingOptionGetSkuAttributeType(&this.Sku, sku) - setCatalogProductPricingOptionGetSkuInfoAttributeType(&this.SkuInfo, skuInfo) - setCatalogProductPricingOptionGetSkuInfoDetailsAttributeType(&this.SkuInfoDetails, skuInfoDetails) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Description"] = val - } - if val, ok := getCatalogProductPricingOptionGetHighlightsAttributeTypeOk(o.Highlights); ok { - toSerialize["Highlights"] = val - } - if val, ok := getCatalogProductPricingOptionGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCatalogProductPricingOptionGetNoticePeriodAttributeTypeOk(o.NoticePeriod); ok { - toSerialize["NoticePeriod"] = val - } - if val, ok := getCatalogProductPricingOptionGetPlanIdAttributeTypeOk(o.PlanId); ok { - toSerialize["PlanId"] = val - } - if val, ok := getCatalogProductPricingOptionGetPriceTypeAttributeTypeOk(o.PriceType); ok { - toSerialize["PriceType"] = val - } - if val, ok := getCatalogProductPricingOptionGetPricingPlanAttributeTypeOk(o.PricingPlan); ok { - toSerialize["PricingPlan"] = val - } - if val, ok := getCatalogProductPricingOptionGetRateAttributeTypeOk(o.Rate); ok { - toSerialize["Rate"] = val - } - if val, ok := getCatalogProductPricingOptionGetScopeAttributeTypeOk(o.Scope); ok { - toSerialize["Scope"] = val - } - if val, ok := getCatalogProductPricingOptionGetSkuAttributeTypeOk(o.Sku); ok { - toSerialize["Sku"] = val - } - if val, ok := getCatalogProductPricingOptionGetSkuInfoAttributeTypeOk(o.SkuInfo); ok { - toSerialize["SkuInfo"] = val - } - if val, ok := getCatalogProductPricingOptionGetSkuInfoDetailsAttributeTypeOk(o.SkuInfoDetails); ok { - toSerialize["SkuInfoDetails"] = val - } - if val, ok := getCatalogProductPricingOptionGetUnitAttributeTypeOk(o.Unit); ok { - toSerialize["Unit"] = val - } - 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_pricing_option_test.go b/services/stackitmarketplace/model_catalog_product_pricing_option_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_pricing_option_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_support_resource.go b/services/stackitmarketplace/model_catalog_product_support_resource.go deleted file mode 100644 index 11f9cb107f..0000000000 --- a/services/stackitmarketplace/model_catalog_product_support_resource.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductSupportResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductSupportResource{} - -/* - types and functions for supportLink -*/ - -// 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 - } - 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 - -/* - types and functions for supportLinkTitle -*/ - -// 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 - } - 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"` - // The support resource link title. - SupportLinkTitle CatalogProductSupportResourceGetSupportLinkTitleAttributeType `json:"supportLinkTitle,omitempty"` -} - -// NewCatalogProductSupportResource instantiates a new CatalogProductSupportResource 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 NewCatalogProductSupportResource() *CatalogProductSupportResource { - this := CatalogProductSupportResource{} - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["SupportLink"] = val - } - if val, ok := getCatalogProductSupportResourceGetSupportLinkTitleAttributeTypeOk(o.SupportLinkTitle); ok { - toSerialize["SupportLinkTitle"] = val - } - 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_support_resource_test.go b/services/stackitmarketplace/model_catalog_product_support_resource_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_support_resource_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_catalog_product_vendor_terms.go b/services/stackitmarketplace/model_catalog_product_vendor_terms.go deleted file mode 100644 index 2f5a95a6fc..0000000000 --- a/services/stackitmarketplace/model_catalog_product_vendor_terms.go +++ /dev/null @@ -1,254 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the CatalogProductVendorTerms type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CatalogProductVendorTerms{} - -/* - types and functions for description -*/ - -// 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 - } - 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 - -/* - types and functions for title -*/ - -// 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 - } - 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 - -/* - types and functions for url -*/ - -// 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 - } - 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 - Description CatalogProductVendorTermsGetDescriptionAttributeType `json:"description" required:"true"` - // The terms of service title. - // REQUIRED - Title CatalogProductVendorTermsGetTitleAttributeType `json:"title" required:"true"` - // Uniform Resource Locator. - // REQUIRED - 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) - setCatalogProductVendorTermsGetTitleAttributeType(&this.Title, title) - setCatalogProductVendorTermsGetUrlAttributeType(&this.Url, url) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Description"] = val - } - if val, ok := getCatalogProductVendorTermsGetTitleAttributeTypeOk(o.Title); ok { - toSerialize["Title"] = val - } - if val, ok := getCatalogProductVendorTermsGetUrlAttributeTypeOk(o.Url); ok { - toSerialize["Url"] = val - } - 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_catalog_product_vendor_terms_test.go b/services/stackitmarketplace/model_catalog_product_vendor_terms_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_catalog_product_vendor_terms_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_contact_sales.go b/services/stackitmarketplace/model_contact_sales.go deleted file mode 100644 index 07b40b9a6a..0000000000 --- a/services/stackitmarketplace/model_contact_sales.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the ContactSales type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ContactSales{} - -/* - types and functions for 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 - } - 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 -} - -/* - types and functions for type -*/ - -// 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 - } - 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"` - // REQUIRED - 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) - setContactSalesGetTypeAttributeType(&this.Type, types) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["ContactSales"] = val - } - if val, ok := getContactSalesGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - 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_contact_sales_test.go b/services/stackitmarketplace/model_contact_sales_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_contact_sales_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_delivery_method.go b/services/stackitmarketplace/model_delivery_method.go deleted file mode 100644 index 6212d75441..0000000000 --- a/services/stackitmarketplace/model_delivery_method.go +++ /dev/null @@ -1,137 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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", - "SAI", - "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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := DeliveryMethod(value) - for _, existing := range AllowedDeliveryMethodEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid DeliveryMethod", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for DeliveryMethod: valid values are %v", v, AllowedDeliveryMethodEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_delivery_method_test.go b/services/stackitmarketplace/model_delivery_method_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_delivery_method_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_error_response.go b/services/stackitmarketplace/model_error_response.go deleted file mode 100644 index 54654beb32..0000000000 --- a/services/stackitmarketplace/model_error_response.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "time" -) - -// checks if the ErrorResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ErrorResponse{} - -/* - types and functions for error -*/ - -// 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 - } - 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 - -/* - types and functions for message -*/ - -// 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 - } - 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 - -/* - types and functions for path -*/ - -// 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 - } - 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 - -/* - types and functions for status -*/ - -// 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 - } - 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 -} - -/* - types and functions for timeStamp -*/ - -// 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 - } - 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 - Error ErrorResponseGetErrorAttributeType `json:"error" required:"true"` - // Description of the error. - // REQUIRED - Message ErrorResponseGetMessageAttributeType `json:"message" required:"true"` - // Path which was called. - // REQUIRED - Path ErrorResponseGetPathAttributeType `json:"path" required:"true"` - // HTTP response status code. - // Can be cast to int32 without loss of precision. - // REQUIRED - Status ErrorResponseGetStatusAttributeType `json:"status" required:"true"` - // Timestamp at which the error occurred. - // REQUIRED - 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_) - setErrorResponseGetMessageAttributeType(&this.Message, message) - setErrorResponseGetPathAttributeType(&this.Path, path) - setErrorResponseGetStatusAttributeType(&this.Status, status) - setErrorResponseGetTimeStampAttributeType(&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 -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Error"] = val - } - if val, ok := getErrorResponseGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - if val, ok := getErrorResponseGetPathAttributeTypeOk(o.Path); ok { - toSerialize["Path"] = val - } - if val, ok := getErrorResponseGetStatusAttributeTypeOk(o.Status); ok { - toSerialize["Status"] = val - } - if val, ok := getErrorResponseGetTimeStampAttributeTypeOk(o.TimeStamp); ok { - toSerialize["TimeStamp"] = val - } - 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_error_response_test.go b/services/stackitmarketplace/model_error_response_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_error_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_free_trial.go b/services/stackitmarketplace/model_free_trial.go deleted file mode 100644 index 1887e2638c..0000000000 --- a/services/stackitmarketplace/model_free_trial.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the FreeTrial type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FreeTrial{} - -/* - types and functions for value -*/ - -// 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 - } - 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"` -} - -// NewFreeTrial instantiates a new FreeTrial 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 NewFreeTrial() *FreeTrial { - this := FreeTrial{} - return &this -} - -// 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 -} - -// 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 { - toSerialize["Value"] = val - } - 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_free_trial_test.go b/services/stackitmarketplace/model_free_trial_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_free_trial_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go b/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go deleted file mode 100644 index f07e11b391..0000000000 --- a/services/stackitmarketplace/model_inquiries_create_inquiry_payload.go +++ /dev/null @@ -1,245 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 - RegisterTesting *RegisterTesting - RequestPrivatePlan *RequestPrivatePlan - SuggestProduct *SuggestProduct -} - -// 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, - } -} - -// 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, - } -} - -// 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, - } -} - -// 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, - } -} - -// 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, - } -} - -// 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 - // Workaround until upstream issue is fixed: - // https://github.com/OpenAPITools/openapi-generator/issues/21751 - // Tracking issue on our side: https://jira.schwarz/browse/STACKITSDK-226 - // try to unmarshal data into SuggestProduct - dstInquiriesCreateInquiryPayload1 := &InquiriesCreateInquiryPayload{} - err = json.Unmarshal(data, &dstInquiriesCreateInquiryPayload1.SuggestProduct) - if err == nil { - jsonSuggestProduct, _ := json.Marshal(&dstInquiriesCreateInquiryPayload1.SuggestProduct) - if string(jsonSuggestProduct) != "{}" { // empty struct - dst.SuggestProduct = dstInquiriesCreateInquiryPayload1.SuggestProduct - match++ - } - } - - // try to unmarshal data into ContactSales - dstInquiriesCreateInquiryPayload2 := &InquiriesCreateInquiryPayload{} - err = json.Unmarshal(data, &dstInquiriesCreateInquiryPayload2.ContactSales) - if err == nil { - jsonContactSales, _ := json.Marshal(&dstInquiriesCreateInquiryPayload2.ContactSales) - if string(jsonContactSales) != "{}" { // empty struct - dst.ContactSales = dstInquiriesCreateInquiryPayload2.ContactSales - match++ - } - } - - // try to unmarshal data into BecomeVendor - dstInquiriesCreateInquiryPayload3 := &InquiriesCreateInquiryPayload{} - err = json.Unmarshal(data, &dstInquiriesCreateInquiryPayload3.BecomeVendor) - if err == nil { - jsonBecomeVendor, _ := json.Marshal(&dstInquiriesCreateInquiryPayload3.BecomeVendor) - if string(jsonBecomeVendor) != "{}" { // empty struct - dst.BecomeVendor = dstInquiriesCreateInquiryPayload3.BecomeVendor - match++ - } - } - - // try to unmarshal data into RequestPrivatePlan - dstInquiriesCreateInquiryPayload4 := &InquiriesCreateInquiryPayload{} - err = json.Unmarshal(data, &dstInquiriesCreateInquiryPayload4.RequestPrivatePlan) - if err == nil { - jsonRequestPrivatePlan, _ := json.Marshal(&dstInquiriesCreateInquiryPayload4.RequestPrivatePlan) - if string(jsonRequestPrivatePlan) != "{}" { // empty struct - dst.RequestPrivatePlan = dstInquiriesCreateInquiryPayload4.RequestPrivatePlan - match++ - } - } - - // try to unmarshal data into RegisterTesting - dstInquiriesCreateInquiryPayload5 := &InquiriesCreateInquiryPayload{} - err = json.Unmarshal(data, &dstInquiriesCreateInquiryPayload5.RegisterTesting) - if err == nil { - jsonRegisterTesting, _ := json.Marshal(&dstInquiriesCreateInquiryPayload5.RegisterTesting) - if string(jsonRegisterTesting) != "{}" { // empty struct - dst.RegisterTesting = dstInquiriesCreateInquiryPayload5.RegisterTesting - match++ - } - } - - if match > 1 { // more than 1 match - // reset to nil - dst.BecomeVendor = nil - dst.ContactSales = nil - dst.RegisterTesting = nil - dst.RequestPrivatePlan = nil - dst.SuggestProduct = nil - - return fmt.Errorf("data matches more than one schema in oneOf(InquiriesCreateInquiryPayload)") - } else if match == 1 { - return nil // exactly one match - } else { // no match - return fmt.Errorf("data failed to match schemas in oneOf(InquiriesCreateInquiryPayload)") - } -} - -// 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) - } - - if src.ContactSales != nil { - return json.Marshal(&src.ContactSales) - } - - if src.RegisterTesting != nil { - return json.Marshal(&src.RegisterTesting) - } - - if src.RequestPrivatePlan != nil { - return json.Marshal(&src.RequestPrivatePlan) - } - - if src.SuggestProduct != nil { - return json.Marshal(&src.SuggestProduct) - } - - return []byte("{}"), nil // no data in oneOf schemas => empty JSON object -} - -// 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 - } - if obj.BecomeVendor != nil { - return obj.BecomeVendor - } - - if obj.ContactSales != nil { - return obj.ContactSales - } - - if obj.RegisterTesting != nil { - return obj.RegisterTesting - } - - if obj.RequestPrivatePlan != nil { - return obj.RequestPrivatePlan - } - - if obj.SuggestProduct != nil { - return obj.SuggestProduct - } - - // all schemas are nil - 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_inquiries_create_inquiry_payload_test.go b/services/stackitmarketplace/model_inquiries_create_inquiry_payload_test.go deleted file mode 100644 index 7d2cddb4de..0000000000 --- a/services/stackitmarketplace/model_inquiries_create_inquiry_payload_test.go +++ /dev/null @@ -1,43 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "testing" -) - -// isOneOf - -func TestInquiriesCreateInquiryPayload_UnmarshalJSON(t *testing.T) { - type args struct { - src []byte - } - tests := []struct { - name string - args args - wantErr bool - }{} - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - v := &InquiriesCreateInquiryPayload{} - if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) - } - marshalJson, err := v.MarshalJSON() - if err != nil { - t.Fatalf("failed marshalling InquiriesCreateInquiryPayload: %v", err) - } - if string(marshalJson) != string(tt.args.src) { - t.Fatalf("wanted %s, get %s", tt.args.src, marshalJson) - } - }) - } -} diff --git a/services/stackitmarketplace/model_inquiry_become_vendor.go b/services/stackitmarketplace/model_inquiry_become_vendor.go deleted file mode 100644 index 0a71fd2ea2..0000000000 --- a/services/stackitmarketplace/model_inquiry_become_vendor.go +++ /dev/null @@ -1,201 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the InquiryBecomeVendor type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InquiryBecomeVendor{} - -/* - types and functions for contactEmail -*/ - -// 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 - } - 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 - -/* - types and functions for message -*/ - -// 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 - } - 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 - ContactEmail InquiryBecomeVendorGetContactEmailAttributeType `json:"contactEmail" required:"true"` - // A custom message. - // REQUIRED - 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) - setInquiryBecomeVendorGetMessageAttributeType(&this.Message, message) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["ContactEmail"] = val - } - if val, ok := getInquiryBecomeVendorGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - 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_become_vendor_test.go b/services/stackitmarketplace/model_inquiry_become_vendor_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_inquiry_become_vendor_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_inquiry_contact_sales.go b/services/stackitmarketplace/model_inquiry_contact_sales.go deleted file mode 100644 index df4969a52f..0000000000 --- a/services/stackitmarketplace/model_inquiry_contact_sales.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the InquiryContactSales type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InquiryContactSales{} - -/* - types and functions for companyName -*/ - -// 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 - } - 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 - -/* - types and functions for contactEmail -*/ - -// 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 - } - 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 - -/* - types and functions for fullName -*/ - -// 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 - } - 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 - -/* - types and functions for message -*/ - -// 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 - } - 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 - -/* - types and functions for productId -*/ - -// 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 - } - 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 - CompanyName InquiryContactSalesGetCompanyNameAttributeType `json:"companyName" required:"true"` - // A e-mail address. - // REQUIRED - ContactEmail InquiryContactSalesGetContactEmailAttributeType `json:"contactEmail" required:"true"` - // The full name of the contact person. - // REQUIRED - FullName InquiryContactSalesGetFullNameAttributeType `json:"fullName" required:"true"` - // A custom message. - // REQUIRED - Message InquiryContactSalesGetMessageAttributeType `json:"message" required:"true"` - // The user-readable product ID. - // REQUIRED - 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) - setInquiryContactSalesGetContactEmailAttributeType(&this.ContactEmail, contactEmail) - setInquiryContactSalesGetFullNameAttributeType(&this.FullName, fullName) - setInquiryContactSalesGetMessageAttributeType(&this.Message, message) - setInquiryContactSalesGetProductIdAttributeType(&this.ProductId, productId) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["CompanyName"] = val - } - if val, ok := getInquiryContactSalesGetContactEmailAttributeTypeOk(o.ContactEmail); ok { - toSerialize["ContactEmail"] = val - } - if val, ok := getInquiryContactSalesGetFullNameAttributeTypeOk(o.FullName); ok { - toSerialize["FullName"] = val - } - if val, ok := getInquiryContactSalesGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - if val, ok := getInquiryContactSalesGetProductIdAttributeTypeOk(o.ProductId); ok { - toSerialize["ProductId"] = val - } - 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_contact_sales_test.go b/services/stackitmarketplace/model_inquiry_contact_sales_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_inquiry_contact_sales_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_inquiry_form_type.go b/services/stackitmarketplace/model_inquiry_form_type.go deleted file mode 100644 index a6e5d08151..0000000000 --- a/services/stackitmarketplace/model_inquiry_form_type.go +++ /dev/null @@ -1,140 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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", - "BECOME_VENDOR", - "REGISTER_TESTING", - "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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := InquiryFormType(value) - for _, existing := range AllowedInquiryFormTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid InquiryFormType", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for InquiryFormType: valid values are %v", v, AllowedInquiryFormTypeEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_form_type_test.go b/services/stackitmarketplace/model_inquiry_form_type_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_inquiry_form_type_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_inquiry_register_testing.go b/services/stackitmarketplace/model_inquiry_register_testing.go deleted file mode 100644 index 29d57c7042..0000000000 --- a/services/stackitmarketplace/model_inquiry_register_testing.go +++ /dev/null @@ -1,254 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the InquiryRegisterTesting type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InquiryRegisterTesting{} - -/* - types and functions for contactEmail -*/ - -// 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 - } - 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 - -/* - types and functions for fullName -*/ - -// 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 - } - 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 - -/* - types and functions for message -*/ - -// 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 - } - 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 - ContactEmail InquiryRegisterTestingGetContactEmailAttributeType `json:"contactEmail" required:"true"` - // The full name of the contact person. - // REQUIRED - FullName InquiryRegisterTestingGetFullNameAttributeType `json:"fullName" required:"true"` - // A custom message. - // REQUIRED - 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) - setInquiryRegisterTestingGetFullNameAttributeType(&this.FullName, fullName) - setInquiryRegisterTestingGetMessageAttributeType(&this.Message, message) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["ContactEmail"] = val - } - if val, ok := getInquiryRegisterTestingGetFullNameAttributeTypeOk(o.FullName); ok { - toSerialize["FullName"] = val - } - if val, ok := getInquiryRegisterTestingGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - 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_register_testing_test.go b/services/stackitmarketplace/model_inquiry_register_testing_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_inquiry_register_testing_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_inquiry_request_private_plan.go b/services/stackitmarketplace/model_inquiry_request_private_plan.go deleted file mode 100644 index 36e456f521..0000000000 --- a/services/stackitmarketplace/model_inquiry_request_private_plan.go +++ /dev/null @@ -1,360 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the InquiryRequestPrivatePlan type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InquiryRequestPrivatePlan{} - -/* - types and functions for companyName -*/ - -// 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 - } - 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 - -/* - types and functions for contactEmail -*/ - -// 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 - } - 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 - -/* - types and functions for fullName -*/ - -// 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 - } - 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 - -/* - types and functions for message -*/ - -// 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 - } - 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 - -/* - types and functions for productId -*/ - -// 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 - } - 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 - CompanyName InquiryRequestPrivatePlanGetCompanyNameAttributeType `json:"companyName" required:"true"` - // A e-mail address. - // REQUIRED - ContactEmail InquiryRequestPrivatePlanGetContactEmailAttributeType `json:"contactEmail" required:"true"` - // The full name of the contact person. - // REQUIRED - FullName InquiryRequestPrivatePlanGetFullNameAttributeType `json:"fullName" required:"true"` - // A custom message. - // REQUIRED - Message InquiryRequestPrivatePlanGetMessageAttributeType `json:"message" required:"true"` - // The user-readable product ID. - // REQUIRED - 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) - setInquiryRequestPrivatePlanGetContactEmailAttributeType(&this.ContactEmail, contactEmail) - setInquiryRequestPrivatePlanGetFullNameAttributeType(&this.FullName, fullName) - setInquiryRequestPrivatePlanGetMessageAttributeType(&this.Message, message) - setInquiryRequestPrivatePlanGetProductIdAttributeType(&this.ProductId, productId) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["CompanyName"] = val - } - if val, ok := getInquiryRequestPrivatePlanGetContactEmailAttributeTypeOk(o.ContactEmail); ok { - toSerialize["ContactEmail"] = val - } - if val, ok := getInquiryRequestPrivatePlanGetFullNameAttributeTypeOk(o.FullName); ok { - toSerialize["FullName"] = val - } - if val, ok := getInquiryRequestPrivatePlanGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - if val, ok := getInquiryRequestPrivatePlanGetProductIdAttributeTypeOk(o.ProductId); ok { - toSerialize["ProductId"] = val - } - 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_request_private_plan_test.go b/services/stackitmarketplace/model_inquiry_request_private_plan_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_inquiry_request_private_plan_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_inquiry_suggest_product.go b/services/stackitmarketplace/model_inquiry_suggest_product.go deleted file mode 100644 index 3fe62f4ed8..0000000000 --- a/services/stackitmarketplace/model_inquiry_suggest_product.go +++ /dev/null @@ -1,312 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the InquirySuggestProduct type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InquirySuggestProduct{} - -/* - types and functions for companyName -*/ - -// 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 - } - 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 - -/* - types and functions for message -*/ - -// 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 - } - 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 - -/* - types and functions for name -*/ - -// 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 - } - 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 - -/* - types and functions for url -*/ - -// 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 - } - 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 - CompanyName InquirySuggestProductGetCompanyNameAttributeType `json:"companyName" required:"true"` - // A custom message. - Message InquirySuggestProductGetMessageAttributeType `json:"message,omitempty"` - // The name of the product. - // REQUIRED - Name InquirySuggestProductGetNameAttributeType `json:"name" required:"true"` - // Uniform Resource Locator. - // REQUIRED - 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) - setInquirySuggestProductGetNameAttributeType(&this.Name, name) - setInquirySuggestProductGetUrlAttributeType(&this.Url, url) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["CompanyName"] = val - } - if val, ok := getInquirySuggestProductGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - if val, ok := getInquirySuggestProductGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getInquirySuggestProductGetUrlAttributeTypeOk(o.Url); ok { - toSerialize["Url"] = val - } - 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_inquiry_suggest_product_test.go b/services/stackitmarketplace/model_inquiry_suggest_product_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_inquiry_suggest_product_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_list_catalog_products_response.go b/services/stackitmarketplace/model_list_catalog_products_response.go deleted file mode 100644 index e07dc21d08..0000000000 --- a/services/stackitmarketplace/model_list_catalog_products_response.go +++ /dev/null @@ -1,310 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the ListCatalogProductsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListCatalogProductsResponse{} - -/* - types and functions for cursor -*/ - -// 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 - } - 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 - -/* - types and functions for facets -*/ - -// 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 - } - 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 -} - -/* - types and functions for items -*/ - -// 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 - } - 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 -} - -/* - types and functions for limit -*/ - -// 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 - } - 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 - Cursor ListCatalogProductsResponseGetCursorAttributeType `json:"cursor" required:"true"` - // A collection of facets, where each key represents a facet category. - Facets ListCatalogProductsResponseGetFacetsAttributeType `json:"facets,omitempty"` - // REQUIRED - Items ListCatalogProductsResponseGetItemsAttributeType `json:"items" required:"true"` - // Limit for returned Objects. - // REQUIRED - 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) - setListCatalogProductsResponseGetItemsAttributeType(&this.Items, items) - setListCatalogProductsResponseGetLimitAttributeType(&this.Limit, limit) - return &this -} - -// 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 - this.Limit = &limit - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Cursor"] = val - } - if val, ok := getListCatalogProductsResponseGetFacetsAttributeTypeOk(o.Facets); ok { - toSerialize["Facets"] = val - } - if val, ok := getListCatalogProductsResponseGetItemsAttributeTypeOk(o.Items); ok { - toSerialize["Items"] = val - } - if val, ok := getListCatalogProductsResponseGetLimitAttributeTypeOk(o.Limit); ok { - toSerialize["Limit"] = val - } - 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_catalog_products_response_test.go b/services/stackitmarketplace/model_list_catalog_products_response_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_list_catalog_products_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_list_vendor_subscriptions_response.go b/services/stackitmarketplace/model_list_vendor_subscriptions_response.go deleted file mode 100644 index 1311d734e8..0000000000 --- a/services/stackitmarketplace/model_list_vendor_subscriptions_response.go +++ /dev/null @@ -1,254 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the ListVendorSubscriptionsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListVendorSubscriptionsResponse{} - -/* - types and functions for cursor -*/ - -// 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 - } - 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 - -/* - types and functions for items -*/ - -// 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 - } - 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 -} - -/* - types and functions for limit -*/ - -// 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 - } - 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 - Cursor ListVendorSubscriptionsResponseGetCursorAttributeType `json:"cursor" required:"true"` - // List of subscriptions. - // REQUIRED - Items ListVendorSubscriptionsResponseGetItemsAttributeType `json:"items" required:"true"` - // Limit for returned Objects. - // REQUIRED - 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) - setListVendorSubscriptionsResponseGetItemsAttributeType(&this.Items, items) - setListVendorSubscriptionsResponseGetLimitAttributeType(&this.Limit, limit) - return &this -} - -// 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 - this.Limit = &limit - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Cursor"] = val - } - if val, ok := getListVendorSubscriptionsResponseGetItemsAttributeTypeOk(o.Items); ok { - toSerialize["Items"] = val - } - if val, ok := getListVendorSubscriptionsResponseGetLimitAttributeTypeOk(o.Limit); ok { - toSerialize["Limit"] = val - } - 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_list_vendor_subscriptions_response_test.go b/services/stackitmarketplace/model_list_vendor_subscriptions_response_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_list_vendor_subscriptions_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_localized_version.go b/services/stackitmarketplace/model_localized_version.go deleted file mode 100644 index 2315e35621..0000000000 --- a/services/stackitmarketplace/model_localized_version.go +++ /dev/null @@ -1,208 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the LocalizedVersion type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LocalizedVersion{} - -/* - types and functions for de -*/ - -// 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 - } - 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 - -/* - types and functions for en -*/ - -// 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 - } - 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"` - // The file version matching the file name (localized). - En LocalizedVersionGetEnAttributeType `json:"en,omitempty"` -} - -// NewLocalizedVersion instantiates a new LocalizedVersion 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 NewLocalizedVersion() *LocalizedVersion { - this := LocalizedVersion{} - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["De"] = val - } - if val, ok := getLocalizedVersionGetEnAttributeTypeOk(o.En); ok { - toSerialize["En"] = val - } - 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_localized_version_test.go b/services/stackitmarketplace/model_localized_version_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_localized_version_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_notice_period.go b/services/stackitmarketplace/model_notice_period.go deleted file mode 100644 index f4bd3bfce4..0000000000 --- a/services/stackitmarketplace/model_notice_period.go +++ /dev/null @@ -1,326 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// checks if the NoticePeriod type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &NoticePeriod{} - -/* - types and functions for type -*/ - -// isEnum - -// 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 -const ( - NOTICEPERIODTYPE_SAME_DAY NoticePeriodTypes = "SAME_DAY" - NOTICEPERIODTYPE_DAYS NoticePeriodTypes = "DAYS" - NOTICEPERIODTYPE_MONTHS NoticePeriodTypes = "MONTHS" -) - -// All allowed values of NoticePeriod enum -var AllowedNoticePeriodTypesEnumValues = []NoticePeriodTypes{ - "SAME_DAY", - "DAYS", - "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 - type TmpJson NoticePeriodTypes - var value TmpJson - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue TmpJson - if value == zeroValue { - return nil - } - enumTypeValue := NoticePeriodTypes(value) - for _, existing := range AllowedNoticePeriodTypesEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid NoticePeriod", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for NoticePeriodTypes: valid values are %v", v, AllowedNoticePeriodTypesEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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 - } - 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 -} - -/* - types and functions for value -*/ - -// 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 - } - 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"` - // The value of the corresponding type. Omitted for _SAME_DAY_. - Value NoticePeriodGetValueAttributeType `json:"value,omitempty"` -} - -// NewNoticePeriod instantiates a new NoticePeriod 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 NewNoticePeriod() *NoticePeriod { - this := NoticePeriod{} - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Type"] = val - } - if val, ok := getNoticePeriodGetValueAttributeTypeOk(o.Value); ok { - toSerialize["Value"] = val - } - 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_notice_period_test.go b/services/stackitmarketplace/model_notice_period_test.go deleted file mode 100644 index 7353ba6747..0000000000 --- a/services/stackitmarketplace/model_notice_period_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "testing" -) - -// isEnum - -func TestNoticePeriodTypes_UnmarshalJSON(t *testing.T) { - type args struct { - src []byte - } - tests := []struct { - name string - args args - wantErr bool - }{ - { - name: `success - possible enum value no. 1`, - args: args{ - src: []byte(`"SAME_DAY"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 2`, - args: args{ - src: []byte(`"DAYS"`), - }, - wantErr: false, - }, - { - name: `success - possible enum value no. 3`, - args: args{ - src: []byte(`"MONTHS"`), - }, - wantErr: false, - }, - { - name: "fail", - args: args{ - src: []byte("\"FOOBAR\""), - }, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - v := NoticePeriodTypes("") - if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { - t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} diff --git a/services/stackitmarketplace/model_offer_type.go b/services/stackitmarketplace/model_offer_type.go deleted file mode 100644 index 5bfb832e75..0000000000 --- a/services/stackitmarketplace/model_offer_type.go +++ /dev/null @@ -1,131 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := OfferType(value) - for _, existing := range AllowedOfferTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid OfferType", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for OfferType: valid values are %v", v, AllowedOfferTypeEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_offer_type_test.go b/services/stackitmarketplace/model_offer_type_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_offer_type_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_price_type.go b/services/stackitmarketplace/model_price_type.go deleted file mode 100644 index c55c871db5..0000000000 --- a/services/stackitmarketplace/model_price_type.go +++ /dev/null @@ -1,140 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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" - // 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", - "FREE_TRIAL", - "BYOL", - "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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := PriceType(value) - for _, existing := range AllowedPriceTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PriceType", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PriceType: valid values are %v", v, AllowedPriceTypeEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_price_type_test.go b/services/stackitmarketplace/model_price_type_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_price_type_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_pricing_option_unit.go b/services/stackitmarketplace/model_pricing_option_unit.go deleted file mode 100644 index 0602dc9147..0000000000 --- a/services/stackitmarketplace/model_pricing_option_unit.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := PricingOptionUnit(value) - for _, existing := range AllowedPricingOptionUnitEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid PricingOptionUnit", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for PricingOptionUnit: valid values are %v", v, AllowedPricingOptionUnitEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_pricing_option_unit_test.go b/services/stackitmarketplace/model_pricing_option_unit_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_pricing_option_unit_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_product_lifecycle_state.go b/services/stackitmarketplace/model_product_lifecycle_state.go deleted file mode 100644 index 151bb0d35a..0000000000 --- a/services/stackitmarketplace/model_product_lifecycle_state.go +++ /dev/null @@ -1,131 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := ProductLifecycleState(value) - for _, existing := range AllowedProductLifecycleStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ProductLifecycleState", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ProductLifecycleState: valid values are %v", v, AllowedProductLifecycleStateEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_product_lifecycle_state_test.go b/services/stackitmarketplace/model_product_lifecycle_state_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_product_lifecycle_state_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_register_testing.go b/services/stackitmarketplace/model_register_testing.go deleted file mode 100644 index ca5f80fed3..0000000000 --- a/services/stackitmarketplace/model_register_testing.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the RegisterTesting type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RegisterTesting{} - -/* - types and functions for 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 - } - 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 -} - -/* - types and functions for type -*/ - -// 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 - } - 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"` - // REQUIRED - 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) - setRegisterTestingGetTypeAttributeType(&this.Type, types) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["RegisterTesting"] = val - } - if val, ok := getRegisterTestingGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - 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_register_testing_test.go b/services/stackitmarketplace/model_register_testing_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_register_testing_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_request_private_plan.go b/services/stackitmarketplace/model_request_private_plan.go deleted file mode 100644 index 5210645953..0000000000 --- a/services/stackitmarketplace/model_request_private_plan.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the RequestPrivatePlan type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RequestPrivatePlan{} - -/* - types and functions for 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 - } - 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 -} - -/* - types and functions for type -*/ - -// 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 - } - 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"` - // REQUIRED - 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) - setRequestPrivatePlanGetTypeAttributeType(&this.Type, types) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["RequestPrivatePlan"] = val - } - if val, ok := getRequestPrivatePlanGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - 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_request_private_plan_test.go b/services/stackitmarketplace/model_request_private_plan_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_request_private_plan_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_resolve_customer_payload.go b/services/stackitmarketplace/model_resolve_customer_payload.go deleted file mode 100644 index 045b85ca45..0000000000 --- a/services/stackitmarketplace/model_resolve_customer_payload.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the ResolveCustomerPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ResolveCustomerPayload{} - -/* - types and functions for token -*/ - -// 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 - } - 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) - 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 -// 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 -} - -// 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 { - toSerialize["Token"] = val - } - 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_resolve_customer_payload_test.go b/services/stackitmarketplace/model_resolve_customer_payload_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_resolve_customer_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_scope.go b/services/stackitmarketplace/model_scope.go deleted file mode 100644 index 7066dca721..0000000000 --- a/services/stackitmarketplace/model_scope.go +++ /dev/null @@ -1,134 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := Scope(value) - for _, existing := range AllowedScopeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid Scope", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for Scope: valid values are %v", v, AllowedScopeEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_scope_test.go b/services/stackitmarketplace/model_scope_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_scope_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_service_certificate.go b/services/stackitmarketplace/model_service_certificate.go deleted file mode 100644 index c3af12ad09..0000000000 --- a/services/stackitmarketplace/model_service_certificate.go +++ /dev/null @@ -1,148 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the ServiceCertificate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceCertificate{} - -/* - types and functions for version -*/ - -// 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 - } - 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"` -} - -// NewServiceCertificate instantiates a new ServiceCertificate 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 NewServiceCertificate() *ServiceCertificate { - this := ServiceCertificate{} - return &this -} - -// 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 -} - -// 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 { - toSerialize["Version"] = val - } - 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_service_certificate_test.go b/services/stackitmarketplace/model_service_certificate_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_service_certificate_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_subscription_id.go b/services/stackitmarketplace/model_subscription_id.go deleted file mode 100644 index 2f43c37f59..0000000000 --- a/services/stackitmarketplace/model_subscription_id.go +++ /dev/null @@ -1,92 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the SubscriptionId type satisfies the MappedNullable interface at compile time -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 { -} - -// NewSubscriptionId instantiates a new SubscriptionId 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 NewSubscriptionId() *SubscriptionId { - this := SubscriptionId{} - return &this -} - -// 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_id_test.go b/services/stackitmarketplace/model_subscription_id_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_subscription_id_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_subscription_lifecycle_state.go b/services/stackitmarketplace/model_subscription_lifecycle_state.go deleted file mode 100644 index 588d4e0d55..0000000000 --- a/services/stackitmarketplace/model_subscription_lifecycle_state.go +++ /dev/null @@ -1,143 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "fmt" -) - -// 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 ( - // 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" - // 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", - "SUBSCRIPTION_INACTIVE", - "SUBSCRIPTION_CANCELLING", - "SUBSCRIPTION_CANCELLED", - "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) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := SubscriptionLifecycleState(value) - for _, existing := range AllowedSubscriptionLifecycleStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid SubscriptionLifecycleState", value) -} - -// 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() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for SubscriptionLifecycleState: valid values are %v", v, AllowedSubscriptionLifecycleStateEnumValues) - } -} - -// 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 { - return true - } - } - return false -} - -// 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_lifecycle_state_test.go b/services/stackitmarketplace/model_subscription_lifecycle_state_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_subscription_lifecycle_state_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_subscription_product.go b/services/stackitmarketplace/model_subscription_product.go deleted file mode 100644 index c925bf431a..0000000000 --- a/services/stackitmarketplace/model_subscription_product.go +++ /dev/null @@ -1,738 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the SubscriptionProduct type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SubscriptionProduct{} - -/* - types and functions for assets -*/ - -// 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 - } - 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 -} - -/* - types and functions for deliveryMethod -*/ - -// 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 - } - 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 -} - -/* - types and functions for lifecycleState -*/ - -// 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 - } - 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 -} - -/* - types and functions for planId -*/ - -// 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 - } - 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 - -/* - types and functions for priceType -*/ - -// 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 - } - 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 -} - -/* - types and functions for pricingPlan -*/ - -// 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 - } - 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 - -/* - types and functions for productId -*/ - -// 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 - } - 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 - -/* - types and functions for productName -*/ - -// 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 - } - 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 - -/* - types and functions for vendorName -*/ - -// 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 - } - 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 - -/* - types and functions for vendorPlanId -*/ - -// 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 - } - 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 - -/* - types and functions for vendorProductId -*/ - -// 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 - } - 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 - -/* - types and functions for vendorWebsiteUrl -*/ - -// 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 - } - 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 - DeliveryMethod SubscriptionProductGetDeliveryMethodAttributeType `json:"deliveryMethod" required:"true"` - // REQUIRED - LifecycleState SubscriptionProductGetLifecycleStateAttributeType `json:"lifecycleState" required:"true"` - // The user-readable plan ID of a pricing option. - // REQUIRED - PlanId SubscriptionProductGetPlanIdAttributeType `json:"planId" required:"true"` - // REQUIRED - PriceType SubscriptionProductGetPriceTypeAttributeType `json:"priceType" required:"true"` - // Additional price type information. - // REQUIRED - PricingPlan SubscriptionProductGetPricingPlanAttributeType `json:"pricingPlan" required:"true"` - // The user-readable product ID. - // REQUIRED - ProductId SubscriptionProductGetProductIdAttributeType `json:"productId" required:"true"` - // The name of the product. - // REQUIRED - ProductName SubscriptionProductGetProductNameAttributeType `json:"productName" required:"true"` - // The product's vendor name. - // REQUIRED - VendorName SubscriptionProductGetVendorNameAttributeType `json:"vendorName" required:"true"` - // The vendor provided plan ID. - VendorPlanId SubscriptionProductGetVendorPlanIdAttributeType `json:"vendorPlanId,omitempty"` - // The vendor provided product ID. - VendorProductId SubscriptionProductGetVendorProductIdAttributeType `json:"vendorProductId,omitempty"` - // Uniform Resource Locator. - // REQUIRED - 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) - setSubscriptionProductGetLifecycleStateAttributeType(&this.LifecycleState, lifecycleState) - setSubscriptionProductGetPlanIdAttributeType(&this.PlanId, planId) - setSubscriptionProductGetPriceTypeAttributeType(&this.PriceType, priceType) - setSubscriptionProductGetPricingPlanAttributeType(&this.PricingPlan, pricingPlan) - setSubscriptionProductGetProductIdAttributeType(&this.ProductId, productId) - setSubscriptionProductGetProductNameAttributeType(&this.ProductName, productName) - setSubscriptionProductGetVendorNameAttributeType(&this.VendorName, vendorName) - setSubscriptionProductGetVendorWebsiteUrlAttributeType(&this.VendorWebsiteUrl, vendorWebsiteUrl) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["Assets"] = val - } - if val, ok := getSubscriptionProductGetDeliveryMethodAttributeTypeOk(o.DeliveryMethod); ok { - toSerialize["DeliveryMethod"] = val - } - if val, ok := getSubscriptionProductGetLifecycleStateAttributeTypeOk(o.LifecycleState); ok { - toSerialize["LifecycleState"] = val - } - if val, ok := getSubscriptionProductGetPlanIdAttributeTypeOk(o.PlanId); ok { - toSerialize["PlanId"] = val - } - if val, ok := getSubscriptionProductGetPriceTypeAttributeTypeOk(o.PriceType); ok { - toSerialize["PriceType"] = val - } - if val, ok := getSubscriptionProductGetPricingPlanAttributeTypeOk(o.PricingPlan); ok { - toSerialize["PricingPlan"] = val - } - if val, ok := getSubscriptionProductGetProductIdAttributeTypeOk(o.ProductId); ok { - toSerialize["ProductId"] = val - } - if val, ok := getSubscriptionProductGetProductNameAttributeTypeOk(o.ProductName); ok { - toSerialize["ProductName"] = val - } - if val, ok := getSubscriptionProductGetVendorNameAttributeTypeOk(o.VendorName); ok { - toSerialize["VendorName"] = val - } - if val, ok := getSubscriptionProductGetVendorPlanIdAttributeTypeOk(o.VendorPlanId); ok { - toSerialize["VendorPlanId"] = val - } - if val, ok := getSubscriptionProductGetVendorProductIdAttributeTypeOk(o.VendorProductId); ok { - toSerialize["VendorProductId"] = val - } - if val, ok := getSubscriptionProductGetVendorWebsiteUrlAttributeTypeOk(o.VendorWebsiteUrl); ok { - toSerialize["VendorWebsiteUrl"] = val - } - 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_subscription_product_test.go b/services/stackitmarketplace/model_subscription_product_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_subscription_product_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_suggest_product.go b/services/stackitmarketplace/model_suggest_product.go deleted file mode 100644 index e36f4510cb..0000000000 --- a/services/stackitmarketplace/model_suggest_product.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the SuggestProduct type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SuggestProduct{} - -/* - types and functions for 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 - } - 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 -} - -/* - types and functions for type -*/ - -// 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 - } - 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"` - // REQUIRED - 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) - setSuggestProductGetTypeAttributeType(&this.Type, types) - return &this -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["SuggestProduct"] = val - } - if val, ok := getSuggestProductGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - 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_suggest_product_test.go b/services/stackitmarketplace/model_suggest_product_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_suggest_product_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_vendor_id.go b/services/stackitmarketplace/model_vendor_id.go deleted file mode 100644 index 8f6163a515..0000000000 --- a/services/stackitmarketplace/model_vendor_id.go +++ /dev/null @@ -1,92 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the VendorId type satisfies the MappedNullable interface at compile time -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 { -} - -// NewVendorId instantiates a new VendorId 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 NewVendorId() *VendorId { - this := VendorId{} - return &this -} - -// 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_id_test.go b/services/stackitmarketplace/model_vendor_id_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_vendor_id_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/model_vendor_subscription.go b/services/stackitmarketplace/model_vendor_subscription.go deleted file mode 100644 index e60b75d98b..0000000000 --- a/services/stackitmarketplace/model_vendor_subscription.go +++ /dev/null @@ -1,356 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" -) - -// checks if the VendorSubscription type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &VendorSubscription{} - -/* - types and functions for lifecycleState -*/ - -// 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 - } - 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 -} - -/* - types and functions for organizationId -*/ - -// 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 - } - 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 - -/* - types and functions for product -*/ - -// 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 - } - 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 -} - -/* - types and functions for projectId -*/ - -// 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 - } - 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 - -/* - types and functions for subscriptionId -*/ - -// 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 - } - 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"` - // Universally Unique Identifier (UUID). - // REQUIRED - OrganizationId VendorSubscriptionGetOrganizationIdAttributeType `json:"organizationId" required:"true"` - // REQUIRED - Product VendorSubscriptionGetProductAttributeType `json:"product" required:"true"` - // Universally Unique Identifier (UUID). - // REQUIRED - ProjectId VendorSubscriptionGetProjectIdAttributeType `json:"projectId" required:"true"` - // Universally Unique Identifier (UUID). - // REQUIRED - 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) - setVendorSubscriptionGetOrganizationIdAttributeType(&this.OrganizationId, organizationId) - setVendorSubscriptionGetProductAttributeType(&this.Product, product) - setVendorSubscriptionGetProjectIdAttributeType(&this.ProjectId, projectId) - setVendorSubscriptionGetSubscriptionIdAttributeType(&this.SubscriptionId, subscriptionId) - return &this -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 -} - -// 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 { - toSerialize["LifecycleState"] = val - } - if val, ok := getVendorSubscriptionGetOrganizationIdAttributeTypeOk(o.OrganizationId); ok { - toSerialize["OrganizationId"] = val - } - if val, ok := getVendorSubscriptionGetProductAttributeTypeOk(o.Product); ok { - toSerialize["Product"] = val - } - if val, ok := getVendorSubscriptionGetProjectIdAttributeTypeOk(o.ProjectId); ok { - toSerialize["ProjectId"] = val - } - if val, ok := getVendorSubscriptionGetSubscriptionIdAttributeTypeOk(o.SubscriptionId); ok { - toSerialize["SubscriptionId"] = val - } - 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/model_vendor_subscription_test.go b/services/stackitmarketplace/model_vendor_subscription_test.go deleted file mode 100644 index 8d52b2c3ca..0000000000 --- a/services/stackitmarketplace/model_vendor_subscription_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace diff --git a/services/stackitmarketplace/package.go b/services/stackitmarketplace/package.go new file mode 100644 index 0000000000..e61453211c --- /dev/null +++ b/services/stackitmarketplace/package.go @@ -0,0 +1 @@ +package stackitmarketplace diff --git a/services/stackitmarketplace/utils.go b/services/stackitmarketplace/utils.go deleted file mode 100644 index cb09594640..0000000000 --- a/services/stackitmarketplace/utils.go +++ /dev/null @@ -1,465 +0,0 @@ -/* -STACKIT Marketplace API - -API to manage STACKIT Marketplace. - -API version: 1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package stackitmarketplace - -import ( - "encoding/json" - "math/rand" - "reflect" - "time" -) - -// 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 - } - if t, ok := i.(interface{ IsSet() bool }); ok { - return !t.IsSet() - } - 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 -} - -// 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) -} - -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 { - b[i] = letterRunes[rand.Intn(len(letterRunes))] - } - return string(b) -}