diff --git a/CHANGELOG.md b/CHANGELOG.md index 9aeb3d4ed..2c8562e17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,7 +31,8 @@ - **Deprecation:** Deprecated `InstanceStateSuccess`, `InstanceStateFailed`, `InstanceTypeCreate`, `InstanceTypeUpdate`, `InstanceTypeDelete` and will be removed after 2nd October 2025 - [v0.22.0](services/rabbitmq/CHANGELOG.md#v0220-2025-04-03) - **Feature:** Adapt constants to evolved API. - + - [0.4.0](services/stackitmarketplace/CHANGELOG.md#v040-2025-04-04) + - **Feature:** Add new `VendorProductId` attribute for subscription products ## Release (2025-03-27) diff --git a/services/stackitmarketplace/CHANGELOG.md b/services/stackitmarketplace/CHANGELOG.md index f28a5b994..4370170d9 100644 --- a/services/stackitmarketplace/CHANGELOG.md +++ b/services/stackitmarketplace/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.4.0 (2025-04-04) +- **Feature:** Add new `VendorProductId` attribute for subscription products + ## v0.3.1 (2025-03-19) - **Internal:** Backwards compatible change to generated code diff --git a/services/stackitmarketplace/model_subscription_product.go b/services/stackitmarketplace/model_subscription_product.go index 6aa696a46..c09a59ad3 100644 --- a/services/stackitmarketplace/model_subscription_product.go +++ b/services/stackitmarketplace/model_subscription_product.go @@ -161,6 +161,27 @@ func setSubscriptionProductGetVendorNameAttributeType(arg *SubscriptionProductGe type SubscriptionProductGetVendorNameArgType = string type SubscriptionProductGetVendorNameRetType = string +/* + types and functions for vendorProductId +*/ + +// isNotNullableString +type SubscriptionProductGetVendorProductIdAttributeType = *string + +func getSubscriptionProductGetVendorProductIdAttributeTypeOk(arg SubscriptionProductGetVendorProductIdAttributeType) (ret SubscriptionProductGetVendorProductIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSubscriptionProductGetVendorProductIdAttributeType(arg *SubscriptionProductGetVendorProductIdAttributeType, val SubscriptionProductGetVendorProductIdRetType) { + *arg = &val +} + +type SubscriptionProductGetVendorProductIdArgType = string +type SubscriptionProductGetVendorProductIdRetType = string + /* types and functions for vendorWebsiteUrl */ @@ -205,6 +226,8 @@ type SubscriptionProduct struct { // The product's vendor name. // REQUIRED VendorName SubscriptionProductGetVendorNameAttributeType `json:"vendorName"` + // The product ID provided by the Vendor. + VendorProductId SubscriptionProductGetVendorProductIdAttributeType `json:"vendorProductId,omitempty"` // The vendor's website. // REQUIRED VendorWebsiteUrl SubscriptionProductGetVendorWebsiteUrlAttributeType `json:"vendorWebsiteUrl"` @@ -356,6 +379,29 @@ func (o *SubscriptionProduct) SetVendorName(v SubscriptionProductGetVendorNameRe setSubscriptionProductGetVendorNameAttributeType(&o.VendorName, v) } +// GetVendorProductId returns the VendorProductId field value if set, zero value otherwise. +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. +func (o *SubscriptionProduct) GetVendorProductIdOk() (ret SubscriptionProductGetVendorProductIdRetType, ok bool) { + return getSubscriptionProductGetVendorProductIdAttributeTypeOk(o.VendorProductId) +} + +// HasVendorProductId returns a boolean if a field has been set. +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. +func (o *SubscriptionProduct) SetVendorProductId(v SubscriptionProductGetVendorProductIdRetType) { + setSubscriptionProductGetVendorProductIdAttributeType(&o.VendorProductId, v) +} + // GetVendorWebsiteUrl returns the VendorWebsiteUrl field value func (o *SubscriptionProduct) GetVendorWebsiteUrl() (ret SubscriptionProductGetVendorWebsiteUrlRetType) { ret, _ = o.GetVendorWebsiteUrlOk() @@ -396,6 +442,9 @@ func (o SubscriptionProduct) ToMap() (map[string]interface{}, error) { if val, ok := getSubscriptionProductGetVendorNameAttributeTypeOk(o.VendorName); ok { toSerialize["VendorName"] = val } + if val, ok := getSubscriptionProductGetVendorProductIdAttributeTypeOk(o.VendorProductId); ok { + toSerialize["VendorProductId"] = val + } if val, ok := getSubscriptionProductGetVendorWebsiteUrlAttributeTypeOk(o.VendorWebsiteUrl); ok { toSerialize["VendorWebsiteUrl"] = val }