From 49dd05e714365d94646239335f95355f0f35e919 Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Wed, 18 Dec 2024 16:53:48 +0100 Subject: [PATCH 1/7] feat(partner center sell): add custom service parameters and other gc metadata service flags Signed-off-by: Peter Harasztia --- partnercentersellv1/partner_center_sell_v1.go | 807 ++++++- .../partner_center_sell_v1_examples_test.go | 39 +- ...partner_center_sell_v1_integration_test.go | 220 +- .../partner_center_sell_v1_test.go | 1895 +++++++++++++---- 4 files changed, 2452 insertions(+), 509 deletions(-) diff --git a/partnercentersellv1/partner_center_sell_v1.go b/partnercentersellv1/partner_center_sell_v1.go index afc45947..4d1c4f46 100644 --- a/partnercentersellv1/partner_center_sell_v1.go +++ b/partnercentersellv1/partner_center_sell_v1.go @@ -15,7 +15,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.96.1-5136e54a-20241108-203028 + * IBM OpenAPI SDK Code Generator Version: 3.98.0-8be2046a-20241205-162752 */ // Package partnercentersellv1 : Operations and models for the PartnerCenterSellV1 service @@ -42,7 +42,7 @@ type PartnerCenterSellV1 struct { } // DefaultServiceURL is the default URL to make service requests to. -const DefaultServiceURL = "https://product-lifecycle.cloud.ibm.com/openapi/v1" +const DefaultServiceURL = "http://localhost:5005/openapi/v1" // DefaultServiceName is the default key used to find external configuration information. const DefaultServiceName = "partner_center_sell" @@ -4944,6 +4944,8 @@ type GlobalCatalogDeployment struct { // The kind of the global catalog object. Kind *string `json:"kind,omitempty"` + GeoTags []string `json:"geo_tags,omitempty"` + // The object that contains the service details from the Overview page in global catalog. OverviewUi *GlobalCatalogOverviewUI `json:"overview_ui,omitempty"` @@ -5000,6 +5002,11 @@ func UnmarshalGlobalCatalogDeployment(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "kind-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "geo_tags", &obj.GeoTags) + if err != nil { + err = core.SDKErrorf(err, "", "geo_tags-error", common.GetComponentInfo()) + return + } err = core.UnmarshalModel(m, "overview_ui", &obj.OverviewUi, UnmarshalGlobalCatalogOverviewUI) if err != nil { err = core.SDKErrorf(err, "", "overview_ui-error", common.GetComponentInfo()) @@ -5038,7 +5045,7 @@ type GlobalCatalogDeploymentMetadata struct { Ui *GlobalCatalogMetadataUI `json:"ui,omitempty"` // The global catalog metadata of the service. - Service *GlobalCatalogMetadataService `json:"service,omitempty"` + Service *GlobalCatalogDeploymentMetadataService `json:"service,omitempty"` // The global catalog metadata of the deployment. Deployment *GlobalCatalogMetadataDeployment `json:"deployment,omitempty"` @@ -5057,7 +5064,7 @@ func UnmarshalGlobalCatalogDeploymentMetadata(m map[string]json.RawMessage, resu err = core.SDKErrorf(err, "", "ui-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "service", &obj.Service, UnmarshalGlobalCatalogMetadataService) + err = core.UnmarshalModel(m, "service", &obj.Service, UnmarshalGlobalCatalogDeploymentMetadataService) if err != nil { err = core.SDKErrorf(err, "", "service-error", common.GetComponentInfo()) return @@ -5090,6 +5097,92 @@ func (globalCatalogDeploymentMetadata *GlobalCatalogDeploymentMetadata) asPatch( return } +// GlobalCatalogDeploymentMetadataService : The global catalog metadata of the service. +type GlobalCatalogDeploymentMetadataService struct { + // Whether the service is provisionable by the resource controller service. + RcProvisionable *bool `json:"rc_provisionable,omitempty"` + + // Whether the service is compatible with the IAM service. + IamCompatible *bool `json:"iam_compatible,omitempty"` + + // Deprecated. Controls the Connections tab on the Resource Details page. + Bindable *bool `json:"bindable,omitempty"` + + // Indicates plan update support and controls the Plan tab on the Resource Details page. + PlanUpdateable *bool `json:"plan_updateable,omitempty"` + + // Indicates service credentials support and controls the Service Credential tab on Resource Details page. + ServiceKeySupported *bool `json:"service_key_supported,omitempty"` + + Parameters []GlobalCatalogMetadataServiceCustomParameters `json:"parameters,omitempty"` +} + +// UnmarshalGlobalCatalogDeploymentMetadataService unmarshals an instance of GlobalCatalogDeploymentMetadataService from the specified map of raw messages. +func UnmarshalGlobalCatalogDeploymentMetadataService(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogDeploymentMetadataService) + err = core.UnmarshalPrimitive(m, "rc_provisionable", &obj.RcProvisionable) + if err != nil { + err = core.SDKErrorf(err, "", "rc_provisionable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "iam_compatible", &obj.IamCompatible) + if err != nil { + err = core.SDKErrorf(err, "", "iam_compatible-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "bindable", &obj.Bindable) + if err != nil { + err = core.SDKErrorf(err, "", "bindable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "plan_updateable", &obj.PlanUpdateable) + if err != nil { + err = core.SDKErrorf(err, "", "plan_updateable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "service_key_supported", &obj.ServiceKeySupported) + if err != nil { + err = core.SDKErrorf(err, "", "service_key_supported-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "parameters", &obj.Parameters, UnmarshalGlobalCatalogMetadataServiceCustomParameters) + if err != nil { + err = core.SDKErrorf(err, "", "parameters-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogDeploymentMetadataService +func (globalCatalogDeploymentMetadataService *GlobalCatalogDeploymentMetadataService) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogDeploymentMetadataService.RcProvisionable) { + _patch["rc_provisionable"] = globalCatalogDeploymentMetadataService.RcProvisionable + } + if !core.IsNil(globalCatalogDeploymentMetadataService.IamCompatible) { + _patch["iam_compatible"] = globalCatalogDeploymentMetadataService.IamCompatible + } + if !core.IsNil(globalCatalogDeploymentMetadataService.Bindable) { + _patch["bindable"] = globalCatalogDeploymentMetadataService.Bindable + } + if !core.IsNil(globalCatalogDeploymentMetadataService.PlanUpdateable) { + _patch["plan_updateable"] = globalCatalogDeploymentMetadataService.PlanUpdateable + } + if !core.IsNil(globalCatalogDeploymentMetadataService.ServiceKeySupported) { + _patch["service_key_supported"] = globalCatalogDeploymentMetadataService.ServiceKeySupported + } + if !core.IsNil(globalCatalogDeploymentMetadataService.Parameters) { + var parametersPatches []map[string]interface{} + for _, parameters := range globalCatalogDeploymentMetadataService.Parameters { + parametersPatches = append(parametersPatches, parameters.asPatch()) + } + _patch["parameters"] = parametersPatches + } + + return +} + // GlobalCatalogDeploymentPatch : The request body for updating a global catalog deployment. type GlobalCatalogDeploymentPatch struct { // Whether the service is active. @@ -5329,73 +5422,443 @@ func (globalCatalogMetadataPricing *GlobalCatalogMetadataPricing) asPatch() (_pa return } -// GlobalCatalogMetadataService : The global catalog metadata of the service. -type GlobalCatalogMetadataService struct { - // Whether the service is provisionable by the resource controller service. - RcProvisionable *bool `json:"rc_provisionable,omitempty"` +// GlobalCatalogMetadataServiceCustomParameters : The global catalog service/deployment custom parameters. +type GlobalCatalogMetadataServiceCustomParameters struct { + // The display name for custom service parameters. + Displayname *string `json:"displayname,omitempty"` - // Whether the service is compatible with the IAM service. - IamCompatible *bool `json:"iam_compatible,omitempty"` + // The key of the parameter. + Name *string `json:"name,omitempty"` - // Deprecated. Controls the Connections tab on the Resource Details page. - Bindable *bool `json:"bindable,omitempty"` + // The type of custom service parameters. + Type *string `json:"type,omitempty"` - // Indicates plan update support and controls the Plan tab on the Resource Details page. - PlanUpdateable *bool `json:"plan_updateable,omitempty"` + Options []GlobalCatalogMetadataServiceCustomParametersOptions `json:"options,omitempty"` - // Indicates service credentials support and controls the Service Credential tab on Resource Details page. - ServiceKeySupported *bool `json:"service_key_supported,omitempty"` + Value []string `json:"value,omitempty"` + + // Specifies the layout of check box or radio input types. When unspecified, the default layout is horizontal. + Layout *string `json:"layout,omitempty"` + + // A JSON structure to describe the interactions with pricing plans and/or other custom parameters. + Associations map[string]interface{} `json:"associations,omitempty"` + + // The validation URL for custom service parameters. + ValidationURL *string `json:"validation_url,omitempty"` + + // The options URL for custom service parameters. + OptionsURL *string `json:"options_url,omitempty"` + + // The message that appears when the content of the text box is invalid. + Invalidmessage *string `json:"invalidmessage,omitempty"` + + // The description of the parameter that is displayed to help users with the value of the parameter. + Description *string `json:"description,omitempty"` + + // A boolean value that indicates whether the parameter must be entered in the IBM Cloud user interface. + Required *bool `json:"required,omitempty"` + + // A regular expression that the value is checked against. + Pattern *string `json:"pattern,omitempty"` + + // The placeholder text for custom parameters. + Placeholder *string `json:"placeholder,omitempty"` + + // A boolean value that indicates whether the value of the parameter is displayed only and cannot be changed by users. + // The default value is false. + Readonly *bool `json:"readonly,omitempty"` + + // Indicates whether the custom parameters is hidden required or not. + Hidden *bool `json:"hidden,omitempty"` + + // The description for the object. + I18n *GlobalCatalogMetadataServiceCustomParametersI18n `json:"i18n,omitempty"` } -// UnmarshalGlobalCatalogMetadataService unmarshals an instance of GlobalCatalogMetadataService from the specified map of raw messages. -func UnmarshalGlobalCatalogMetadataService(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(GlobalCatalogMetadataService) - err = core.UnmarshalPrimitive(m, "rc_provisionable", &obj.RcProvisionable) +// Constants associated with the GlobalCatalogMetadataServiceCustomParameters.Type property. +// The type of custom service parameters. +const ( + GlobalCatalogMetadataServiceCustomParameters_Type_Checkbox = "checkbox" + GlobalCatalogMetadataServiceCustomParameters_Type_ClusterNamespace = "cluster_namespace" + GlobalCatalogMetadataServiceCustomParameters_Type_Combo = "combo" + GlobalCatalogMetadataServiceCustomParameters_Type_Dropdown = "dropdown" + GlobalCatalogMetadataServiceCustomParameters_Type_Multiselect = "multiselect" + GlobalCatalogMetadataServiceCustomParameters_Type_Number = "number" + GlobalCatalogMetadataServiceCustomParameters_Type_Password = "password" + GlobalCatalogMetadataServiceCustomParameters_Type_Radio = "radio" + GlobalCatalogMetadataServiceCustomParameters_Type_Region = "region" + GlobalCatalogMetadataServiceCustomParameters_Type_ResourceGroup = "resource_group" + GlobalCatalogMetadataServiceCustomParameters_Type_Secret = "secret" + GlobalCatalogMetadataServiceCustomParameters_Type_Text = "text" + GlobalCatalogMetadataServiceCustomParameters_Type_Textarea = "textarea" + GlobalCatalogMetadataServiceCustomParameters_Type_VcenterDatastore = "vcenter_datastore" +) + +// UnmarshalGlobalCatalogMetadataServiceCustomParameters unmarshals an instance of GlobalCatalogMetadataServiceCustomParameters from the specified map of raw messages. +func UnmarshalGlobalCatalogMetadataServiceCustomParameters(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogMetadataServiceCustomParameters) + err = core.UnmarshalPrimitive(m, "displayname", &obj.Displayname) if err != nil { - err = core.SDKErrorf(err, "", "rc_provisionable-error", common.GetComponentInfo()) + err = core.SDKErrorf(err, "", "displayname-error", common.GetComponentInfo()) return } - err = core.UnmarshalPrimitive(m, "iam_compatible", &obj.IamCompatible) + err = core.UnmarshalPrimitive(m, "name", &obj.Name) if err != nil { - err = core.SDKErrorf(err, "", "iam_compatible-error", common.GetComponentInfo()) + err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) return } - err = core.UnmarshalPrimitive(m, "bindable", &obj.Bindable) + err = core.UnmarshalPrimitive(m, "type", &obj.Type) if err != nil { - err = core.SDKErrorf(err, "", "bindable-error", common.GetComponentInfo()) + err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) return } - err = core.UnmarshalPrimitive(m, "plan_updateable", &obj.PlanUpdateable) + err = core.UnmarshalModel(m, "options", &obj.Options, UnmarshalGlobalCatalogMetadataServiceCustomParametersOptions) if err != nil { - err = core.SDKErrorf(err, "", "plan_updateable-error", common.GetComponentInfo()) + err = core.SDKErrorf(err, "", "options-error", common.GetComponentInfo()) return } - err = core.UnmarshalPrimitive(m, "service_key_supported", &obj.ServiceKeySupported) + err = core.UnmarshalPrimitive(m, "value", &obj.Value) if err != nil { - err = core.SDKErrorf(err, "", "service_key_supported-error", common.GetComponentInfo()) + err = core.SDKErrorf(err, "", "value-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "layout", &obj.Layout) + if err != nil { + err = core.SDKErrorf(err, "", "layout-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "associations", &obj.Associations) + if err != nil { + err = core.SDKErrorf(err, "", "associations-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "validation_url", &obj.ValidationURL) + if err != nil { + err = core.SDKErrorf(err, "", "validation_url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "options_url", &obj.OptionsURL) + if err != nil { + err = core.SDKErrorf(err, "", "options_url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "invalidmessage", &obj.Invalidmessage) + if err != nil { + err = core.SDKErrorf(err, "", "invalidmessage-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "description", &obj.Description) + if err != nil { + err = core.SDKErrorf(err, "", "description-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "required", &obj.Required) + if err != nil { + err = core.SDKErrorf(err, "", "required-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "pattern", &obj.Pattern) + if err != nil { + err = core.SDKErrorf(err, "", "pattern-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "placeholder", &obj.Placeholder) + if err != nil { + err = core.SDKErrorf(err, "", "placeholder-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "readonly", &obj.Readonly) + if err != nil { + err = core.SDKErrorf(err, "", "readonly-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "hidden", &obj.Hidden) + if err != nil { + err = core.SDKErrorf(err, "", "hidden-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "i18n", &obj.I18n, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18n) + if err != nil { + err = core.SDKErrorf(err, "", "i18n-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogMetadataServiceCustomParameters +func (globalCatalogMetadataServiceCustomParameters *GlobalCatalogMetadataServiceCustomParameters) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Displayname) { + _patch["displayname"] = globalCatalogMetadataServiceCustomParameters.Displayname + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Name) { + _patch["name"] = globalCatalogMetadataServiceCustomParameters.Name + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Type) { + _patch["type"] = globalCatalogMetadataServiceCustomParameters.Type + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Options) { + var optionsPatches []map[string]interface{} + for _, options := range globalCatalogMetadataServiceCustomParameters.Options { + optionsPatches = append(optionsPatches, options.asPatch()) + } + _patch["options"] = optionsPatches + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Value) { + _patch["value"] = globalCatalogMetadataServiceCustomParameters.Value + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Layout) { + _patch["layout"] = globalCatalogMetadataServiceCustomParameters.Layout + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Associations) { + _patch["associations"] = globalCatalogMetadataServiceCustomParameters.Associations + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.ValidationURL) { + _patch["validation_url"] = globalCatalogMetadataServiceCustomParameters.ValidationURL + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.OptionsURL) { + _patch["options_url"] = globalCatalogMetadataServiceCustomParameters.OptionsURL + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Invalidmessage) { + _patch["invalidmessage"] = globalCatalogMetadataServiceCustomParameters.Invalidmessage + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Description) { + _patch["description"] = globalCatalogMetadataServiceCustomParameters.Description + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Required) { + _patch["required"] = globalCatalogMetadataServiceCustomParameters.Required + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Pattern) { + _patch["pattern"] = globalCatalogMetadataServiceCustomParameters.Pattern + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Placeholder) { + _patch["placeholder"] = globalCatalogMetadataServiceCustomParameters.Placeholder + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Readonly) { + _patch["readonly"] = globalCatalogMetadataServiceCustomParameters.Readonly + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.Hidden) { + _patch["hidden"] = globalCatalogMetadataServiceCustomParameters.Hidden + } + if !core.IsNil(globalCatalogMetadataServiceCustomParameters.I18n) { + _patch["i18n"] = globalCatalogMetadataServiceCustomParameters.I18n.asPatch() + } + + return +} + +// GlobalCatalogMetadataServiceCustomParametersI18n : The description for the object. +type GlobalCatalogMetadataServiceCustomParametersI18n struct { + // The translations for custom service parameter display name and description. + En *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"en,omitempty"` + + // The translations for custom service parameter display name and description. + De *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"de,omitempty"` + + // The translations for custom service parameter display name and description. + Es *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"es,omitempty"` + + // The translations for custom service parameter display name and description. + Fr *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"fr,omitempty"` + + // The translations for custom service parameter display name and description. + It *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"it,omitempty"` + + // The translations for custom service parameter display name and description. + Ja *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"ja,omitempty"` + + // The translations for custom service parameter display name and description. + Ko *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"ko,omitempty"` + + // The translations for custom service parameter display name and description. + PtBr *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"pt_br,omitempty"` + + // The translations for custom service parameter display name and description. + ZhTw *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"zh_tw,omitempty"` + + // The translations for custom service parameter display name and description. + ZhCn *GlobalCatalogMetadataServiceCustomParametersI18nFields `json:"zh_cn,omitempty"` +} + +// UnmarshalGlobalCatalogMetadataServiceCustomParametersI18n unmarshals an instance of GlobalCatalogMetadataServiceCustomParametersI18n from the specified map of raw messages. +func UnmarshalGlobalCatalogMetadataServiceCustomParametersI18n(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogMetadataServiceCustomParametersI18n) + err = core.UnmarshalModel(m, "en", &obj.En, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "en-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "de", &obj.De, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "de-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "es", &obj.Es, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "es-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "fr", &obj.Fr, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "fr-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "it", &obj.It, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "it-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "ja", &obj.Ja, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "ja-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "ko", &obj.Ko, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "ko-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "pt_br", &obj.PtBr, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "pt_br-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "zh_tw", &obj.ZhTw, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "zh_tw-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "zh_cn", &obj.ZhCn, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields) + if err != nil { + err = core.SDKErrorf(err, "", "zh_cn-error", common.GetComponentInfo()) return } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } -// asPatch returns a generic map representation of the GlobalCatalogMetadataService -func (globalCatalogMetadataService *GlobalCatalogMetadataService) asPatch() (_patch map[string]interface{}) { +// asPatch returns a generic map representation of the GlobalCatalogMetadataServiceCustomParametersI18n +func (globalCatalogMetadataServiceCustomParametersI18n *GlobalCatalogMetadataServiceCustomParametersI18n) asPatch() (_patch map[string]interface{}) { _patch = map[string]interface{}{} - if !core.IsNil(globalCatalogMetadataService.RcProvisionable) { - _patch["rc_provisionable"] = globalCatalogMetadataService.RcProvisionable + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.En) { + _patch["en"] = globalCatalogMetadataServiceCustomParametersI18n.En.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.De) { + _patch["de"] = globalCatalogMetadataServiceCustomParametersI18n.De.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.Es) { + _patch["es"] = globalCatalogMetadataServiceCustomParametersI18n.Es.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.Fr) { + _patch["fr"] = globalCatalogMetadataServiceCustomParametersI18n.Fr.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.It) { + _patch["it"] = globalCatalogMetadataServiceCustomParametersI18n.It.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.Ja) { + _patch["ja"] = globalCatalogMetadataServiceCustomParametersI18n.Ja.asPatch() } - if !core.IsNil(globalCatalogMetadataService.IamCompatible) { - _patch["iam_compatible"] = globalCatalogMetadataService.IamCompatible + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.Ko) { + _patch["ko"] = globalCatalogMetadataServiceCustomParametersI18n.Ko.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.PtBr) { + _patch["pt_br"] = globalCatalogMetadataServiceCustomParametersI18n.PtBr.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.ZhTw) { + _patch["zh_tw"] = globalCatalogMetadataServiceCustomParametersI18n.ZhTw.asPatch() + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18n.ZhCn) { + _patch["zh_cn"] = globalCatalogMetadataServiceCustomParametersI18n.ZhCn.asPatch() + } + + return +} + +// GlobalCatalogMetadataServiceCustomParametersI18nFields : The translations for custom service parameter display name and description. +type GlobalCatalogMetadataServiceCustomParametersI18nFields struct { + // The translations for custom service parameter display name. + Displayname *string `json:"displayname,omitempty"` + + // The translations for custom service parameter description. + Description *string `json:"description,omitempty"` +} + +// UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields unmarshals an instance of GlobalCatalogMetadataServiceCustomParametersI18nFields from the specified map of raw messages. +func UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogMetadataServiceCustomParametersI18nFields) + err = core.UnmarshalPrimitive(m, "displayname", &obj.Displayname) + if err != nil { + err = core.SDKErrorf(err, "", "displayname-error", common.GetComponentInfo()) + return } - if !core.IsNil(globalCatalogMetadataService.Bindable) { - _patch["bindable"] = globalCatalogMetadataService.Bindable + err = core.UnmarshalPrimitive(m, "description", &obj.Description) + if err != nil { + err = core.SDKErrorf(err, "", "description-error", common.GetComponentInfo()) + return } - if !core.IsNil(globalCatalogMetadataService.PlanUpdateable) { - _patch["plan_updateable"] = globalCatalogMetadataService.PlanUpdateable + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogMetadataServiceCustomParametersI18nFields +func (globalCatalogMetadataServiceCustomParametersI18nFields *GlobalCatalogMetadataServiceCustomParametersI18nFields) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18nFields.Displayname) { + _patch["displayname"] = globalCatalogMetadataServiceCustomParametersI18nFields.Displayname } - if !core.IsNil(globalCatalogMetadataService.ServiceKeySupported) { - _patch["service_key_supported"] = globalCatalogMetadataService.ServiceKeySupported + if !core.IsNil(globalCatalogMetadataServiceCustomParametersI18nFields.Description) { + _patch["description"] = globalCatalogMetadataServiceCustomParametersI18nFields.Description + } + + return +} + +// GlobalCatalogMetadataServiceCustomParametersOptions : A JSON structure to specify available values for the dropdown, check box, and radio input types. +type GlobalCatalogMetadataServiceCustomParametersOptions struct { + // The display name for custom service parameters. + Displayname *string `json:"displayname,omitempty"` + + // The value for custom service parameters. + Value *string `json:"value,omitempty"` + + // The description for the object. + I18n *GlobalCatalogMetadataServiceCustomParametersI18n `json:"i18n,omitempty"` +} + +// UnmarshalGlobalCatalogMetadataServiceCustomParametersOptions unmarshals an instance of GlobalCatalogMetadataServiceCustomParametersOptions from the specified map of raw messages. +func UnmarshalGlobalCatalogMetadataServiceCustomParametersOptions(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogMetadataServiceCustomParametersOptions) + err = core.UnmarshalPrimitive(m, "displayname", &obj.Displayname) + if err != nil { + err = core.SDKErrorf(err, "", "displayname-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "value", &obj.Value) + if err != nil { + err = core.SDKErrorf(err, "", "value-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "i18n", &obj.I18n, UnmarshalGlobalCatalogMetadataServiceCustomParametersI18n) + if err != nil { + err = core.SDKErrorf(err, "", "i18n-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogMetadataServiceCustomParametersOptions +func (globalCatalogMetadataServiceCustomParametersOptions *GlobalCatalogMetadataServiceCustomParametersOptions) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogMetadataServiceCustomParametersOptions.Displayname) { + _patch["displayname"] = globalCatalogMetadataServiceCustomParametersOptions.Displayname + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersOptions.Value) { + _patch["value"] = globalCatalogMetadataServiceCustomParametersOptions.Value + } + if !core.IsNil(globalCatalogMetadataServiceCustomParametersOptions.I18n) { + _patch["i18n"] = globalCatalogMetadataServiceCustomParametersOptions.I18n.asPatch() } return @@ -5743,6 +6206,8 @@ type GlobalCatalogPlan struct { // The kind of the global catalog object. Kind *string `json:"kind,omitempty"` + GeoTags []string `json:"geo_tags,omitempty"` + // The object that contains the service details from the Overview page in global catalog. OverviewUi *GlobalCatalogOverviewUI `json:"overview_ui,omitempty"` @@ -5799,6 +6264,11 @@ func UnmarshalGlobalCatalogPlan(m map[string]json.RawMessage, result interface{} err = core.SDKErrorf(err, "", "kind-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "geo_tags", &obj.GeoTags) + if err != nil { + err = core.SDKErrorf(err, "", "geo_tags-error", common.GetComponentInfo()) + return + } err = core.UnmarshalModel(m, "overview_ui", &obj.OverviewUi, UnmarshalGlobalCatalogOverviewUI) if err != nil { err = core.SDKErrorf(err, "", "overview_ui-error", common.GetComponentInfo()) @@ -5837,7 +6307,7 @@ type GlobalCatalogPlanMetadata struct { Ui *GlobalCatalogMetadataUI `json:"ui,omitempty"` // The global catalog metadata of the service. - Service *GlobalCatalogMetadataService `json:"service,omitempty"` + Service *GlobalCatalogPlanMetadataService `json:"service,omitempty"` // The pricing metadata of this object. Pricing *GlobalCatalogMetadataPricing `json:"pricing,omitempty"` @@ -5859,7 +6329,7 @@ func UnmarshalGlobalCatalogPlanMetadata(m map[string]json.RawMessage, result int err = core.SDKErrorf(err, "", "ui-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "service", &obj.Service, UnmarshalGlobalCatalogMetadataService) + err = core.UnmarshalModel(m, "service", &obj.Service, UnmarshalGlobalCatalogPlanMetadataService) if err != nil { err = core.SDKErrorf(err, "", "service-error", common.GetComponentInfo()) return @@ -5939,6 +6409,78 @@ func (globalCatalogPlanMetadataPlan *GlobalCatalogPlanMetadataPlan) asPatch() (_ return } +// GlobalCatalogPlanMetadataService : The global catalog metadata of the service. +type GlobalCatalogPlanMetadataService struct { + // Whether the service is provisionable by the resource controller service. + RcProvisionable *bool `json:"rc_provisionable,omitempty"` + + // Whether the service is compatible with the IAM service. + IamCompatible *bool `json:"iam_compatible,omitempty"` + + // Deprecated. Controls the Connections tab on the Resource Details page. + Bindable *bool `json:"bindable,omitempty"` + + // Indicates plan update support and controls the Plan tab on the Resource Details page. + PlanUpdateable *bool `json:"plan_updateable,omitempty"` + + // Indicates service credentials support and controls the Service Credential tab on Resource Details page. + ServiceKeySupported *bool `json:"service_key_supported,omitempty"` +} + +// UnmarshalGlobalCatalogPlanMetadataService unmarshals an instance of GlobalCatalogPlanMetadataService from the specified map of raw messages. +func UnmarshalGlobalCatalogPlanMetadataService(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogPlanMetadataService) + err = core.UnmarshalPrimitive(m, "rc_provisionable", &obj.RcProvisionable) + if err != nil { + err = core.SDKErrorf(err, "", "rc_provisionable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "iam_compatible", &obj.IamCompatible) + if err != nil { + err = core.SDKErrorf(err, "", "iam_compatible-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "bindable", &obj.Bindable) + if err != nil { + err = core.SDKErrorf(err, "", "bindable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "plan_updateable", &obj.PlanUpdateable) + if err != nil { + err = core.SDKErrorf(err, "", "plan_updateable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "service_key_supported", &obj.ServiceKeySupported) + if err != nil { + err = core.SDKErrorf(err, "", "service_key_supported-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogPlanMetadataService +func (globalCatalogPlanMetadataService *GlobalCatalogPlanMetadataService) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogPlanMetadataService.RcProvisionable) { + _patch["rc_provisionable"] = globalCatalogPlanMetadataService.RcProvisionable + } + if !core.IsNil(globalCatalogPlanMetadataService.IamCompatible) { + _patch["iam_compatible"] = globalCatalogPlanMetadataService.IamCompatible + } + if !core.IsNil(globalCatalogPlanMetadataService.Bindable) { + _patch["bindable"] = globalCatalogPlanMetadataService.Bindable + } + if !core.IsNil(globalCatalogPlanMetadataService.PlanUpdateable) { + _patch["plan_updateable"] = globalCatalogPlanMetadataService.PlanUpdateable + } + if !core.IsNil(globalCatalogPlanMetadataService.ServiceKeySupported) { + _patch["service_key_supported"] = globalCatalogPlanMetadataService.ServiceKeySupported + } + + return +} + // GlobalCatalogPlanPatch : The request body for updating a global catalog plan. type GlobalCatalogPlanPatch struct { // Whether the service is active. @@ -6045,6 +6587,8 @@ type GlobalCatalogProduct struct { // The kind of the global catalog object. Kind *string `json:"kind,omitempty"` + GeoTags []string `json:"geo_tags,omitempty"` + // The object that contains the service details from the Overview page in global catalog. OverviewUi *GlobalCatalogOverviewUI `json:"overview_ui,omitempty"` @@ -6106,6 +6650,11 @@ func UnmarshalGlobalCatalogProduct(m map[string]json.RawMessage, result interfac err = core.SDKErrorf(err, "", "kind-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "geo_tags", &obj.GeoTags) + if err != nil { + err = core.SDKErrorf(err, "", "geo_tags-error", common.GetComponentInfo()) + return + } err = core.UnmarshalModel(m, "overview_ui", &obj.OverviewUi, UnmarshalGlobalCatalogOverviewUI) if err != nil { err = core.SDKErrorf(err, "", "overview_ui-error", common.GetComponentInfo()) @@ -6177,7 +6726,7 @@ type GlobalCatalogProductMetadata struct { Ui *GlobalCatalogMetadataUI `json:"ui,omitempty"` // The global catalog metadata of the service. - Service *GlobalCatalogMetadataService `json:"service,omitempty"` + Service *GlobalCatalogProductMetadataService `json:"service,omitempty"` // The additional metadata of the service in global catalog. Other *GlobalCatalogProductMetadataOther `json:"other,omitempty"` @@ -6196,7 +6745,7 @@ func UnmarshalGlobalCatalogProductMetadata(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "ui-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "service", &obj.Service, UnmarshalGlobalCatalogMetadataService) + err = core.UnmarshalModel(m, "service", &obj.Service, UnmarshalGlobalCatalogProductMetadataService) if err != nil { err = core.SDKErrorf(err, "", "service-error", common.GetComponentInfo()) return @@ -6531,6 +7080,103 @@ func (globalCatalogProductMetadataOtherPCSupport *GlobalCatalogProductMetadataOt return } +// GlobalCatalogProductMetadataService : The global catalog metadata of the service. +type GlobalCatalogProductMetadataService struct { + // Whether the service is provisionable by the resource controller service. + RcProvisionable *bool `json:"rc_provisionable,omitempty"` + + // Whether the service is compatible with the IAM service. + IamCompatible *bool `json:"iam_compatible,omitempty"` + + // Deprecated. Controls the Connections tab on the Resource Details page. + Bindable *bool `json:"bindable,omitempty"` + + // Indicates plan update support and controls the Plan tab on the Resource Details page. + PlanUpdateable *bool `json:"plan_updateable,omitempty"` + + // Indicates service credentials support and controls the Service Credential tab on Resource Details page. + ServiceKeySupported *bool `json:"service_key_supported,omitempty"` + + // Indicates that the deployment uses an unique api key or not. + UniqueApiKey *bool `json:"unique_api_key,omitempty"` + + Parameters []GlobalCatalogMetadataServiceCustomParameters `json:"parameters,omitempty"` +} + +// UnmarshalGlobalCatalogProductMetadataService unmarshals an instance of GlobalCatalogProductMetadataService from the specified map of raw messages. +func UnmarshalGlobalCatalogProductMetadataService(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogProductMetadataService) + err = core.UnmarshalPrimitive(m, "rc_provisionable", &obj.RcProvisionable) + if err != nil { + err = core.SDKErrorf(err, "", "rc_provisionable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "iam_compatible", &obj.IamCompatible) + if err != nil { + err = core.SDKErrorf(err, "", "iam_compatible-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "bindable", &obj.Bindable) + if err != nil { + err = core.SDKErrorf(err, "", "bindable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "plan_updateable", &obj.PlanUpdateable) + if err != nil { + err = core.SDKErrorf(err, "", "plan_updateable-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "service_key_supported", &obj.ServiceKeySupported) + if err != nil { + err = core.SDKErrorf(err, "", "service_key_supported-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "unique_api_key", &obj.UniqueApiKey) + if err != nil { + err = core.SDKErrorf(err, "", "unique_api_key-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "parameters", &obj.Parameters, UnmarshalGlobalCatalogMetadataServiceCustomParameters) + if err != nil { + err = core.SDKErrorf(err, "", "parameters-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogProductMetadataService +func (globalCatalogProductMetadataService *GlobalCatalogProductMetadataService) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogProductMetadataService.RcProvisionable) { + _patch["rc_provisionable"] = globalCatalogProductMetadataService.RcProvisionable + } + if !core.IsNil(globalCatalogProductMetadataService.IamCompatible) { + _patch["iam_compatible"] = globalCatalogProductMetadataService.IamCompatible + } + if !core.IsNil(globalCatalogProductMetadataService.Bindable) { + _patch["bindable"] = globalCatalogProductMetadataService.Bindable + } + if !core.IsNil(globalCatalogProductMetadataService.PlanUpdateable) { + _patch["plan_updateable"] = globalCatalogProductMetadataService.PlanUpdateable + } + if !core.IsNil(globalCatalogProductMetadataService.ServiceKeySupported) { + _patch["service_key_supported"] = globalCatalogProductMetadataService.ServiceKeySupported + } + if !core.IsNil(globalCatalogProductMetadataService.UniqueApiKey) { + _patch["unique_api_key"] = globalCatalogProductMetadataService.UniqueApiKey + } + if !core.IsNil(globalCatalogProductMetadataService.Parameters) { + var parametersPatches []map[string]interface{} + for _, parameters := range globalCatalogProductMetadataService.Parameters { + parametersPatches = append(parametersPatches, parameters.asPatch()) + } + _patch["parameters"] = parametersPatches + } + + return +} + // GlobalCatalogProductPatch : The request body for updating a product in global catalog. type GlobalCatalogProductPatch struct { // Whether the service is active. @@ -7384,7 +8030,6 @@ func (iamServiceRegistrationSupportedAnonymousAccess *IamServiceRegistrationSupp } // IamServiceRegistrationSupportedAnonymousAccessAttributes : The attributes for anonymous accesses. -// This type supports additional properties of type *string. type IamServiceRegistrationSupportedAnonymousAccessAttributes struct { // An account id. AccountID *string `json:"account_id" validate:"required"` @@ -7394,9 +8039,6 @@ type IamServiceRegistrationSupportedAnonymousAccessAttributes struct { // Additional properties the key must come from supported attributes. AdditionalProperties map[string]string `json:"additional_properties" validate:"required"` - - // Allows users to set arbitrary properties of type *string. - additionalProperties map[string]*string } // NewIamServiceRegistrationSupportedAnonymousAccessAttributes : Instantiate IamServiceRegistrationSupportedAnonymousAccessAttributes (Generic Model Constructor) @@ -7413,56 +8055,6 @@ func (*PartnerCenterSellV1) NewIamServiceRegistrationSupportedAnonymousAccessAtt return } -// SetProperty allows the user to set an arbitrary property on an instance of IamServiceRegistrationSupportedAnonymousAccessAttributes. -func (o *IamServiceRegistrationSupportedAnonymousAccessAttributes) SetProperty(key string, value *string) { - if o.additionalProperties == nil { - o.additionalProperties = make(map[string]*string) - } - o.additionalProperties[key] = value -} - -// SetProperties allows the user to set a map of arbitrary properties on an instance of IamServiceRegistrationSupportedAnonymousAccessAttributes. -func (o *IamServiceRegistrationSupportedAnonymousAccessAttributes) SetProperties(m map[string]*string) { - o.additionalProperties = make(map[string]*string) - for k, v := range m { - o.additionalProperties[k] = v - } -} - -// GetProperty allows the user to retrieve an arbitrary property from an instance of IamServiceRegistrationSupportedAnonymousAccessAttributes. -func (o *IamServiceRegistrationSupportedAnonymousAccessAttributes) GetProperty(key string) *string { - return o.additionalProperties[key] -} - -// GetProperties allows the user to retrieve the map of arbitrary properties from an instance of IamServiceRegistrationSupportedAnonymousAccessAttributes. -func (o *IamServiceRegistrationSupportedAnonymousAccessAttributes) GetProperties() map[string]*string { - return o.additionalProperties -} - -// MarshalJSON performs custom serialization for instances of IamServiceRegistrationSupportedAnonymousAccessAttributes -func (o *IamServiceRegistrationSupportedAnonymousAccessAttributes) MarshalJSON() (buffer []byte, err error) { - m := make(map[string]interface{}) - if len(o.additionalProperties) > 0 { - for k, v := range o.additionalProperties { - m[k] = v - } - } - if o.AccountID != nil { - m["account_id"] = o.AccountID - } - if o.ServiceName != nil { - m["service_name"] = o.ServiceName - } - if o.AdditionalProperties != nil { - m["additional_properties"] = o.AdditionalProperties - } - buffer, err = json.Marshal(m) - if err != nil { - err = core.SDKErrorf(err, "", "model-marshal", common.GetComponentInfo()) - } - return -} - // UnmarshalIamServiceRegistrationSupportedAnonymousAccessAttributes unmarshals an instance of IamServiceRegistrationSupportedAnonymousAccessAttributes from the specified map of raw messages. func UnmarshalIamServiceRegistrationSupportedAnonymousAccessAttributes(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(IamServiceRegistrationSupportedAnonymousAccessAttributes) @@ -7471,28 +8063,16 @@ func UnmarshalIamServiceRegistrationSupportedAnonymousAccessAttributes(m map[str err = core.SDKErrorf(err, "", "account_id-error", common.GetComponentInfo()) return } - delete(m, "account_id") err = core.UnmarshalPrimitive(m, "service_name", &obj.ServiceName) if err != nil { err = core.SDKErrorf(err, "", "service_name-error", common.GetComponentInfo()) return } - delete(m, "service_name") err = core.UnmarshalPrimitive(m, "additional_properties", &obj.AdditionalProperties) if err != nil { err = core.SDKErrorf(err, "", "additional_properties-error", common.GetComponentInfo()) return } - delete(m, "additional_properties") - for k := range m { - var v *string - e := core.UnmarshalPrimitive(m, k, &v) - if e != nil { - err = core.SDKErrorf(e, "", "additional-properties-error", common.GetComponentInfo()) - return - } - obj.SetProperty(k, v) - } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -7500,11 +8080,6 @@ func UnmarshalIamServiceRegistrationSupportedAnonymousAccessAttributes(m map[str // asPatch returns a generic map representation of the IamServiceRegistrationSupportedAnonymousAccessAttributes func (iamServiceRegistrationSupportedAnonymousAccessAttributes *IamServiceRegistrationSupportedAnonymousAccessAttributes) asPatch() (_patch map[string]interface{}) { _patch = map[string]interface{}{} - if !core.IsNil(iamServiceRegistrationSupportedAnonymousAccessAttributes.additionalProperties) { - for k, v := range iamServiceRegistrationSupportedAnonymousAccessAttributes.additionalProperties { - _patch[k] = v - } - } if !core.IsNil(iamServiceRegistrationSupportedAnonymousAccessAttributes.AccountID) { _patch["account_id"] = iamServiceRegistrationSupportedAnonymousAccessAttributes.AccountID } diff --git a/partnercentersellv1/partner_center_sell_v1_examples_test.go b/partnercentersellv1/partner_center_sell_v1_examples_test.go index 3236c8c2..be24cab0 100644 --- a/partnercentersellv1/partner_center_sell_v1_examples_test.go +++ b/partnercentersellv1/partner_center_sell_v1_examples_test.go @@ -260,14 +260,14 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { En: globalCatalogOverviewUiTranslatedContentModel, } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogProductMetadataServiceModel := &partnercentersellv1.GlobalCatalogProductMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), } globalCatalogProductMetadataModel := &partnercentersellv1.GlobalCatalogProductMetadata{ RcCompatible: core.BoolPtr(true), - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogProductMetadataServiceModel, } var randomInteger = strconv.Itoa(rand.Intn(1000)) @@ -360,7 +360,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { En: globalCatalogOverviewUiTranslatedContentModel, } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogPlanMetadataServiceModel := &partnercentersellv1.GlobalCatalogPlanMetadataService{ RcProvisionable: core.BoolPtr(false), IamCompatible: core.BoolPtr(true), } @@ -372,7 +372,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ RcCompatible: core.BoolPtr(true), - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogPlanMetadataServiceModel, Pricing: globalCatalogMetadataPricingModel, } @@ -457,7 +457,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Email: core.StringPtr("name.name@ibm.com"), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogDeploymentMetadataServiceModel := &partnercentersellv1.GlobalCatalogDeploymentMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), } @@ -476,7 +476,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ RcCompatible: core.BoolPtr(true), - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogDeploymentMetadataServiceModel, Deployment: globalCatalogMetadataDeploymentModel, } @@ -564,9 +564,19 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { // begin-create_iam_registration createIamRegistrationOptions := partnerCenterSellService.NewCreateIamRegistrationOptions( - productIdWithApprovedProgrammaticName, - "sample-name", + productIdLink, + "pet-store", ) + createIamRegistrationOptions.SetEnabled(true) + createIamRegistrationOptions.SetActions([]partnercentersellv1.IamServiceRegistrationAction{*iamServiceRegistrationActionModel}) + createIamRegistrationOptions.SetAdditionalPolicyScopes([]string{"pet-store"}) + createIamRegistrationOptions.SetDisplayName(iamServiceRegistrationDisplayNameObjectModel) + createIamRegistrationOptions.SetParentIds([]string{}) + createIamRegistrationOptions.SetSupportedAnonymousAccesses([]partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{*iamServiceRegistrationSupportedAnonymousAccessModel}) + createIamRegistrationOptions.SetSupportedAttributes([]partnercentersellv1.IamServiceRegistrationSupportedAttribute{*iamServiceRegistrationSupportedAttributeModel}) + createIamRegistrationOptions.SetSupportedAuthorizationSubjects([]partnercentersellv1.IamServiceRegistrationSupportedAuthorizationSubject{*iamServiceRegistrationSupportedAuthorizationSubjectModel}) + createIamRegistrationOptions.SetSupportedRoles([]partnercentersellv1.IamServiceRegistrationSupportedRole{*iamServiceRegistrationSupportedRoleModel}) + createIamRegistrationOptions.SetSupportedNetwork(iamServiceRegistrationSupportedNetworkModel) iamServiceRegistration, response, err := partnerCenterSellService.CreateIamRegistration(createIamRegistrationOptions) if err != nil { @@ -593,7 +603,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(asPatchErr).To(BeNil()) updateIamRegistrationOptions := partnerCenterSellService.NewUpdateIamRegistrationOptions( - productIdWithApprovedProgrammaticName, + productIdLink, programmaticNameLink, iamServiceRegistrationPatchModelAsPatch, ) @@ -617,16 +627,15 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { It(`CreateResourceBroker request example`, func() { fmt.Println("\nCreateResourceBroker() result:") // begin-create_resource_broker - var randomInteger = strconv.Itoa(rand.Intn(1000)) - brokerName := fmt.Sprintf("broker-example-%s", randomInteger) - brokerLink := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) createResourceBrokerOptions := partnerCenterSellService.NewCreateResourceBrokerOptions( - "bearer-crn", - brokerName, - brokerLink, + "bearer", + "brokername", + "https://broker-url-for-my-service.com", "provision_through", ) + createResourceBrokerOptions.SetAuthUsername("apikey") + createResourceBrokerOptions.SetResourceGroupCrn("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") createResourceBrokerOptions.SetState("active") createResourceBrokerOptions.SetAllowContextUpdates(false) createResourceBrokerOptions.SetCatalogType("service") diff --git a/partnercentersellv1/partner_center_sell_v1_integration_test.go b/partnercentersellv1/partner_center_sell_v1_integration_test.go index 790019c1..ab73065e 100644 --- a/partnercentersellv1/partner_center_sell_v1_integration_test.go +++ b/partnercentersellv1/partner_center_sell_v1_integration_test.go @@ -21,7 +21,6 @@ package partnercentersellv1_test import ( "fmt" "log" - "math/rand" "os" "strconv" "time" @@ -30,6 +29,7 @@ import ( "github.com/IBM/platform-services-go-sdk/partnercentersellv1" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" + "golang.org/x/exp/rand" ) /** @@ -319,12 +319,58 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields{ + Displayname: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + } + + globalCatalogMetadataServiceCustomParametersI18nModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n{ + En: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + De: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Es: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Fr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + It: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ja: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ko: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + PtBr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhTw: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhCn: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + } + + globalCatalogMetadataServiceCustomParametersOptionsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{ + Displayname: core.StringPtr("testString"), + Value: core.StringPtr("testString"), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ + Displayname: core.StringPtr("testString"), + Name: core.StringPtr("testString"), + Type: core.StringPtr("text"), + Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, + Value: []string{"testString"}, + Layout: core.StringPtr("testString"), + Associations: map[string]interface{}{"anyKey": "anyValue"}, + ValidationURL: core.StringPtr("testString"), + OptionsURL: core.StringPtr("testString"), + Invalidmessage: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + Required: core.BoolPtr(true), + Pattern: core.StringPtr("testString"), + Placeholder: core.StringPtr("testString"), + Readonly: core.BoolPtr(true), + Hidden: core.BoolPtr(true), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogProductMetadataServiceModel := &partnercentersellv1.GlobalCatalogProductMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), Bindable: core.BoolPtr(true), PlanUpdateable: core.BoolPtr(true), ServiceKeySupported: core.BoolPtr(true), + UniqueApiKey: core.BoolPtr(true), + Parameters: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel}, } supportTimeIntervalModel := &partnercentersellv1.SupportTimeInterval{ @@ -392,7 +438,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogProductMetadataModel := &partnercentersellv1.GlobalCatalogProductMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogProductMetadataServiceModel, Other: globalCatalogProductMetadataOtherModel, } @@ -441,7 +487,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogProductImagesModel := &partnercentersellv1.GlobalCatalogProductImages{ - Image: core.StringPtr("https://http.cat/images/200.jpg"), + Image: core.StringPtr("testString"), } catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ @@ -491,12 +537,58 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields{ + Displayname: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + } + + globalCatalogMetadataServiceCustomParametersI18nModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n{ + En: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + De: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Es: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Fr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + It: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ja: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ko: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + PtBr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhTw: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhCn: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + } + + globalCatalogMetadataServiceCustomParametersOptionsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{ + Displayname: core.StringPtr("testString"), + Value: core.StringPtr("testString"), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ + Displayname: core.StringPtr("testString"), + Name: core.StringPtr("testString"), + Type: core.StringPtr("text"), + Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, + Value: []string{"testString"}, + Layout: core.StringPtr("testString"), + Associations: map[string]interface{}{"anyKey": "anyValue"}, + ValidationURL: core.StringPtr("testString"), + OptionsURL: core.StringPtr("testString"), + Invalidmessage: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + Required: core.BoolPtr(true), + Pattern: core.StringPtr("testString"), + Placeholder: core.StringPtr("testString"), + Readonly: core.BoolPtr(true), + Hidden: core.BoolPtr(true), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogProductMetadataServiceModel := &partnercentersellv1.GlobalCatalogProductMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), Bindable: core.BoolPtr(true), PlanUpdateable: core.BoolPtr(true), ServiceKeySupported: core.BoolPtr(true), + UniqueApiKey: core.BoolPtr(true), + Parameters: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel}, } supportTimeIntervalModel := &partnercentersellv1.SupportTimeInterval{ @@ -544,7 +636,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogProductMetadataOtherPcModel := &partnercentersellv1.GlobalCatalogProductMetadataOtherPC{ Support: globalCatalogProductMetadataOtherPcSupportModel, } - // check this Petya + globalCatalogProductMetadataOtherCompositeChildModel := &partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{ Kind: core.StringPtr("service"), Name: core.StringPtr("testString"), @@ -564,7 +656,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogProductMetadataModel := &partnercentersellv1.GlobalCatalogProductMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogProductMetadataServiceModel, Other: globalCatalogProductMetadataOtherModel, } @@ -659,7 +751,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogPlanMetadataServiceModel := &partnercentersellv1.GlobalCatalogPlanMetadataService{ RcProvisionable: core.BoolPtr(false), IamCompatible: core.BoolPtr(true), Bindable: core.BoolPtr(true), @@ -680,7 +772,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogPlanMetadataServiceModel, Pricing: globalCatalogMetadataPricingModel, Plan: globalCatalogPlanMetadataPlanModel, } @@ -775,7 +867,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogPlanMetadataServiceModel := &partnercentersellv1.GlobalCatalogPlanMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), Bindable: core.BoolPtr(true), @@ -796,7 +888,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogPlanMetadataServiceModel, Pricing: globalCatalogMetadataPricingModel, Plan: globalCatalogPlanMetadataPlanModel, } @@ -892,12 +984,57 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields{ + Displayname: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + } + + globalCatalogMetadataServiceCustomParametersI18nModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n{ + En: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + De: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Es: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Fr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + It: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ja: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ko: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + PtBr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhTw: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhCn: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + } + + globalCatalogMetadataServiceCustomParametersOptionsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{ + Displayname: core.StringPtr("testString"), + Value: core.StringPtr("testString"), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ + Displayname: core.StringPtr("testString"), + Name: core.StringPtr("testString"), + Type: core.StringPtr("text"), + Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, + Value: []string{"testString"}, + Layout: core.StringPtr("testString"), + Associations: map[string]interface{}{"anyKey": "anyValue"}, + ValidationURL: core.StringPtr("testString"), + OptionsURL: core.StringPtr("testString"), + Invalidmessage: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + Required: core.BoolPtr(true), + Pattern: core.StringPtr("testString"), + Placeholder: core.StringPtr("testString"), + Readonly: core.BoolPtr(true), + Hidden: core.BoolPtr(true), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogDeploymentMetadataServiceModel := &partnercentersellv1.GlobalCatalogDeploymentMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), Bindable: core.BoolPtr(true), PlanUpdateable: core.BoolPtr(true), ServiceKeySupported: core.BoolPtr(true), + Parameters: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel}, } globalCatalogMetadataDeploymentBrokerModel := &partnercentersellv1.GlobalCatalogMetadataDeploymentBroker{ @@ -915,7 +1052,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogDeploymentMetadataServiceModel, Deployment: globalCatalogMetadataDeploymentModel, } @@ -1010,12 +1147,57 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } - globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields{ + Displayname: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + } + + globalCatalogMetadataServiceCustomParametersI18nModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n{ + En: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + De: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Es: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Fr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + It: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ja: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + Ko: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + PtBr: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhTw: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + ZhCn: globalCatalogMetadataServiceCustomParametersI18nFieldsModel, + } + + globalCatalogMetadataServiceCustomParametersOptionsModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{ + Displayname: core.StringPtr("testString"), + Value: core.StringPtr("testString"), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ + Displayname: core.StringPtr("testString"), + Name: core.StringPtr("testString"), + Type: core.StringPtr("text"), + Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, + Value: []string{"testString"}, + Layout: core.StringPtr("testString"), + Associations: map[string]interface{}{"anyKey": "anyValue"}, + ValidationURL: core.StringPtr("testString"), + OptionsURL: core.StringPtr("testString"), + Invalidmessage: core.StringPtr("testString"), + Description: core.StringPtr("testString"), + Required: core.BoolPtr(true), + Pattern: core.StringPtr("testString"), + Placeholder: core.StringPtr("testString"), + Readonly: core.BoolPtr(true), + Hidden: core.BoolPtr(true), + I18n: globalCatalogMetadataServiceCustomParametersI18nModel, + } + + globalCatalogDeploymentMetadataServiceModel := &partnercentersellv1.GlobalCatalogDeploymentMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), Bindable: core.BoolPtr(true), PlanUpdateable: core.BoolPtr(true), ServiceKeySupported: core.BoolPtr(true), + Parameters: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel}, } globalCatalogMetadataDeploymentBrokerModel := &partnercentersellv1.GlobalCatalogMetadataDeploymentBroker{ @@ -1033,7 +1215,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, - Service: globalCatalogMetadataServiceModel, + Service: globalCatalogDeploymentMetadataServiceModel, Deployment: globalCatalogMetadataDeploymentModel, } @@ -1143,6 +1325,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { supportedAttributesOptionsModel := &partnercentersellv1.SupportedAttributesOptions{ Operators: []string{"stringEquals"}, Hidden: core.BoolPtr(false), + SupportedPatterns: []string{"testString"}, PolicyTypes: []string{"access"}, IsEmptyValueSupported: core.BoolPtr(true), IsStringExistsFalseValueSupported: core.BoolPtr(true), @@ -1290,8 +1473,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } iamServiceRegistrationSupportedAnonymousAccessAttributesModel := &partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccessAttributes{ - AccountID: core.StringPtr("testString"), - ServiceName: core.StringPtr(iamServiceRegistrationId), + AccountID: core.StringPtr("testString"), + ServiceName: core.StringPtr(iamServiceRegistrationId), + AdditionalProperties: map[string]string{"key1": "testString"}, } iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testString", core.StringPtr("foo")) @@ -1617,7 +1801,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { brokerPatchModel := &partnercentersellv1.BrokerPatch{ AuthUsername: core.StringPtr("apikey"), - AuthPassword: core.StringPtr("0GANZzXiTurnXTF_000-FVk500800sdkrTHAt000y00y"), + AuthPassword: core.StringPtr("testString"), AuthScheme: core.StringPtr("bearer"), BrokerURL: core.StringPtr(brokerUrl), ResourceGroupCrn: core.StringPtr("crn:v1:staging:public:resource-controller::a/f15038e9046e4b9587db0ae76c4cbc26::resource-group:3a3a8ae311d0486c86b0a8c09e56883d"), diff --git a/partnercentersellv1/partner_center_sell_v1_test.go b/partnercentersellv1/partner_center_sell_v1_test.go index a7e2dbe5..5fb1b4f0 100644 --- a/partnercentersellv1/partner_center_sell_v1_test.go +++ b/partnercentersellv1/partner_center_sell_v1_test.go @@ -2143,13 +2143,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2217,7 +2263,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the CreateCatalogProductOptions model @@ -2288,7 +2334,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "unique_api_key": true, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) })) }) It(`Invoke CreateCatalogProduct successfully with retries`, func() { @@ -2361,13 +2407,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2435,7 +2527,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the CreateCatalogProductOptions model @@ -2509,7 +2601,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "unique_api_key": true, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) })) }) It(`Invoke CreateCatalogProduct successfully`, func() { @@ -2587,13 +2679,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2661,7 +2799,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the CreateCatalogProductOptions model @@ -2757,13 +2895,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2831,7 +3015,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the CreateCatalogProductOptions model @@ -2948,13 +3132,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3022,7 +3252,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the CreateCatalogProductOptions model @@ -3121,7 +3351,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "unique_api_key": true, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) })) }) It(`Invoke GetCatalogProduct successfully with retries`, func() { @@ -3178,7 +3408,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "unique_api_key": true, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) })) }) It(`Invoke GetCatalogProduct successfully`, func() { @@ -3365,13 +3595,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3439,7 +3715,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the GlobalCatalogProductPatch model @@ -3513,7 +3789,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "unique_api_key": true, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) })) }) It(`Invoke UpdateCatalogProduct successfully with retries`, func() { @@ -3586,13 +3862,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3660,7 +3982,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the GlobalCatalogProductPatch model @@ -3737,7 +4059,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "service", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "images": {"image": "Image"}, "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "unique_api_key": true, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "other": {"PC": {"support": {"url": "URL", "status_url": "StatusURL", "locations": ["Locations"], "languages": ["Languages"], "process": "Process", "process_i18n": {"mapKey": "Inner"}, "support_type": "community", "support_escalation": {"contact": "Contact", "escalation_wait_time": {"value": 5, "type": "Type"}, "response_wait_time": {"value": 5, "type": "Type"}}, "support_details": [{"type": "support_site", "contact": "Contact", "response_wait_time": {"value": 5, "type": "Type"}, "availability": {"times": [{"day": 3, "start_time": "StartTime", "end_time": "EndTime"}], "timezone": "Timezone", "always_available": false}}]}}, "composite": {"composite_kind": "service", "composite_tag": "CompositeTag", "children": [{"kind": "service", "name": "Name"}]}}}}`) })) }) It(`Invoke UpdateCatalogProduct successfully`, func() { @@ -3815,13 +4137,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3889,7 +4257,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the GlobalCatalogProductPatch model @@ -3988,13 +4356,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -4062,7 +4476,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the GlobalCatalogProductPatch model @@ -4182,13 +4596,59 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -4256,7 +4716,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel // Construct an instance of the GlobalCatalogProductPatch model @@ -4446,13 +4906,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(false) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(false) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -4468,7 +4928,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -4540,7 +5000,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) })) }) It(`Invoke CreateCatalogPlan successfully with retries`, func() { @@ -4609,13 +5069,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(false) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(false) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -4631,7 +5091,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -4706,7 +5166,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) })) }) It(`Invoke CreateCatalogPlan successfully`, func() { @@ -4780,13 +5240,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(false) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(false) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -4802,7 +5262,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -4895,13 +5355,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(false) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(false) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -4917,7 +5377,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -5031,13 +5491,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(false) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(false) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -5053,7 +5513,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -5154,7 +5614,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) })) }) It(`Invoke GetCatalogPlan successfully with retries`, func() { @@ -5212,7 +5672,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) })) }) It(`Invoke GetCatalogPlan successfully`, func() { @@ -5398,13 +5858,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -5420,7 +5880,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -5495,7 +5955,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) })) }) It(`Invoke UpdateCatalogPlan successfully with retries`, func() { @@ -5564,13 +6024,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -5586,7 +6046,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -5664,7 +6124,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "plan", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "pricing": {"type": "free", "origin": "global_catalog"}, "plan": {"allow_internal_users": true, "bindable": true}}}`) })) }) It(`Invoke UpdateCatalogPlan successfully`, func() { @@ -5738,13 +6198,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -5760,7 +6220,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -5856,13 +6316,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -5878,7 +6338,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -5995,13 +6455,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -6017,7 +6477,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel @@ -6210,13 +6670,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -6234,7 +6739,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model @@ -6306,7 +6811,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) })) }) It(`Invoke CreateCatalogDeployment successfully with retries`, func() { @@ -6375,13 +6880,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -6399,7 +6949,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model @@ -6474,7 +7024,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) })) }) It(`Invoke CreateCatalogDeployment successfully`, func() { @@ -6548,13 +7098,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -6572,7 +7167,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model @@ -6665,13 +7260,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -6689,7 +7329,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model @@ -6803,13 +7443,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -6827,7 +7512,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model @@ -6929,7 +7614,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) })) }) It(`Invoke GetCatalogDeployment successfully with retries`, func() { @@ -6988,7 +7673,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) })) }) It(`Invoke GetCatalogDeployment successfully`, func() { @@ -7177,13 +7862,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -7201,7 +7931,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model @@ -7276,7 +8006,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) })) }) It(`Invoke UpdateCatalogDeployment successfully with retries`, func() { @@ -7345,13 +8075,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -7369,7 +8144,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model @@ -7447,7 +8222,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "object_id": "ObjectID", "name": "Name", "active": true, "disabled": true, "kind": "deployment", "geo_tags": ["GeoTags"], "overview_ui": {"en": {"display_name": "DisplayName", "description": "Description", "long_description": "LongDescription"}}, "tags": ["Tags"], "url": "URL", "object_provider": {"name": "Name", "email": "Email"}, "metadata": {"rc_compatible": true, "ui": {"strings": {"en": {"bullets": [{"description": "Description", "description_i18n": {"mapKey": "Inner"}, "title": "Title", "title_i18n": {"mapKey": "Inner"}}], "media": [{"caption": "Caption", "caption_i18n": {"mapKey": "Inner"}, "thumbnail": "Thumbnail", "type": "image", "url": "URL"}], "embeddable_dashboard": "EmbeddableDashboard"}}, "urls": {"doc_url": "DocURL", "apidocs_url": "ApidocsURL", "terms_url": "TermsURL", "instructions_url": "InstructionsURL", "catalog_details_url": "CatalogDetailsURL", "custom_create_page_url": "CustomCreatePageURL", "dashboard": "Dashboard"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false, "bindable": true, "plan_updateable": true, "service_key_supported": false, "parameters": [{"displayname": "Displayname", "name": "Name", "type": "text", "options": [{"displayname": "Displayname", "value": "Value", "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}], "value": ["Value"], "layout": "Layout", "associations": {"anyKey": "anyValue"}, "validation_url": "ValidationURL", "options_url": "OptionsURL", "invalidmessage": "Invalidmessage", "description": "Description", "required": true, "pattern": "Pattern", "placeholder": "Placeholder", "readonly": true, "hidden": true, "i18n": {"en": {"displayname": "Displayname", "description": "Description"}, "de": {"displayname": "Displayname", "description": "Description"}, "es": {"displayname": "Displayname", "description": "Description"}, "fr": {"displayname": "Displayname", "description": "Description"}, "it": {"displayname": "Displayname", "description": "Description"}, "ja": {"displayname": "Displayname", "description": "Description"}, "ko": {"displayname": "Displayname", "description": "Description"}, "pt_br": {"displayname": "Displayname", "description": "Description"}, "zh_tw": {"displayname": "Displayname", "description": "Description"}, "zh_cn": {"displayname": "Displayname", "description": "Description"}}}]}, "deployment": {"broker": {"name": "Name", "guid": "Guid"}, "location": "Location", "location_url": "LocationURL", "target_crn": "TargetCrn"}}}`) })) }) It(`Invoke UpdateCatalogDeployment successfully`, func() { @@ -7521,13 +8296,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -7545,7 +8365,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model @@ -7641,13 +8461,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -7665,7 +8530,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model @@ -7782,13 +8647,58 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiModel.Hidden = core.BoolPtr(true) globalCatalogMetadataUiModel.SideBySideIndex = core.Float64Ptr(float64(72.5)) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -7806,7 +8716,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model @@ -7994,9 +8904,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -8234,9 +9141,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -8482,9 +9386,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -8674,9 +9575,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -8887,9 +9785,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -9101,9 +9996,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -9347,9 +10239,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -9601,9 +10490,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -9799,9 +10685,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -10018,9 +10901,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -11929,19 +12809,101 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogMetadataUiModel.Hidden).To(Equal(core.BoolPtr(true))) Expect(globalCatalogMetadataUiModel.SideBySideIndex).To(Equal(core.Float64Ptr(float64(72.5)))) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - Expect(globalCatalogMetadataServiceModel).ToNot(BeNil()) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) - Expect(globalCatalogMetadataServiceModel.RcProvisionable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.IamCompatible).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.Bindable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.PlanUpdateable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.ServiceKeySupported).To(Equal(core.BoolPtr(true))) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + Expect(globalCatalogMetadataServiceCustomParametersI18nFieldsModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + Expect(globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description).To(Equal(core.StringPtr("testString"))) + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.En).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.De).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Es).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Fr).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.It).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Ja).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Ko).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.PtBr).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel.Value).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel.I18n).To(Equal(globalCatalogMetadataServiceCustomParametersI18nModel)) + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + Expect(globalCatalogMetadataServiceCustomParametersModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + Expect(globalCatalogMetadataServiceCustomParametersModel.Displayname).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Type).To(Equal(core.StringPtr("text"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Options).To(Equal([]partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel})) + Expect(globalCatalogMetadataServiceCustomParametersModel.Value).To(Equal([]string{"testString"})) + Expect(globalCatalogMetadataServiceCustomParametersModel.Layout).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Associations).To(Equal(map[string]interface{}{"anyKey": "anyValue"})) + Expect(globalCatalogMetadataServiceCustomParametersModel.ValidationURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.OptionsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Invalidmessage).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Description).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Required).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Pattern).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Placeholder).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Readonly).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Hidden).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogMetadataServiceCustomParametersModel.I18n).To(Equal(globalCatalogMetadataServiceCustomParametersI18nModel)) + + // Construct an instance of the GlobalCatalogDeploymentMetadataService model + globalCatalogDeploymentMetadataServiceModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + Expect(globalCatalogDeploymentMetadataServiceModel).ToNot(BeNil()) + globalCatalogDeploymentMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogDeploymentMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} + Expect(globalCatalogDeploymentMetadataServiceModel.RcProvisionable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogDeploymentMetadataServiceModel.IamCompatible).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogDeploymentMetadataServiceModel.Bindable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogDeploymentMetadataServiceModel.PlanUpdateable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogDeploymentMetadataServiceModel.ServiceKeySupported).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogDeploymentMetadataServiceModel.Parameters).To(Equal([]partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel})) // Construct an instance of the GlobalCatalogMetadataDeploymentBroker model globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) @@ -11968,11 +12930,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogDeploymentMetadataModel).ToNot(BeNil()) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Service = globalCatalogDeploymentMetadataServiceModel globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel Expect(globalCatalogDeploymentMetadataModel.RcCompatible).To(Equal(core.BoolPtr(true))) Expect(globalCatalogDeploymentMetadataModel.Ui).To(Equal(globalCatalogMetadataUiModel)) - Expect(globalCatalogDeploymentMetadataModel.Service).To(Equal(globalCatalogMetadataServiceModel)) + Expect(globalCatalogDeploymentMetadataModel.Service).To(Equal(globalCatalogDeploymentMetadataServiceModel)) Expect(globalCatalogDeploymentMetadataModel.Deployment).To(Equal(globalCatalogMetadataDeploymentModel)) // Construct an instance of the CreateCatalogDeploymentOptions model @@ -12115,19 +13077,19 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogMetadataUiModel.Hidden).To(Equal(core.BoolPtr(true))) Expect(globalCatalogMetadataUiModel.SideBySideIndex).To(Equal(core.Float64Ptr(float64(72.5)))) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - Expect(globalCatalogMetadataServiceModel).ToNot(BeNil()) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(false) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) - Expect(globalCatalogMetadataServiceModel.RcProvisionable).To(Equal(core.BoolPtr(false))) - Expect(globalCatalogMetadataServiceModel.IamCompatible).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.Bindable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.PlanUpdateable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.ServiceKeySupported).To(Equal(core.BoolPtr(true))) + // Construct an instance of the GlobalCatalogPlanMetadataService model + globalCatalogPlanMetadataServiceModel := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + Expect(globalCatalogPlanMetadataServiceModel).ToNot(BeNil()) + globalCatalogPlanMetadataServiceModel.RcProvisionable = core.BoolPtr(false) + globalCatalogPlanMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogPlanMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + Expect(globalCatalogPlanMetadataServiceModel.RcProvisionable).To(Equal(core.BoolPtr(false))) + Expect(globalCatalogPlanMetadataServiceModel.IamCompatible).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogPlanMetadataServiceModel.Bindable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogPlanMetadataServiceModel.PlanUpdateable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogPlanMetadataServiceModel.ServiceKeySupported).To(Equal(core.BoolPtr(true))) // Construct an instance of the GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -12150,12 +13112,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogPlanMetadataModel).ToNot(BeNil()) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogPlanMetadataModel.Service = globalCatalogPlanMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel Expect(globalCatalogPlanMetadataModel.RcCompatible).To(Equal(core.BoolPtr(true))) Expect(globalCatalogPlanMetadataModel.Ui).To(Equal(globalCatalogMetadataUiModel)) - Expect(globalCatalogPlanMetadataModel.Service).To(Equal(globalCatalogMetadataServiceModel)) + Expect(globalCatalogPlanMetadataModel.Service).To(Equal(globalCatalogPlanMetadataServiceModel)) Expect(globalCatalogPlanMetadataModel.Pricing).To(Equal(globalCatalogMetadataPricingModel)) Expect(globalCatalogPlanMetadataModel.Plan).To(Equal(globalCatalogPlanMetadataPlanModel)) @@ -12302,19 +13264,103 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogMetadataUiModel.Hidden).To(Equal(core.BoolPtr(true))) Expect(globalCatalogMetadataUiModel.SideBySideIndex).To(Equal(core.Float64Ptr(float64(72.5)))) - // Construct an instance of the GlobalCatalogMetadataService model - globalCatalogMetadataServiceModel := new(partnercentersellv1.GlobalCatalogMetadataService) - Expect(globalCatalogMetadataServiceModel).ToNot(BeNil()) - globalCatalogMetadataServiceModel.RcProvisionable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.IamCompatible = core.BoolPtr(true) - globalCatalogMetadataServiceModel.Bindable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) - globalCatalogMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) - Expect(globalCatalogMetadataServiceModel.RcProvisionable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.IamCompatible).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.Bindable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.PlanUpdateable).To(Equal(core.BoolPtr(true))) - Expect(globalCatalogMetadataServiceModel.ServiceKeySupported).To(Equal(core.BoolPtr(true))) + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18nFields model + globalCatalogMetadataServiceCustomParametersI18nFieldsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + Expect(globalCatalogMetadataServiceCustomParametersI18nFieldsModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description = core.StringPtr("testString") + Expect(globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Displayname).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersI18nFieldsModel.Description).To(Equal(core.StringPtr("testString"))) + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersI18n model + globalCatalogMetadataServiceCustomParametersI18nModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersI18nModel.En = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.De = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Es = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Fr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.It = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ja = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.Ko = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.PtBr = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn = globalCatalogMetadataServiceCustomParametersI18nFieldsModel + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.En).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.De).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Es).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Fr).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.It).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Ja).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.Ko).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.PtBr).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.ZhTw).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + Expect(globalCatalogMetadataServiceCustomParametersI18nModel.ZhCn).To(Equal(globalCatalogMetadataServiceCustomParametersI18nFieldsModel)) + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParametersOptions model + globalCatalogMetadataServiceCustomParametersOptionsModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.Value = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersOptionsModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel.Displayname).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel.Value).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersOptionsModel.I18n).To(Equal(globalCatalogMetadataServiceCustomParametersI18nModel)) + + // Construct an instance of the GlobalCatalogMetadataServiceCustomParameters model + globalCatalogMetadataServiceCustomParametersModel := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + Expect(globalCatalogMetadataServiceCustomParametersModel).ToNot(BeNil()) + globalCatalogMetadataServiceCustomParametersModel.Displayname = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Name = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Type = core.StringPtr("text") + globalCatalogMetadataServiceCustomParametersModel.Options = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel} + globalCatalogMetadataServiceCustomParametersModel.Value = []string{"testString"} + globalCatalogMetadataServiceCustomParametersModel.Layout = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Associations = map[string]interface{}{"anyKey": "anyValue"} + globalCatalogMetadataServiceCustomParametersModel.ValidationURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.OptionsURL = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Invalidmessage = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Description = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Required = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Pattern = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Placeholder = core.StringPtr("testString") + globalCatalogMetadataServiceCustomParametersModel.Readonly = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.Hidden = core.BoolPtr(true) + globalCatalogMetadataServiceCustomParametersModel.I18n = globalCatalogMetadataServiceCustomParametersI18nModel + Expect(globalCatalogMetadataServiceCustomParametersModel.Displayname).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Type).To(Equal(core.StringPtr("text"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Options).To(Equal([]partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel})) + Expect(globalCatalogMetadataServiceCustomParametersModel.Value).To(Equal([]string{"testString"})) + Expect(globalCatalogMetadataServiceCustomParametersModel.Layout).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Associations).To(Equal(map[string]interface{}{"anyKey": "anyValue"})) + Expect(globalCatalogMetadataServiceCustomParametersModel.ValidationURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.OptionsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Invalidmessage).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Description).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Required).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Pattern).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Placeholder).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Readonly).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogMetadataServiceCustomParametersModel.Hidden).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogMetadataServiceCustomParametersModel.I18n).To(Equal(globalCatalogMetadataServiceCustomParametersI18nModel)) + + // Construct an instance of the GlobalCatalogProductMetadataService model + globalCatalogProductMetadataServiceModel := new(partnercentersellv1.GlobalCatalogProductMetadataService) + Expect(globalCatalogProductMetadataServiceModel).ToNot(BeNil()) + globalCatalogProductMetadataServiceModel.RcProvisionable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.IamCompatible = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Bindable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.PlanUpdateable = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.ServiceKeySupported = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.UniqueApiKey = core.BoolPtr(true) + globalCatalogProductMetadataServiceModel.Parameters = []partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel} + Expect(globalCatalogProductMetadataServiceModel.RcProvisionable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogProductMetadataServiceModel.IamCompatible).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogProductMetadataServiceModel.Bindable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogProductMetadataServiceModel.PlanUpdateable).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogProductMetadataServiceModel.ServiceKeySupported).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogProductMetadataServiceModel.UniqueApiKey).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogProductMetadataServiceModel.Parameters).To(Equal([]partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{*globalCatalogMetadataServiceCustomParametersModel})) // Construct an instance of the SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -12425,11 +13471,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogProductMetadataModel).ToNot(BeNil()) globalCatalogProductMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogProductMetadataModel.Ui = globalCatalogMetadataUiModel - globalCatalogProductMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogProductMetadataModel.Service = globalCatalogProductMetadataServiceModel globalCatalogProductMetadataModel.Other = globalCatalogProductMetadataOtherModel Expect(globalCatalogProductMetadataModel.RcCompatible).To(Equal(core.BoolPtr(true))) Expect(globalCatalogProductMetadataModel.Ui).To(Equal(globalCatalogMetadataUiModel)) - Expect(globalCatalogProductMetadataModel.Service).To(Equal(globalCatalogMetadataServiceModel)) + Expect(globalCatalogProductMetadataModel.Service).To(Equal(globalCatalogProductMetadataServiceModel)) Expect(globalCatalogProductMetadataModel.Other).To(Equal(globalCatalogProductMetadataOtherModel)) // Construct an instance of the CreateCatalogProductOptions model @@ -12558,27 +13604,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName = core.StringPtr("testString") iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties = map[string]string{"key1": "testString"} - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("serviceName", core.StringPtr("pet-store")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("accountId", core.StringPtr("25543245345")) - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testAttribute", core.StringPtr("dsgdsfgsd576456")) Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AccountID).To(Equal(core.StringPtr("testString"))) Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.ServiceName).To(Equal(core.StringPtr("testString"))) Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.AdditionalProperties).To(Equal(map[string]string{"key1": "testString"})) - Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.GetProperties()).ToNot(BeEmpty()) - Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.GetProperty("serviceName")).To(Equal(core.StringPtr("pet-store"))) - Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.GetProperty("accountId")).To(Equal(core.StringPtr("25543245345"))) - Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.GetProperty("testAttribute")).To(Equal(core.StringPtr("dsgdsfgsd576456"))) - - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperties(nil) - Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModel.GetProperties()).To(BeEmpty()) - - iamServiceRegistrationSupportedAnonymousAccessAttributesModelExpectedMap := make(map[string]*string) - iamServiceRegistrationSupportedAnonymousAccessAttributesModelExpectedMap["serviceName"] = core.StringPtr("pet-store") - iamServiceRegistrationSupportedAnonymousAccessAttributesModelExpectedMap["accountId"] = core.StringPtr("25543245345") - iamServiceRegistrationSupportedAnonymousAccessAttributesModelExpectedMap["testAttribute"] = core.StringPtr("dsgdsfgsd576456") - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperties(iamServiceRegistrationSupportedAnonymousAccessAttributesModelExpectedMap) - iamServiceRegistrationSupportedAnonymousAccessAttributesModelActualMap := iamServiceRegistrationSupportedAnonymousAccessAttributesModel.GetProperties() - Expect(iamServiceRegistrationSupportedAnonymousAccessAttributesModelActualMap).To(Equal(iamServiceRegistrationSupportedAnonymousAccessAttributesModelExpectedMap)) // Construct an instance of the IamServiceRegistrationSupportedAnonymousAccess model iamServiceRegistrationSupportedAnonymousAccessModel := new(partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess) @@ -13419,6 +14447,29 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalGlobalCatalogDeploymentMetadataService successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogDeploymentMetadataService) + model.RcProvisionable = core.BoolPtr(true) + model.IamCompatible = core.BoolPtr(true) + model.Bindable = core.BoolPtr(true) + model.PlanUpdateable = core.BoolPtr(true) + model.ServiceKeySupported = core.BoolPtr(true) + model.Parameters = nil + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *partnercentersellv1.GlobalCatalogDeploymentMetadataService + err = partnercentersellv1.UnmarshalGlobalCatalogDeploymentMetadataService(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalGlobalCatalogDeploymentPatch successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogDeploymentPatch) @@ -13501,14 +14552,26 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalGlobalCatalogMetadataService successfully`, func() { + It(`Invoke UnmarshalGlobalCatalogMetadataServiceCustomParameters successfully`, func() { // Construct an instance of the model. - model := new(partnercentersellv1.GlobalCatalogMetadataService) - model.RcProvisionable = core.BoolPtr(true) - model.IamCompatible = core.BoolPtr(true) - model.Bindable = core.BoolPtr(true) - model.PlanUpdateable = core.BoolPtr(true) - model.ServiceKeySupported = core.BoolPtr(true) + model := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters) + model.Displayname = core.StringPtr("testString") + model.Name = core.StringPtr("testString") + model.Type = core.StringPtr("text") + model.Options = nil + model.Value = []string{"testString"} + model.Layout = core.StringPtr("testString") + model.Associations = map[string]interface{}{"anyKey": "anyValue"} + model.ValidationURL = core.StringPtr("testString") + model.OptionsURL = core.StringPtr("testString") + model.Invalidmessage = core.StringPtr("testString") + model.Description = core.StringPtr("testString") + model.Required = core.BoolPtr(true) + model.Pattern = core.StringPtr("testString") + model.Placeholder = core.StringPtr("testString") + model.Readonly = core.BoolPtr(true) + model.Hidden = core.BoolPtr(true) + model.I18n = nil b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13517,8 +14580,74 @@ var _ = Describe(`PartnerCenterSellV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *partnercentersellv1.GlobalCatalogMetadataService - err = partnercentersellv1.UnmarshalGlobalCatalogMetadataService(raw, &result) + var result *partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters + err = partnercentersellv1.UnmarshalGlobalCatalogMetadataServiceCustomParameters(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) + It(`Invoke UnmarshalGlobalCatalogMetadataServiceCustomParametersI18n successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n) + model.En = nil + model.De = nil + model.Es = nil + model.Fr = nil + model.It = nil + model.Ja = nil + model.Ko = nil + model.PtBr = nil + model.ZhTw = nil + model.ZhCn = nil + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18n + err = partnercentersellv1.UnmarshalGlobalCatalogMetadataServiceCustomParametersI18n(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) + It(`Invoke UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields) + model.Displayname = core.StringPtr("testString") + model.Description = core.StringPtr("testString") + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersI18nFields + err = partnercentersellv1.UnmarshalGlobalCatalogMetadataServiceCustomParametersI18nFields(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) + It(`Invoke UnmarshalGlobalCatalogMetadataServiceCustomParametersOptions successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions) + model.Displayname = core.StringPtr("testString") + model.Value = core.StringPtr("testString") + model.I18n = nil + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions + err = partnercentersellv1.UnmarshalGlobalCatalogMetadataServiceCustomParametersOptions(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) @@ -13685,6 +14814,28 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalGlobalCatalogPlanMetadataService successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogPlanMetadataService) + model.RcProvisionable = core.BoolPtr(true) + model.IamCompatible = core.BoolPtr(true) + model.Bindable = core.BoolPtr(true) + model.PlanUpdateable = core.BoolPtr(true) + model.ServiceKeySupported = core.BoolPtr(true) + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *partnercentersellv1.GlobalCatalogPlanMetadataService + err = partnercentersellv1.UnmarshalGlobalCatalogPlanMetadataService(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalGlobalCatalogPlanPatch successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogPlanPatch) @@ -13849,6 +15000,30 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalGlobalCatalogProductMetadataService successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogProductMetadataService) + model.RcProvisionable = core.BoolPtr(true) + model.IamCompatible = core.BoolPtr(true) + model.Bindable = core.BoolPtr(true) + model.PlanUpdateable = core.BoolPtr(true) + model.ServiceKeySupported = core.BoolPtr(true) + model.UniqueApiKey = core.BoolPtr(true) + model.Parameters = nil + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *partnercentersellv1.GlobalCatalogProductMetadataService + err = partnercentersellv1.UnmarshalGlobalCatalogProductMetadataService(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalGlobalCatalogProductPatch successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogProductPatch) From 853c057f1704b352f355e1c900b76d1909ec9e86 Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Wed, 18 Dec 2024 16:59:10 +0100 Subject: [PATCH 2/7] feat(partner center sell): test fix in progress Signed-off-by: Peter Harasztia --- partnercentersellv1/partner_center_sell_v1.go | 2 +- .../partner_center_sell_v1_examples_test.go | 8 ++++---- .../partner_center_sell_v1_integration_test.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/partnercentersellv1/partner_center_sell_v1.go b/partnercentersellv1/partner_center_sell_v1.go index 4d1c4f46..4d73b075 100644 --- a/partnercentersellv1/partner_center_sell_v1.go +++ b/partnercentersellv1/partner_center_sell_v1.go @@ -42,7 +42,7 @@ type PartnerCenterSellV1 struct { } // DefaultServiceURL is the default URL to make service requests to. -const DefaultServiceURL = "http://localhost:5005/openapi/v1" +const DefaultServiceURL = "https://product-lifecycle.cloud.ibm.com/openapi/v1" // DefaultServiceName is the default key used to find external configuration information. const DefaultServiceName = "partner_center_sell" diff --git a/partnercentersellv1/partner_center_sell_v1_examples_test.go b/partnercentersellv1/partner_center_sell_v1_examples_test.go index be24cab0..2eaf6517 100644 --- a/partnercentersellv1/partner_center_sell_v1_examples_test.go +++ b/partnercentersellv1/partner_center_sell_v1_examples_test.go @@ -603,7 +603,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(asPatchErr).To(BeNil()) updateIamRegistrationOptions := partnerCenterSellService.NewUpdateIamRegistrationOptions( - productIdLink, + productIdWithApprovedProgrammaticName, programmaticNameLink, iamServiceRegistrationPatchModelAsPatch, ) @@ -629,9 +629,9 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { // begin-create_resource_broker createResourceBrokerOptions := partnerCenterSellService.NewCreateResourceBrokerOptions( - "bearer", - "brokername", - "https://broker-url-for-my-service.com", + "bearer-crn", + brokerName, + brokerLink, "provision_through", ) createResourceBrokerOptions.SetAuthUsername("apikey") diff --git a/partnercentersellv1/partner_center_sell_v1_integration_test.go b/partnercentersellv1/partner_center_sell_v1_integration_test.go index ab73065e..195355a9 100644 --- a/partnercentersellv1/partner_center_sell_v1_integration_test.go +++ b/partnercentersellv1/partner_center_sell_v1_integration_test.go @@ -1801,7 +1801,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { brokerPatchModel := &partnercentersellv1.BrokerPatch{ AuthUsername: core.StringPtr("apikey"), - AuthPassword: core.StringPtr("testString"), + AuthPassword: core.StringPtr("0GANZzXiTurnXTF_000-FVk500800sdkrTHAt000y00y"), AuthScheme: core.StringPtr("bearer"), BrokerURL: core.StringPtr(brokerUrl), ResourceGroupCrn: core.StringPtr("crn:v1:staging:public:resource-controller::a/f15038e9046e4b9587db0ae76c4cbc26::resource-group:3a3a8ae311d0486c86b0a8c09e56883d"), From fc5aba73678ecd80fa0acace230d08f977932964 Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Wed, 18 Dec 2024 17:24:21 +0100 Subject: [PATCH 3/7] feat(partner center sell): fix example tests Signed-off-by: Peter Harasztia --- .../partner_center_sell_v1_examples_test.go | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/partnercentersellv1/partner_center_sell_v1_examples_test.go b/partnercentersellv1/partner_center_sell_v1_examples_test.go index 2eaf6517..7ab9c8df 100644 --- a/partnercentersellv1/partner_center_sell_v1_examples_test.go +++ b/partnercentersellv1/partner_center_sell_v1_examples_test.go @@ -564,19 +564,9 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { // begin-create_iam_registration createIamRegistrationOptions := partnerCenterSellService.NewCreateIamRegistrationOptions( - productIdLink, - "pet-store", + productIdWithApprovedProgrammaticName, + "sample-name", ) - createIamRegistrationOptions.SetEnabled(true) - createIamRegistrationOptions.SetActions([]partnercentersellv1.IamServiceRegistrationAction{*iamServiceRegistrationActionModel}) - createIamRegistrationOptions.SetAdditionalPolicyScopes([]string{"pet-store"}) - createIamRegistrationOptions.SetDisplayName(iamServiceRegistrationDisplayNameObjectModel) - createIamRegistrationOptions.SetParentIds([]string{}) - createIamRegistrationOptions.SetSupportedAnonymousAccesses([]partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{*iamServiceRegistrationSupportedAnonymousAccessModel}) - createIamRegistrationOptions.SetSupportedAttributes([]partnercentersellv1.IamServiceRegistrationSupportedAttribute{*iamServiceRegistrationSupportedAttributeModel}) - createIamRegistrationOptions.SetSupportedAuthorizationSubjects([]partnercentersellv1.IamServiceRegistrationSupportedAuthorizationSubject{*iamServiceRegistrationSupportedAuthorizationSubjectModel}) - createIamRegistrationOptions.SetSupportedRoles([]partnercentersellv1.IamServiceRegistrationSupportedRole{*iamServiceRegistrationSupportedRoleModel}) - createIamRegistrationOptions.SetSupportedNetwork(iamServiceRegistrationSupportedNetworkModel) iamServiceRegistration, response, err := partnerCenterSellService.CreateIamRegistration(createIamRegistrationOptions) if err != nil { @@ -628,14 +618,16 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { fmt.Println("\nCreateResourceBroker() result:") // begin-create_resource_broker + var randomInteger = strconv.Itoa(rand.Intn(1000)) + brokerName := fmt.Sprintf("broker-example-%s", randomInteger) + brokerLink := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) + createResourceBrokerOptions := partnerCenterSellService.NewCreateResourceBrokerOptions( "bearer-crn", brokerName, brokerLink, "provision_through", ) - createResourceBrokerOptions.SetAuthUsername("apikey") - createResourceBrokerOptions.SetResourceGroupCrn("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") createResourceBrokerOptions.SetState("active") createResourceBrokerOptions.SetAllowContextUpdates(false) createResourceBrokerOptions.SetCatalogType("service") From 68db5c79ba26361deabe41178e58a164390d433a Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Fri, 20 Dec 2024 11:21:35 +0100 Subject: [PATCH 4/7] feat(partner center sell): fix integration tests Signed-off-by: Peter Harasztia --- go.mod | 5 +- go.sum | 8 +- ...partner_center_sell_v1_integration_test.go | 106 +++++++++--------- 3 files changed, 61 insertions(+), 58 deletions(-) diff --git a/go.mod b/go.mod index c66235e5..2cced07b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/IBM/platform-services-go-sdk -go 1.21 +go 1.22.0 + +toolchain go1.22.6 require ( github.com/IBM/go-sdk-core/v5 v5.18.0 @@ -9,6 +11,7 @@ require ( github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.31.1 github.com/stretchr/testify v1.9.0 + golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 ) require ( diff --git a/go.sum b/go.sum index 4bc42d09..3e19bf10 100644 --- a/go.sum +++ b/go.sum @@ -96,6 +96,8 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 h1:1UoZQm6f0P/ZO0w1Ri+f+ifG/gXhegadRdwBIXEFWDo= +golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -126,8 +128,8 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.16.1 h1:TLyB3WofjdOEepBHAU20JdNC1Zbg87elYofWYAY5oZA= -golang.org/x/tools v0.16.1/go.mod h1:kYVVN6I1mBNoB1OX+noeBjbRk4IUEPa7JJ+TJMEooJ0= +golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8= +golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -152,4 +154,4 @@ gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= \ No newline at end of file +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/partnercentersellv1/partner_center_sell_v1_integration_test.go b/partnercentersellv1/partner_center_sell_v1_integration_test.go index 195355a9..a33e5358 100644 --- a/partnercentersellv1/partner_center_sell_v1_integration_test.go +++ b/partnercentersellv1/partner_center_sell_v1_integration_test.go @@ -21,6 +21,7 @@ package partnercentersellv1_test import ( "fmt" "log" + "math/rand" "os" "strconv" "time" @@ -344,22 +345,22 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ - Displayname: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Displayname: core.StringPtr("Display_name"), + Name: core.StringPtr("Sample_name"), Type: core.StringPtr("text"), Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, - Value: []string{"testString"}, - Layout: core.StringPtr("testString"), + Value: []string{"sample_value"}, + Layout: core.StringPtr("sample_layout"), Associations: map[string]interface{}{"anyKey": "anyValue"}, - ValidationURL: core.StringPtr("testString"), - OptionsURL: core.StringPtr("testString"), - Invalidmessage: core.StringPtr("testString"), - Description: core.StringPtr("testString"), + ValidationURL: core.StringPtr("https://http.cat/valid"), + OptionsURL: core.StringPtr("https://http.cat/option"), + Invalidmessage: core.StringPtr("Invalid message"), + Description: core.StringPtr("Sample description"), Required: core.BoolPtr(true), - Pattern: core.StringPtr("testString"), - Placeholder: core.StringPtr("testString"), - Readonly: core.BoolPtr(true), - Hidden: core.BoolPtr(true), + Pattern: core.StringPtr("."), + Placeholder: core.StringPtr("Placeholder"), + Readonly: core.BoolPtr(false), + Hidden: core.BoolPtr(false), I18n: globalCatalogMetadataServiceCustomParametersI18nModel, } @@ -562,22 +563,22 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ - Displayname: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Displayname: core.StringPtr("Display_name"), + Name: core.StringPtr("Sample_name"), Type: core.StringPtr("text"), Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, - Value: []string{"testString"}, - Layout: core.StringPtr("testString"), + Value: []string{"sample_value"}, + Layout: core.StringPtr("sample_layout"), Associations: map[string]interface{}{"anyKey": "anyValue"}, - ValidationURL: core.StringPtr("testString"), - OptionsURL: core.StringPtr("testString"), - Invalidmessage: core.StringPtr("testString"), - Description: core.StringPtr("testString"), + ValidationURL: core.StringPtr("https://http.cat/valid"), + OptionsURL: core.StringPtr("https://http.cat/option"), + Invalidmessage: core.StringPtr("Invalid message"), + Description: core.StringPtr("Sample description"), Required: core.BoolPtr(true), - Pattern: core.StringPtr("testString"), - Placeholder: core.StringPtr("testString"), - Readonly: core.BoolPtr(true), - Hidden: core.BoolPtr(true), + Pattern: core.StringPtr("."), + Placeholder: core.StringPtr("Placeholder"), + Readonly: core.BoolPtr(false), + Hidden: core.BoolPtr(false), I18n: globalCatalogMetadataServiceCustomParametersI18nModel, } @@ -1009,22 +1010,22 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ - Displayname: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Displayname: core.StringPtr("Display_name"), + Name: core.StringPtr("Sample_name"), Type: core.StringPtr("text"), Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, - Value: []string{"testString"}, - Layout: core.StringPtr("testString"), + Value: []string{"sample_value"}, + Layout: core.StringPtr("sample_layout"), Associations: map[string]interface{}{"anyKey": "anyValue"}, - ValidationURL: core.StringPtr("testString"), - OptionsURL: core.StringPtr("testString"), - Invalidmessage: core.StringPtr("testString"), - Description: core.StringPtr("testString"), + ValidationURL: core.StringPtr("https://http.cat/valid"), + OptionsURL: core.StringPtr("https://http.cat/option"), + Invalidmessage: core.StringPtr("Invalid message"), + Description: core.StringPtr("Sample description"), Required: core.BoolPtr(true), - Pattern: core.StringPtr("testString"), - Placeholder: core.StringPtr("testString"), - Readonly: core.BoolPtr(true), - Hidden: core.BoolPtr(true), + Pattern: core.StringPtr("."), + Placeholder: core.StringPtr("Placeholder"), + Readonly: core.BoolPtr(false), + Hidden: core.BoolPtr(false), I18n: globalCatalogMetadataServiceCustomParametersI18nModel, } @@ -1172,22 +1173,22 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceCustomParametersModel := &partnercentersellv1.GlobalCatalogMetadataServiceCustomParameters{ - Displayname: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Displayname: core.StringPtr("Display_name"), + Name: core.StringPtr("Sample_name"), Type: core.StringPtr("text"), Options: []partnercentersellv1.GlobalCatalogMetadataServiceCustomParametersOptions{*globalCatalogMetadataServiceCustomParametersOptionsModel}, - Value: []string{"testString"}, - Layout: core.StringPtr("testString"), + Value: []string{"sample_value"}, + Layout: core.StringPtr("sample_layout"), Associations: map[string]interface{}{"anyKey": "anyValue"}, - ValidationURL: core.StringPtr("testString"), - OptionsURL: core.StringPtr("testString"), - Invalidmessage: core.StringPtr("testString"), - Description: core.StringPtr("testString"), + ValidationURL: core.StringPtr("https://http.cat/valid"), + OptionsURL: core.StringPtr("https://http.cat/option"), + Invalidmessage: core.StringPtr("Invalid message"), + Description: core.StringPtr("Sample description"), Required: core.BoolPtr(true), - Pattern: core.StringPtr("testString"), - Placeholder: core.StringPtr("testString"), - Readonly: core.BoolPtr(true), - Hidden: core.BoolPtr(true), + Pattern: core.StringPtr("."), + Placeholder: core.StringPtr("Placeholder"), + Readonly: core.BoolPtr(false), + Hidden: core.BoolPtr(false), I18n: globalCatalogMetadataServiceCustomParametersI18nModel, } @@ -1325,7 +1326,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { supportedAttributesOptionsModel := &partnercentersellv1.SupportedAttributesOptions{ Operators: []string{"stringEquals"}, Hidden: core.BoolPtr(false), - SupportedPatterns: []string{"testString"}, + SupportedPatterns: []string{"attribute-based-condition:resource:literal-and-wildcard"}, PolicyTypes: []string{"access"}, IsEmptyValueSupported: core.BoolPtr(true), IsStringExistsFalseValueSupported: core.BoolPtr(true), @@ -1475,9 +1476,8 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { iamServiceRegistrationSupportedAnonymousAccessAttributesModel := &partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccessAttributes{ AccountID: core.StringPtr("testString"), ServiceName: core.StringPtr(iamServiceRegistrationId), - AdditionalProperties: map[string]string{"key1": "testString"}, + AdditionalProperties: map[string]string{"testString": "fakeAccount"}, } - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testString", core.StringPtr("foo")) iamServiceRegistrationSupportedAnonymousAccessModel := &partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{ Attributes: iamServiceRegistrationSupportedAnonymousAccessAttributesModel, @@ -1613,7 +1613,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { It(`CreateResourceBroker(createResourceBrokerOptions *CreateResourceBrokerOptions)`, func() { var randomInteger = strconv.Itoa(rand.Intn(1000)) brokerUrl := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) - brokerName := fmt.Sprintf("petra_test_%s", randomInteger) + brokerName := fmt.Sprintf("petya_test_%s", randomInteger) createResourceBrokerOptions := &partnercentersellv1.CreateResourceBrokerOptions{ AuthUsername: core.StringPtr("apikey"), @@ -1622,7 +1622,6 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Name: core.StringPtr(brokerName), BrokerURL: core.StringPtr(brokerUrl), Type: core.StringPtr("provision_through"), - ResourceGroupCrn: core.StringPtr("crn:v1:staging:public:resource-controller::a/f15038e9046e4b9587db0ae76c4cbc26::resource-group:3a3a8ae311d0486c86b0a8c09e56883d"), State: core.StringPtr("active"), AllowContextUpdates: core.BoolPtr(true), CatalogType: core.StringPtr("service"), @@ -1804,7 +1803,6 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { AuthPassword: core.StringPtr("0GANZzXiTurnXTF_000-FVk500800sdkrTHAt000y00y"), AuthScheme: core.StringPtr("bearer"), BrokerURL: core.StringPtr(brokerUrl), - ResourceGroupCrn: core.StringPtr("crn:v1:staging:public:resource-controller::a/f15038e9046e4b9587db0ae76c4cbc26::resource-group:3a3a8ae311d0486c86b0a8c09e56883d"), State: core.StringPtr("active"), AllowContextUpdates: core.BoolPtr(true), CatalogType: core.StringPtr("service"), From b985de6d1e08f2e8e5687e220bbd840ed4102def Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Mon, 30 Dec 2024 08:58:22 +0100 Subject: [PATCH 5/7] feat(partner center sell): fix import rand Signed-off-by: Peter Harasztia --- partnercentersellv1/partner_center_sell_v1_integration_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/partnercentersellv1/partner_center_sell_v1_integration_test.go b/partnercentersellv1/partner_center_sell_v1_integration_test.go index a33e5358..e01004af 100644 --- a/partnercentersellv1/partner_center_sell_v1_integration_test.go +++ b/partnercentersellv1/partner_center_sell_v1_integration_test.go @@ -30,7 +30,6 @@ import ( "github.com/IBM/platform-services-go-sdk/partnercentersellv1" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "golang.org/x/exp/rand" ) /** From 84103fe9944f5232ad42104515846117d18104ee Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Mon, 30 Dec 2024 10:45:28 +0100 Subject: [PATCH 6/7] feat(partner center sell): fix secret scan Signed-off-by: Peter Harasztia --- .secrets.baseline | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index db639e90..0689cc23 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.sum|^.secrets.baseline$|_test.go|package-lock.json|.cra/.cveignore", "lines": null }, - "generated_at": "2024-10-04T13:42:47Z", + "generated_at": "2024-12-30T09:44:26Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -242,7 +242,7 @@ "hashed_secret": "885d454ea2daa5a77ea1cb78ce79a7972b341865", "is_secret": false, "is_verified": false, - "line_number": 2163, + "line_number": 2172, "type": "Secret Keyword", "verified_result": null }, @@ -250,7 +250,7 @@ "hashed_secret": "fb8326e2cd6372e27e37c5433a25729b5c707a46", "is_secret": false, "is_verified": false, - "line_number": 3012, + "line_number": 3021, "type": "Secret Keyword", "verified_result": null }, @@ -258,7 +258,7 @@ "hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030", "is_secret": false, "is_verified": false, - "line_number": 4055, + "line_number": 4091, "type": "Secret Keyword", "verified_result": null }, @@ -266,7 +266,14 @@ "hashed_secret": "6452e7c5a42f97b00af1a210afc7d4de315e57ec", "is_secret": false, "is_verified": false, - "line_number": 4105, + "line_number": 4141, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "a37778ccb042292072dfa7d8dcb82e9125a45dc5", + "is_verified": false, + "line_number": 7167, "type": "Secret Keyword", "verified_result": null } From 039fcc9c8e9b60e4f6827af38e5788f8bcd9642b Mon Sep 17 00:00:00 2001 From: Peter Harasztia Date: Mon, 30 Dec 2024 10:58:14 +0100 Subject: [PATCH 7/7] feat(partner center sell): fix secret scan Signed-off-by: Peter Harasztia --- .secrets.baseline | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.secrets.baseline b/.secrets.baseline index 0689cc23..ee537d2a 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.sum|^.secrets.baseline$|_test.go|package-lock.json|.cra/.cveignore", "lines": null }, - "generated_at": "2024-12-30T09:44:26Z", + "generated_at": "2024-12-30T09:56:45Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -272,6 +272,7 @@ }, { "hashed_secret": "a37778ccb042292072dfa7d8dcb82e9125a45dc5", + "is_secret": false, "is_verified": false, "line_number": 7167, "type": "Secret Keyword",