From 2a68db7cfd4370a546c35e033767451083ebf78a Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 23 Sep 2025 13:54:18 +0000 Subject: [PATCH] Generate stackitmarketplace --- .../model_catalog_product_detail.go | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/services/stackitmarketplace/model_catalog_product_detail.go b/services/stackitmarketplace/model_catalog_product_detail.go index efdd14822..786806438 100644 --- a/services/stackitmarketplace/model_catalog_product_detail.go +++ b/services/stackitmarketplace/model_catalog_product_detail.go @@ -161,6 +161,26 @@ func setCatalogProductDetailGetEmailAttributeType(arg *CatalogProductDetailGetEm type CatalogProductDetailGetEmailArgType = string type CatalogProductDetailGetEmailRetType = string +/* + types and functions for hasDemo +*/ + +// isBoolean +type CatalogProductDetailgetHasDemoAttributeType = *bool +type CatalogProductDetailgetHasDemoArgType = bool +type CatalogProductDetailgetHasDemoRetType = bool + +func getCatalogProductDetailgetHasDemoAttributeTypeOk(arg CatalogProductDetailgetHasDemoAttributeType) (ret CatalogProductDetailgetHasDemoRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCatalogProductDetailgetHasDemoAttributeType(arg *CatalogProductDetailgetHasDemoAttributeType, val CatalogProductDetailgetHasDemoRetType) { + *arg = &val +} + /* types and functions for highlights */ @@ -505,6 +525,8 @@ type CatalogProductDetail struct { DocumentationUrl CatalogProductDetailGetDocumentationUrlAttributeType `json:"documentationUrl" required:"true"` // A e-mail address. Email CatalogProductDetailGetEmailAttributeType `json:"email,omitempty"` + // If the product has a demoUrl available. + HasDemo CatalogProductDetailgetHasDemoAttributeType `json:"hasDemo,omitempty"` // The list of highlights. // REQUIRED Highlights CatalogProductDetailGetHighlightsAttributeType `json:"highlights" required:"true"` @@ -721,6 +743,29 @@ func (o *CatalogProductDetail) SetEmail(v CatalogProductDetailGetEmailRetType) { setCatalogProductDetailGetEmailAttributeType(&o.Email, v) } +// GetHasDemo returns the HasDemo field value if set, zero value otherwise. +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. +func (o *CatalogProductDetail) GetHasDemoOk() (ret CatalogProductDetailgetHasDemoRetType, ok bool) { + return getCatalogProductDetailgetHasDemoAttributeTypeOk(o.HasDemo) +} + +// HasHasDemo returns a boolean if a field has been set. +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. +func (o *CatalogProductDetail) SetHasDemo(v CatalogProductDetailgetHasDemoRetType) { + setCatalogProductDetailgetHasDemoAttributeType(&o.HasDemo, v) +} + // GetHighlights returns the Highlights field value func (o *CatalogProductDetail) GetHighlights() (ret CatalogProductDetailGetHighlightsRetType) { ret, _ = o.GetHighlightsOk() @@ -1052,6 +1097,9 @@ func (o CatalogProductDetail) ToMap() (map[string]interface{}, error) { if val, ok := getCatalogProductDetailGetEmailAttributeTypeOk(o.Email); ok { toSerialize["Email"] = val } + if val, ok := getCatalogProductDetailgetHasDemoAttributeTypeOk(o.HasDemo); ok { + toSerialize["HasDemo"] = val + } if val, ok := getCatalogProductDetailGetHighlightsAttributeTypeOk(o.Highlights); ok { toSerialize["Highlights"] = val }