From 86165a8024d4d79a95ebe7f97ce5184f62f87810 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Jun 2025 15:07:58 +0000 Subject: [PATCH] Generate stackitmarketplace --- .../model_catalog_product_details_vendor.go | 10 ++- .../model_catalog_product_overview_vendor.go | 10 ++- .../model_organization_id.go | 80 ------------------- .../model_organization_id_test.go | 11 --- .../model_vendor_subscription.go | 30 ++++--- 5 files changed, 30 insertions(+), 111 deletions(-) delete mode 100644 services/stackitmarketplace/model_organization_id.go delete mode 100644 services/stackitmarketplace/model_organization_id_test.go diff --git a/services/stackitmarketplace/model_catalog_product_details_vendor.go b/services/stackitmarketplace/model_catalog_product_details_vendor.go index dc6030a2..55652eb6 100644 --- a/services/stackitmarketplace/model_catalog_product_details_vendor.go +++ b/services/stackitmarketplace/model_catalog_product_details_vendor.go @@ -83,10 +83,8 @@ type CatalogProductDetailsVendorGetNameRetType = string types and functions for vendorId */ -// isModel -type CatalogProductDetailsVendorGetVendorIdAttributeType = *VendorId -type CatalogProductDetailsVendorGetVendorIdArgType = VendorId -type CatalogProductDetailsVendorGetVendorIdRetType = VendorId +// isNotNullableString +type CatalogProductDetailsVendorGetVendorIdAttributeType = *string func getCatalogProductDetailsVendorGetVendorIdAttributeTypeOk(arg CatalogProductDetailsVendorGetVendorIdAttributeType) (ret CatalogProductDetailsVendorGetVendorIdRetType, ok bool) { if arg == nil { @@ -99,6 +97,9 @@ func setCatalogProductDetailsVendorGetVendorIdAttributeType(arg *CatalogProductD *arg = &val } +type CatalogProductDetailsVendorGetVendorIdArgType = string +type CatalogProductDetailsVendorGetVendorIdRetType = string + /* types and functions for videoUrl */ @@ -152,6 +153,7 @@ type CatalogProductDetailsVendor struct { // The product's vendor name. // REQUIRED Name CatalogProductDetailsVendorGetNameAttributeType `json:"name"` + // Universally Unique Identifier (UUID). // REQUIRED VendorId CatalogProductDetailsVendorGetVendorIdAttributeType `json:"vendorId"` // Uniform Resource Locator. diff --git a/services/stackitmarketplace/model_catalog_product_overview_vendor.go b/services/stackitmarketplace/model_catalog_product_overview_vendor.go index 61368601..0445607d 100644 --- a/services/stackitmarketplace/model_catalog_product_overview_vendor.go +++ b/services/stackitmarketplace/model_catalog_product_overview_vendor.go @@ -42,10 +42,8 @@ type CatalogProductOverviewVendorGetNameRetType = string types and functions for vendorId */ -// isModel -type CatalogProductOverviewVendorGetVendorIdAttributeType = *VendorId -type CatalogProductOverviewVendorGetVendorIdArgType = VendorId -type CatalogProductOverviewVendorGetVendorIdRetType = VendorId +// isNotNullableString +type CatalogProductOverviewVendorGetVendorIdAttributeType = *string func getCatalogProductOverviewVendorGetVendorIdAttributeTypeOk(arg CatalogProductOverviewVendorGetVendorIdAttributeType) (ret CatalogProductOverviewVendorGetVendorIdRetType, ok bool) { if arg == nil { @@ -58,6 +56,9 @@ func setCatalogProductOverviewVendorGetVendorIdAttributeType(arg *CatalogProduct *arg = &val } +type CatalogProductOverviewVendorGetVendorIdArgType = string +type CatalogProductOverviewVendorGetVendorIdRetType = string + /* types and functions for websiteUrl */ @@ -84,6 +85,7 @@ type CatalogProductOverviewVendor struct { // The product's vendor name. // REQUIRED Name CatalogProductOverviewVendorGetNameAttributeType `json:"name"` + // Universally Unique Identifier (UUID). // REQUIRED VendorId CatalogProductOverviewVendorGetVendorIdAttributeType `json:"vendorId"` // Uniform Resource Locator. diff --git a/services/stackitmarketplace/model_organization_id.go b/services/stackitmarketplace/model_organization_id.go deleted file mode 100644 index 1d9dccbc..00000000 --- a/services/stackitmarketplace/model_organization_id.go +++ /dev/null @@ -1,80 +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 OrganizationId type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrganizationId{} - -// OrganizationId The associated organization ID. -type OrganizationId struct { -} - -// NewOrganizationId instantiates a new OrganizationId object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrganizationId() *OrganizationId { - this := OrganizationId{} - return &this -} - -// NewOrganizationIdWithDefaults instantiates a new OrganizationId object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrganizationIdWithDefaults() *OrganizationId { - this := OrganizationId{} - return &this -} - -func (o OrganizationId) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - return toSerialize, nil -} - -type NullableOrganizationId struct { - value *OrganizationId - isSet bool -} - -func (v NullableOrganizationId) Get() *OrganizationId { - return v.value -} - -func (v *NullableOrganizationId) Set(val *OrganizationId) { - v.value = val - v.isSet = true -} - -func (v NullableOrganizationId) IsSet() bool { - return v.isSet -} - -func (v *NullableOrganizationId) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrganizationId(val *OrganizationId) *NullableOrganizationId { - return &NullableOrganizationId{value: val, isSet: true} -} - -func (v NullableOrganizationId) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrganizationId) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/stackitmarketplace/model_organization_id_test.go b/services/stackitmarketplace/model_organization_id_test.go deleted file mode 100644 index 8d52b2c3..00000000 --- a/services/stackitmarketplace/model_organization_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 index 28b8712f..11b0c055 100644 --- a/services/stackitmarketplace/model_vendor_subscription.go +++ b/services/stackitmarketplace/model_vendor_subscription.go @@ -41,10 +41,8 @@ func setVendorSubscriptionGetLifecycleStateAttributeType(arg *VendorSubscription types and functions for organizationId */ -// isModel -type VendorSubscriptionGetOrganizationIdAttributeType = *OrganizationId -type VendorSubscriptionGetOrganizationIdArgType = OrganizationId -type VendorSubscriptionGetOrganizationIdRetType = OrganizationId +// isNotNullableString +type VendorSubscriptionGetOrganizationIdAttributeType = *string func getVendorSubscriptionGetOrganizationIdAttributeTypeOk(arg VendorSubscriptionGetOrganizationIdAttributeType) (ret VendorSubscriptionGetOrganizationIdRetType, ok bool) { if arg == nil { @@ -57,6 +55,9 @@ func setVendorSubscriptionGetOrganizationIdAttributeType(arg *VendorSubscription *arg = &val } +type VendorSubscriptionGetOrganizationIdArgType = string +type VendorSubscriptionGetOrganizationIdRetType = string + /* types and functions for product */ @@ -81,10 +82,8 @@ func setVendorSubscriptionGetProductAttributeType(arg *VendorSubscriptionGetProd types and functions for projectId */ -// isModel -type VendorSubscriptionGetProjectIdAttributeType = *ProjectId -type VendorSubscriptionGetProjectIdArgType = ProjectId -type VendorSubscriptionGetProjectIdRetType = ProjectId +// isNotNullableString +type VendorSubscriptionGetProjectIdAttributeType = *string func getVendorSubscriptionGetProjectIdAttributeTypeOk(arg VendorSubscriptionGetProjectIdAttributeType) (ret VendorSubscriptionGetProjectIdRetType, ok bool) { if arg == nil { @@ -97,14 +96,15 @@ func setVendorSubscriptionGetProjectIdAttributeType(arg *VendorSubscriptionGetPr *arg = &val } +type VendorSubscriptionGetProjectIdArgType = string +type VendorSubscriptionGetProjectIdRetType = string + /* types and functions for subscriptionId */ -// isModel -type VendorSubscriptionGetSubscriptionIdAttributeType = *SubscriptionId -type VendorSubscriptionGetSubscriptionIdArgType = SubscriptionId -type VendorSubscriptionGetSubscriptionIdRetType = SubscriptionId +// isNotNullableString +type VendorSubscriptionGetSubscriptionIdAttributeType = *string func getVendorSubscriptionGetSubscriptionIdAttributeTypeOk(arg VendorSubscriptionGetSubscriptionIdAttributeType) (ret VendorSubscriptionGetSubscriptionIdRetType, ok bool) { if arg == nil { @@ -117,16 +117,22 @@ func setVendorSubscriptionGetSubscriptionIdAttributeType(arg *VendorSubscription *arg = &val } +type VendorSubscriptionGetSubscriptionIdArgType = string +type VendorSubscriptionGetSubscriptionIdRetType = string + // VendorSubscription struct for VendorSubscription type VendorSubscription struct { // REQUIRED LifecycleState VendorSubscriptionGetLifecycleStateAttributeType `json:"lifecycleState"` + // Universally Unique Identifier (UUID). // REQUIRED OrganizationId VendorSubscriptionGetOrganizationIdAttributeType `json:"organizationId"` // REQUIRED Product VendorSubscriptionGetProductAttributeType `json:"product"` + // Universally Unique Identifier (UUID). // REQUIRED ProjectId VendorSubscriptionGetProjectIdAttributeType `json:"projectId"` + // Universally Unique Identifier (UUID). // REQUIRED SubscriptionId VendorSubscriptionGetSubscriptionIdAttributeType `json:"subscriptionId"` }