diff --git a/.secrets.baseline b/.secrets.baseline index c0816d29..db639e90 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-08-22T17:20:40Z", + "generated_at": "2024-10-04T13:42:47Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -70,7 +70,7 @@ "hashed_secret": "dc893c9c63b0a9f1ac2b956b807ee3d8bc8e1128", "is_secret": false, "is_verified": false, - "line_number": 5659, + "line_number": 6216, "type": "Secret Keyword", "verified_result": null }, @@ -78,7 +78,7 @@ "hashed_secret": "c334fe1f9004e339ead59696c029181963999ff3", "is_secret": false, "is_verified": false, - "line_number": 5683, + "line_number": 6240, "type": "Secret Keyword", "verified_result": null }, @@ -86,7 +86,7 @@ "hashed_secret": "f971798ba28d8d6a66ee5bdea060b751a078c2fa", "is_secret": false, "is_verified": false, - "line_number": 5789, + "line_number": 6349, "type": "Secret Keyword", "verified_result": null }, @@ -94,7 +94,7 @@ "hashed_secret": "e7369ac81427d43f7615f691cd1cf5c3ef9b2f00", "is_secret": false, "is_verified": false, - "line_number": 5813, + "line_number": 6373, "type": "Secret Keyword", "verified_result": null }, @@ -102,7 +102,7 @@ "hashed_secret": "bc31992082895a108753616f5be455b3e897bb29", "is_secret": false, "is_verified": false, - "line_number": 6005, + "line_number": 6568, "type": "Secret Keyword", "verified_result": null }, @@ -110,7 +110,7 @@ "hashed_secret": "21ac4c0699bb3f370e2c21331fd8606739b1079b", "is_secret": false, "is_verified": false, - "line_number": 6029, + "line_number": 6592, "type": "Secret Keyword", "verified_result": null }, @@ -118,7 +118,7 @@ "hashed_secret": "6452e7c5a42f97b00af1a210afc7d4de315e57ec", "is_secret": false, "is_verified": false, - "line_number": 22814, + "line_number": 24728, "type": "Secret Keyword", "verified_result": null } @@ -242,7 +242,7 @@ "hashed_secret": "885d454ea2daa5a77ea1cb78ce79a7972b341865", "is_secret": false, "is_verified": false, - "line_number": 2151, + "line_number": 2163, "type": "Secret Keyword", "verified_result": null }, @@ -250,7 +250,15 @@ "hashed_secret": "fb8326e2cd6372e27e37c5433a25729b5c707a46", "is_secret": false, "is_verified": false, - "line_number": 3122, + "line_number": 3012, + "type": "Secret Keyword", + "verified_result": null + }, + { + "hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030", + "is_secret": false, + "is_verified": false, + "line_number": 4055, "type": "Secret Keyword", "verified_result": null }, @@ -258,7 +266,7 @@ "hashed_secret": "6452e7c5a42f97b00af1a210afc7d4de315e57ec", "is_secret": false, "is_verified": false, - "line_number": 4318, + "line_number": 4105, "type": "Secret Keyword", "verified_result": null } @@ -268,7 +276,7 @@ "hashed_secret": "bbccdf2efb33b52e6c9d0a14dd70b2d415fbea6e", "is_secret": false, "is_verified": false, - "line_number": 2645, + "line_number": 2681, "type": "Secret Keyword", "verified_result": null }, @@ -276,7 +284,7 @@ "hashed_secret": "d6b1537b6181f0a1c9dffdf7980702e6a773efbb", "is_secret": false, "is_verified": false, - "line_number": 2720, + "line_number": 2759, "type": "Secret Keyword", "verified_result": null } diff --git a/partnercentersellv1/partner_center_sell_v1.go b/partnercentersellv1/partner_center_sell_v1.go index 67ca6df0..65734bee 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.94.1-71478489-20240820-161623 + * IBM OpenAPI SDK Code Generator Version: 3.95.2-120e65bc-20240924-152329 */ // 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.api.test.cloud.ibm.com/v1/gateway" +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" @@ -2144,12 +2144,6 @@ func (partnerCenterSell *PartnerCenterSellV1) CreateResourceBrokerWithContext(ct } body := make(map[string]interface{}) - if createResourceBrokerOptions.AuthUsername != nil { - body["auth_username"] = createResourceBrokerOptions.AuthUsername - } - if createResourceBrokerOptions.AuthPassword != nil { - body["auth_password"] = createResourceBrokerOptions.AuthPassword - } if createResourceBrokerOptions.AuthScheme != nil { body["auth_scheme"] = createResourceBrokerOptions.AuthScheme } @@ -2162,6 +2156,12 @@ func (partnerCenterSell *PartnerCenterSellV1) CreateResourceBrokerWithContext(ct if createResourceBrokerOptions.Type != nil { body["type"] = createResourceBrokerOptions.Type } + if createResourceBrokerOptions.AuthUsername != nil { + body["auth_username"] = createResourceBrokerOptions.AuthUsername + } + if createResourceBrokerOptions.AuthPassword != nil { + body["auth_password"] = createResourceBrokerOptions.AuthPassword + } if createResourceBrokerOptions.ResourceGroupCrn != nil { body["resource_group_crn"] = createResourceBrokerOptions.ResourceGroupCrn } @@ -2562,142 +2562,6 @@ func (partnerCenterSell *PartnerCenterSellV1) GetProductBadgeWithContext(ctx con return } - -// ListBadges : List badges -// List all available badges that a product can be validated against. -func (partnerCenterSell *PartnerCenterSellV1) ListBadges(listBadgesOptions *ListBadgesOptions) (result *CloudBadges, response *core.DetailedResponse, err error) { - result, response, err = partnerCenterSell.ListBadgesWithContext(context.Background(), listBadgesOptions) - err = core.RepurposeSDKProblem(err, "") - return -} - -// ListBadgesWithContext is an alternate form of the ListBadges method which supports a Context parameter -func (partnerCenterSell *PartnerCenterSellV1) ListBadgesWithContext(ctx context.Context, listBadgesOptions *ListBadgesOptions) (result *CloudBadges, response *core.DetailedResponse, err error) { - err = core.ValidateStruct(listBadgesOptions, "listBadgesOptions") - if err != nil { - err = core.SDKErrorf(err, "", "struct-validation-error", common.GetComponentInfo()) - return - } - - builder := core.NewRequestBuilder(core.GET) - builder = builder.WithContext(ctx) - builder.EnableGzipCompression = partnerCenterSell.GetEnableGzipCompression() - _, err = builder.ResolveRequestURL(partnerCenterSell.Service.Options.URL, `/products/badges`, nil) - if err != nil { - err = core.SDKErrorf(err, "", "url-resolve-error", common.GetComponentInfo()) - return - } - - for headerName, headerValue := range listBadgesOptions.Headers { - builder.AddHeader(headerName, headerValue) - } - - sdkHeaders := common.GetSdkHeaders("partner_center_sell", "V1", "ListBadges") - for headerName, headerValue := range sdkHeaders { - builder.AddHeader(headerName, headerValue) - } - builder.AddHeader("Accept", "application/json") - - if listBadgesOptions.Limit != nil { - builder.AddQuery("limit", fmt.Sprint(*listBadgesOptions.Limit)) - } - if listBadgesOptions.Start != nil { - builder.AddQuery("start", fmt.Sprint(*listBadgesOptions.Start)) - } - - request, err := builder.Build() - if err != nil { - err = core.SDKErrorf(err, "", "build-error", common.GetComponentInfo()) - return - } - - var rawResponse map[string]json.RawMessage - response, err = partnerCenterSell.Service.Request(request, &rawResponse) - if err != nil { - core.EnrichHTTPProblem(err, "list_badges", getServiceComponentInfo()) - err = core.SDKErrorf(err, "", "http-request-err", common.GetComponentInfo()) - return - } - if rawResponse != nil { - err = core.UnmarshalModel(rawResponse, "", &result, UnmarshalCloudBadges) - if err != nil { - err = core.SDKErrorf(err, "", "unmarshal-resp-error", common.GetComponentInfo()) - return - } - response.Result = result - } - - return -} - -// GetBadge : Get badge -// Retrieve the details of a badge. -func (partnerCenterSell *PartnerCenterSellV1) GetBadge(getBadgeOptions *GetBadgeOptions) (result *CloudBadge, response *core.DetailedResponse, err error) { - result, response, err = partnerCenterSell.GetBadgeWithContext(context.Background(), getBadgeOptions) - err = core.RepurposeSDKProblem(err, "") - return -} - -// GetBadgeWithContext is an alternate form of the GetBadge method which supports a Context parameter -func (partnerCenterSell *PartnerCenterSellV1) GetBadgeWithContext(ctx context.Context, getBadgeOptions *GetBadgeOptions) (result *CloudBadge, response *core.DetailedResponse, err error) { - err = core.ValidateNotNil(getBadgeOptions, "getBadgeOptions cannot be nil") - if err != nil { - err = core.SDKErrorf(err, "", "unexpected-nil-param", common.GetComponentInfo()) - return - } - err = core.ValidateStruct(getBadgeOptions, "getBadgeOptions") - if err != nil { - err = core.SDKErrorf(err, "", "struct-validation-error", common.GetComponentInfo()) - return - } - - pathParamsMap := map[string]string{ - "badge_id": fmt.Sprint(*getBadgeOptions.BadgeID), - } - - builder := core.NewRequestBuilder(core.GET) - builder = builder.WithContext(ctx) - builder.EnableGzipCompression = partnerCenterSell.GetEnableGzipCompression() - _, err = builder.ResolveRequestURL(partnerCenterSell.Service.Options.URL, `/products/badges/{badge_id}`, pathParamsMap) - if err != nil { - err = core.SDKErrorf(err, "", "url-resolve-error", common.GetComponentInfo()) - return - } - - for headerName, headerValue := range getBadgeOptions.Headers { - builder.AddHeader(headerName, headerValue) - } - - sdkHeaders := common.GetSdkHeaders("partner_center_sell", "V1", "GetBadge") - for headerName, headerValue := range sdkHeaders { - builder.AddHeader(headerName, headerValue) - } - builder.AddHeader("Accept", "application/json") - - request, err := builder.Build() - if err != nil { - err = core.SDKErrorf(err, "", "build-error", common.GetComponentInfo()) - return - } - - var rawResponse map[string]json.RawMessage - response, err = partnerCenterSell.Service.Request(request, &rawResponse) - if err != nil { - core.EnrichHTTPProblem(err, "get_badge", getServiceComponentInfo()) - err = core.SDKErrorf(err, "", "http-request-err", common.GetComponentInfo()) - return - } - if rawResponse != nil { - err = core.UnmarshalModel(rawResponse, "", &result, UnmarshalCloudBadge) - if err != nil { - err = core.SDKErrorf(err, "", "unmarshal-resp-error", common.GetComponentInfo()) - return - } - response.Result = result - } - - return -} func getServiceComponentInfo() *core.ProblemComponent { return core.NewProblemComponent(DefaultServiceName, "1.5.0") } @@ -2798,6 +2662,19 @@ type Broker struct { URL *string `json:"url,omitempty"` } +// Constants associated with the Broker.AuthUsername property. +// The authentication username to reach the broker. +const ( + Broker_AuthUsername_Apikey = "apikey" +) + +// Constants associated with the Broker.AuthScheme property. +// The supported authentication scheme for the broker. +const ( + Broker_AuthScheme_Bearer = "bearer" + Broker_AuthScheme_BearerCrn = "bearer-crn" +) + // Constants associated with the Broker.State property. // The state of the broker. const ( @@ -3041,6 +2918,19 @@ type BrokerPatch struct { Region *string `json:"region,omitempty"` } +// Constants associated with the BrokerPatch.AuthUsername property. +// The authentication username to reach the broker. +const ( + BrokerPatch_AuthUsername_Apikey = "apikey" +) + +// Constants associated with the BrokerPatch.AuthScheme property. +// The supported authentication scheme for the broker. +const ( + BrokerPatch_AuthScheme_Bearer = "bearer" + BrokerPatch_AuthScheme_BearerCrn = "bearer-crn" +) + // Constants associated with the BrokerPatch.State property. // The state of the broker. const ( @@ -3344,146 +3234,6 @@ func (catalogProductProvider *CatalogProductProvider) asPatch() (_patch map[stri return } -// CloudBadge : The details of the cloud badge. -type CloudBadge struct { - // The ID of the badge. - ID *string `json:"id" validate:"required"` - - // The name of the badge. - Label *string `json:"label,omitempty"` - - // The description of the badge. - Description *string `json:"description,omitempty"` - - // The internal description of the badge. - InternalDescription *string `json:"internal_description,omitempty"` - - // The collection of URLs where vendors can learn more about the badge. - LearnMoreLinks *LearnMoreLinks `json:"learn_more_links,omitempty"` - - // The URL to get started with the validation against this certification. - GetStartedLink *string `json:"get_started_link,omitempty"` - - // Deprecated, will be removed. - Tag *string `json:"tag,omitempty"` -} - -// UnmarshalCloudBadge unmarshals an instance of CloudBadge from the specified map of raw messages. -func UnmarshalCloudBadge(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(CloudBadge) - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "label", &obj.Label) - if err != nil { - err = core.SDKErrorf(err, "", "label-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, "internal_description", &obj.InternalDescription) - if err != nil { - err = core.SDKErrorf(err, "", "internal_description-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "learn_more_links", &obj.LearnMoreLinks, UnmarshalLearnMoreLinks) - if err != nil { - err = core.SDKErrorf(err, "", "learn_more_links-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "get_started_link", &obj.GetStartedLink) - if err != nil { - err = core.SDKErrorf(err, "", "get_started_link-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "tag", &obj.Tag) - if err != nil { - err = core.SDKErrorf(err, "", "tag-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// CloudBadges : The list of all the available cloud badges. -type CloudBadges struct { - // The maximum number of results returned in this response. - Limit *int64 `json:"limit" validate:"required"` - - // The maximum number of results returned in this response. - Offset *int64 `json:"offset" validate:"required"` - - // The total number of results. - TotalCount *int64 `json:"total_count" validate:"required"` - - // The page reference information. - First *Bookmark `json:"first,omitempty"` - - // The page reference information. - Next *Bookmark `json:"next,omitempty"` - - // The page reference information. - Previous *Bookmark `json:"previous,omitempty"` - - // The page reference information. - Last *Bookmark `json:"last,omitempty"` - - // The list of all the available cloud badges. - Badges []CloudBadge `json:"badges,omitempty"` -} - -// UnmarshalCloudBadges unmarshals an instance of CloudBadges from the specified map of raw messages. -func UnmarshalCloudBadges(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(CloudBadges) - err = core.UnmarshalPrimitive(m, "limit", &obj.Limit) - if err != nil { - err = core.SDKErrorf(err, "", "limit-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "offset", &obj.Offset) - if err != nil { - err = core.SDKErrorf(err, "", "offset-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "total_count", &obj.TotalCount) - if err != nil { - err = core.SDKErrorf(err, "", "total_count-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "first", &obj.First, UnmarshalBookmark) - if err != nil { - err = core.SDKErrorf(err, "", "first-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "next", &obj.Next, UnmarshalBookmark) - if err != nil { - err = core.SDKErrorf(err, "", "next-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "previous", &obj.Previous, UnmarshalBookmark) - if err != nil { - err = core.SDKErrorf(err, "", "previous-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "last", &obj.Last, UnmarshalBookmark) - if err != nil { - err = core.SDKErrorf(err, "", "last-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "badges", &obj.Badges, UnmarshalCloudBadge) - if err != nil { - err = core.SDKErrorf(err, "", "badges-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // CreateCatalogDeploymentOptions : The CreateCatalogDeployment options. type CreateCatalogDeploymentOptions struct { // The unique ID of the product. @@ -3825,6 +3575,7 @@ type CreateCatalogProductOptions struct { // Constants associated with the CreateCatalogProductOptions.Kind property. // The kind of the global catalog object. const ( + CreateCatalogProductOptions_Kind_Composite = "composite" CreateCatalogProductOptions_Kind_PlatformService = "platform_service" CreateCatalogProductOptions_Kind_Service = "service" ) @@ -3926,7 +3677,7 @@ type CreateIamRegistrationOptions struct { ProductID *string `json:"product_id" validate:"required,ne="` // The IAM registration name, which must be the programmatic name of the product. - Name *string `json:"name,omitempty"` + Name *string `json:"name" validate:"required"` // Whether the service is enabled or disabled for IAM. Enabled *bool `json:"enabled,omitempty"` @@ -3981,9 +3732,10 @@ const ( ) // NewCreateIamRegistrationOptions : Instantiate CreateIamRegistrationOptions -func (*PartnerCenterSellV1) NewCreateIamRegistrationOptions(productID string) *CreateIamRegistrationOptions { +func (*PartnerCenterSellV1) NewCreateIamRegistrationOptions(productID string, name string) *CreateIamRegistrationOptions { return &CreateIamRegistrationOptions{ ProductID: core.StringPtr(productID), + Name: core.StringPtr(name), } } @@ -4242,12 +3994,6 @@ func (options *CreateRegistrationOptions) SetHeaders(param map[string]string) *C // CreateResourceBrokerOptions : The CreateResourceBroker options. type CreateResourceBrokerOptions struct { - // The authentication username to reach the broker. - AuthUsername *string `json:"auth_username" validate:"required"` - - // The authentication password to reach the broker. - AuthPassword *string `json:"auth_password" validate:"required"` - // The supported authentication scheme for the broker. AuthScheme *string `json:"auth_scheme" validate:"required"` @@ -4260,6 +4006,12 @@ type CreateResourceBrokerOptions struct { // The type of the provisioning model. Type *string `json:"type" validate:"required"` + // The authentication username to reach the broker. + AuthUsername *string `json:"auth_username,omitempty"` + + // The authentication password to reach the broker. + AuthPassword *string `json:"auth_password,omitempty"` + // The cloud resource name of the resource group. ResourceGroupCrn *string `json:"resource_group_crn,omitempty"` @@ -4283,6 +4035,13 @@ type CreateResourceBrokerOptions struct { Headers map[string]string } +// Constants associated with the CreateResourceBrokerOptions.AuthScheme property. +// The supported authentication scheme for the broker. +const ( + CreateResourceBrokerOptions_AuthScheme_Bearer = "bearer" + CreateResourceBrokerOptions_AuthScheme_BearerCrn = "bearer-crn" +) + // Constants associated with the CreateResourceBrokerOptions.Type property. // The type of the provisioning model. const ( @@ -4290,6 +4049,12 @@ const ( CreateResourceBrokerOptions_Type_ProvisionThrough = "provision_through" ) +// Constants associated with the CreateResourceBrokerOptions.AuthUsername property. +// The authentication username to reach the broker. +const ( + CreateResourceBrokerOptions_AuthUsername_Apikey = "apikey" +) + // Constants associated with the CreateResourceBrokerOptions.State property. // The state of the broker. const ( @@ -4298,29 +4063,15 @@ const ( ) // NewCreateResourceBrokerOptions : Instantiate CreateResourceBrokerOptions -func (*PartnerCenterSellV1) NewCreateResourceBrokerOptions(authUsername string, authPassword string, authScheme string, name string, brokerURL string, typeVar string) *CreateResourceBrokerOptions { +func (*PartnerCenterSellV1) NewCreateResourceBrokerOptions(authScheme string, name string, brokerURL string, typeVar string) *CreateResourceBrokerOptions { return &CreateResourceBrokerOptions{ - AuthUsername: core.StringPtr(authUsername), - AuthPassword: core.StringPtr(authPassword), - AuthScheme: core.StringPtr(authScheme), - Name: core.StringPtr(name), - BrokerURL: core.StringPtr(brokerURL), - Type: core.StringPtr(typeVar), + AuthScheme: core.StringPtr(authScheme), + Name: core.StringPtr(name), + BrokerURL: core.StringPtr(brokerURL), + Type: core.StringPtr(typeVar), } } -// SetAuthUsername : Allow user to set AuthUsername -func (_options *CreateResourceBrokerOptions) SetAuthUsername(authUsername string) *CreateResourceBrokerOptions { - _options.AuthUsername = core.StringPtr(authUsername) - return _options -} - -// SetAuthPassword : Allow user to set AuthPassword -func (_options *CreateResourceBrokerOptions) SetAuthPassword(authPassword string) *CreateResourceBrokerOptions { - _options.AuthPassword = core.StringPtr(authPassword) - return _options -} - // SetAuthScheme : Allow user to set AuthScheme func (_options *CreateResourceBrokerOptions) SetAuthScheme(authScheme string) *CreateResourceBrokerOptions { _options.AuthScheme = core.StringPtr(authScheme) @@ -4345,6 +4096,18 @@ func (_options *CreateResourceBrokerOptions) SetType(typeVar string) *CreateReso return _options } +// SetAuthUsername : Allow user to set AuthUsername +func (_options *CreateResourceBrokerOptions) SetAuthUsername(authUsername string) *CreateResourceBrokerOptions { + _options.AuthUsername = core.StringPtr(authUsername) + return _options +} + +// SetAuthPassword : Allow user to set AuthPassword +func (_options *CreateResourceBrokerOptions) SetAuthPassword(authPassword string) *CreateResourceBrokerOptions { + _options.AuthPassword = core.StringPtr(authPassword) + return _options +} + // SetResourceGroupCrn : Allow user to set ResourceGroupCrn func (_options *CreateResourceBrokerOptions) SetResourceGroupCrn(resourceGroupCrn string) *CreateResourceBrokerOptions { _options.ResourceGroupCrn = core.StringPtr(resourceGroupCrn) @@ -4782,35 +4545,7 @@ func (environmentAttributeOptions *EnvironmentAttributeOptions) asPatch() (_patc _patch["hidden"] = environmentAttributeOptions.Hidden } - return -} - -// GetBadgeOptions : The GetBadge options. -type GetBadgeOptions struct { - // The unique ID of the badge. This ID can be obtained by calling the list badges method. - BadgeID *strfmt.UUID `json:"badge_id" validate:"required"` - - // Allows users to set headers on API requests. - Headers map[string]string -} - -// NewGetBadgeOptions : Instantiate GetBadgeOptions -func (*PartnerCenterSellV1) NewGetBadgeOptions(badgeID *strfmt.UUID) *GetBadgeOptions { - return &GetBadgeOptions{ - BadgeID: badgeID, - } -} - -// SetBadgeID : Allow user to set BadgeID -func (_options *GetBadgeOptions) SetBadgeID(badgeID *strfmt.UUID) *GetBadgeOptions { - _options.BadgeID = badgeID - return _options -} - -// SetHeaders : Allow user to set Headers -func (options *GetBadgeOptions) SetHeaders(param map[string]string) *GetBadgeOptions { - options.Headers = param - return options + return } // GetCatalogDeploymentOptions : The GetCatalogDeployment options. @@ -5260,6 +4995,9 @@ type GlobalCatalogDeploymentMetadata struct { // The global catalog metadata of the service. Service *GlobalCatalogMetadataService `json:"service,omitempty"` + + // The global catalog metadata of the deployment. + Deployment *GlobalCatalogMetadataDeployment `json:"deployment,omitempty"` } // UnmarshalGlobalCatalogDeploymentMetadata unmarshals an instance of GlobalCatalogDeploymentMetadata from the specified map of raw messages. @@ -5280,6 +5018,11 @@ func UnmarshalGlobalCatalogDeploymentMetadata(m map[string]json.RawMessage, resu err = core.SDKErrorf(err, "", "service-error", common.GetComponentInfo()) return } + err = core.UnmarshalModel(m, "deployment", &obj.Deployment, UnmarshalGlobalCatalogMetadataDeployment) + if err != nil { + err = core.SDKErrorf(err, "", "deployment-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -5296,6 +5039,9 @@ func (globalCatalogDeploymentMetadata *GlobalCatalogDeploymentMetadata) asPatch( if !core.IsNil(globalCatalogDeploymentMetadata.Service) { _patch["service"] = globalCatalogDeploymentMetadata.Service.asPatch() } + if !core.IsNil(globalCatalogDeploymentMetadata.Deployment) { + _patch["deployment"] = globalCatalogDeploymentMetadata.Deployment.asPatch() + } return } @@ -5385,6 +5131,106 @@ func (globalCatalogDeploymentPatch *GlobalCatalogDeploymentPatch) AsPatch() (_pa return } +// GlobalCatalogMetadataDeployment : The global catalog metadata of the deployment. +type GlobalCatalogMetadataDeployment struct { + // The global catalog metadata of the deployment. + Broker *GlobalCatalogMetadataDeploymentBroker `json:"broker,omitempty"` + + // The global catalog deployment location. + Location *string `json:"location,omitempty"` + + // The global catalog deployment URL of location. + LocationURL *string `json:"location_url,omitempty"` + + // Region crn. + TargetCrn *string `json:"target_crn,omitempty"` +} + +// UnmarshalGlobalCatalogMetadataDeployment unmarshals an instance of GlobalCatalogMetadataDeployment from the specified map of raw messages. +func UnmarshalGlobalCatalogMetadataDeployment(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogMetadataDeployment) + err = core.UnmarshalModel(m, "broker", &obj.Broker, UnmarshalGlobalCatalogMetadataDeploymentBroker) + if err != nil { + err = core.SDKErrorf(err, "", "broker-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "location", &obj.Location) + if err != nil { + err = core.SDKErrorf(err, "", "location-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "location_url", &obj.LocationURL) + if err != nil { + err = core.SDKErrorf(err, "", "location_url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "target_crn", &obj.TargetCrn) + if err != nil { + err = core.SDKErrorf(err, "", "target_crn-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogMetadataDeployment +func (globalCatalogMetadataDeployment *GlobalCatalogMetadataDeployment) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogMetadataDeployment.Broker) { + _patch["broker"] = globalCatalogMetadataDeployment.Broker.asPatch() + } + if !core.IsNil(globalCatalogMetadataDeployment.Location) { + _patch["location"] = globalCatalogMetadataDeployment.Location + } + if !core.IsNil(globalCatalogMetadataDeployment.LocationURL) { + _patch["location_url"] = globalCatalogMetadataDeployment.LocationURL + } + if !core.IsNil(globalCatalogMetadataDeployment.TargetCrn) { + _patch["target_crn"] = globalCatalogMetadataDeployment.TargetCrn + } + + return +} + +// GlobalCatalogMetadataDeploymentBroker : The global catalog metadata of the deployment. +type GlobalCatalogMetadataDeploymentBroker struct { + // The name of the resource broker. + Name *string `json:"name,omitempty"` + + // Crn or guid of the resource broker. + Guid *string `json:"guid,omitempty"` +} + +// UnmarshalGlobalCatalogMetadataDeploymentBroker unmarshals an instance of GlobalCatalogMetadataDeploymentBroker from the specified map of raw messages. +func UnmarshalGlobalCatalogMetadataDeploymentBroker(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogMetadataDeploymentBroker) + err = core.UnmarshalPrimitive(m, "name", &obj.Name) + if err != nil { + err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "guid", &obj.Guid) + if err != nil { + err = core.SDKErrorf(err, "", "guid-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogMetadataDeploymentBroker +func (globalCatalogMetadataDeploymentBroker *GlobalCatalogMetadataDeploymentBroker) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogMetadataDeploymentBroker.Name) { + _patch["name"] = globalCatalogMetadataDeploymentBroker.Name + } + if !core.IsNil(globalCatalogMetadataDeploymentBroker.Guid) { + _patch["guid"] = globalCatalogMetadataDeploymentBroker.Guid + } + + return +} + // GlobalCatalogMetadataPricing : The pricing metadata of this object. type GlobalCatalogMetadataPricing struct { // The type of the pricing plan. @@ -5438,6 +5284,15 @@ type GlobalCatalogMetadataService struct { // 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"` } // UnmarshalGlobalCatalogMetadataService unmarshals an instance of GlobalCatalogMetadataService from the specified map of raw messages. @@ -5453,6 +5308,21 @@ func UnmarshalGlobalCatalogMetadataService(m map[string]json.RawMessage, result 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 } @@ -5466,6 +5336,15 @@ func (globalCatalogMetadataService *GlobalCatalogMetadataService) asPatch() (_pa if !core.IsNil(globalCatalogMetadataService.IamCompatible) { _patch["iam_compatible"] = globalCatalogMetadataService.IamCompatible } + if !core.IsNil(globalCatalogMetadataService.Bindable) { + _patch["bindable"] = globalCatalogMetadataService.Bindable + } + if !core.IsNil(globalCatalogMetadataService.PlanUpdateable) { + _patch["plan_updateable"] = globalCatalogMetadataService.PlanUpdateable + } + if !core.IsNil(globalCatalogMetadataService.ServiceKeySupported) { + _patch["service_key_supported"] = globalCatalogMetadataService.ServiceKeySupported + } return } @@ -5475,7 +5354,7 @@ type GlobalCatalogMetadataUI struct { // The data strings. Strings *GlobalCatalogMetadataUIStrings `json:"strings,omitempty"` - // The UI based URLs. + // Metadata with URLs related to a service. Urls *GlobalCatalogMetadataUIUrls `json:"urls,omitempty"` // Whether the object is hidden from the consumption catalog. @@ -5566,6 +5445,9 @@ type GlobalCatalogMetadataUIStringsContent struct { // The list of supporting media for this product. Media []CatalogProductMediaItem `json:"media,omitempty"` + + // On a service kind record this controls if your service has a custom dashboard or Resource Detail page. + EmbeddableDashboard *string `json:"embeddable_dashboard,omitempty"` } // UnmarshalGlobalCatalogMetadataUIStringsContent unmarshals an instance of GlobalCatalogMetadataUIStringsContent from the specified map of raw messages. @@ -5581,6 +5463,11 @@ func UnmarshalGlobalCatalogMetadataUIStringsContent(m map[string]json.RawMessage err = core.SDKErrorf(err, "", "media-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "embeddable_dashboard", &obj.EmbeddableDashboard) + if err != nil { + err = core.SDKErrorf(err, "", "embeddable_dashboard-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -5602,17 +5489,36 @@ func (globalCatalogMetadataUIStringsContent *GlobalCatalogMetadataUIStringsConte } _patch["media"] = mediaPatches } + if !core.IsNil(globalCatalogMetadataUIStringsContent.EmbeddableDashboard) { + _patch["embeddable_dashboard"] = globalCatalogMetadataUIStringsContent.EmbeddableDashboard + } return } -// GlobalCatalogMetadataUIUrls : The UI based URLs. +// GlobalCatalogMetadataUIUrls : Metadata with URLs related to a service. type GlobalCatalogMetadataUIUrls struct { - // The URL for your product documentation. + // The URL for your product's documentation. DocURL *string `json:"doc_url,omitempty"` + // The URL for your product's API documentation. + ApidocsURL *string `json:"apidocs_url,omitempty"` + // The URL for your product's end user license agreement. TermsURL *string `json:"terms_url,omitempty"` + + // Controls the Getting Started tab on the Resource Details page. Setting it the content is loaded from the specified + // URL. + InstructionsURL *string `json:"instructions_url,omitempty"` + + // Controls the Provisioning page URL, if set the assumption is that this URL is the provisioning URL for your service. + CatalogDetailsURL *string `json:"catalog_details_url,omitempty"` + + // Controls the Provisioning page URL, if set the assumption is that this URL is the provisioning URL for your service. + CustomCreatePageURL *string `json:"custom_create_page_url,omitempty"` + + // Controls if your service has a custom dashboard or Resource Detail page. + Dashboard *string `json:"dashboard,omitempty"` } // UnmarshalGlobalCatalogMetadataUIUrls unmarshals an instance of GlobalCatalogMetadataUIUrls from the specified map of raw messages. @@ -5623,11 +5529,36 @@ func UnmarshalGlobalCatalogMetadataUIUrls(m map[string]json.RawMessage, result i err = core.SDKErrorf(err, "", "doc_url-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "apidocs_url", &obj.ApidocsURL) + if err != nil { + err = core.SDKErrorf(err, "", "apidocs_url-error", common.GetComponentInfo()) + return + } err = core.UnmarshalPrimitive(m, "terms_url", &obj.TermsURL) if err != nil { err = core.SDKErrorf(err, "", "terms_url-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "instructions_url", &obj.InstructionsURL) + if err != nil { + err = core.SDKErrorf(err, "", "instructions_url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "catalog_details_url", &obj.CatalogDetailsURL) + if err != nil { + err = core.SDKErrorf(err, "", "catalog_details_url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "custom_create_page_url", &obj.CustomCreatePageURL) + if err != nil { + err = core.SDKErrorf(err, "", "custom_create_page_url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "dashboard", &obj.Dashboard) + if err != nil { + err = core.SDKErrorf(err, "", "dashboard-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -5638,9 +5569,24 @@ func (globalCatalogMetadataUIUrls *GlobalCatalogMetadataUIUrls) asPatch() (_patc if !core.IsNil(globalCatalogMetadataUIUrls.DocURL) { _patch["doc_url"] = globalCatalogMetadataUIUrls.DocURL } + if !core.IsNil(globalCatalogMetadataUIUrls.ApidocsURL) { + _patch["apidocs_url"] = globalCatalogMetadataUIUrls.ApidocsURL + } if !core.IsNil(globalCatalogMetadataUIUrls.TermsURL) { _patch["terms_url"] = globalCatalogMetadataUIUrls.TermsURL } + if !core.IsNil(globalCatalogMetadataUIUrls.InstructionsURL) { + _patch["instructions_url"] = globalCatalogMetadataUIUrls.InstructionsURL + } + if !core.IsNil(globalCatalogMetadataUIUrls.CatalogDetailsURL) { + _patch["catalog_details_url"] = globalCatalogMetadataUIUrls.CatalogDetailsURL + } + if !core.IsNil(globalCatalogMetadataUIUrls.CustomCreatePageURL) { + _patch["custom_create_page_url"] = globalCatalogMetadataUIUrls.CustomCreatePageURL + } + if !core.IsNil(globalCatalogMetadataUIUrls.Dashboard) { + _patch["dashboard"] = globalCatalogMetadataUIUrls.Dashboard + } return } @@ -5830,8 +5776,14 @@ type GlobalCatalogPlanMetadata struct { // The UI metadata of this service. Ui *GlobalCatalogMetadataUI `json:"ui,omitempty"` + // The global catalog metadata of the service. + Service *GlobalCatalogMetadataService `json:"service,omitempty"` + // The pricing metadata of this object. Pricing *GlobalCatalogMetadataPricing `json:"pricing,omitempty"` + + // Metadata controlling Plan related settings. + Plan *GlobalCatalogPlanMetadataPlan `json:"plan,omitempty"` } // UnmarshalGlobalCatalogPlanMetadata unmarshals an instance of GlobalCatalogPlanMetadata from the specified map of raw messages. @@ -5847,11 +5799,21 @@ 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) + if err != nil { + err = core.SDKErrorf(err, "", "service-error", common.GetComponentInfo()) + return + } err = core.UnmarshalModel(m, "pricing", &obj.Pricing, UnmarshalGlobalCatalogMetadataPricing) if err != nil { err = core.SDKErrorf(err, "", "pricing-error", common.GetComponentInfo()) return } + err = core.UnmarshalModel(m, "plan", &obj.Plan, UnmarshalGlobalCatalogPlanMetadataPlan) + if err != nil { + err = core.SDKErrorf(err, "", "plan-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -5865,9 +5827,54 @@ func (globalCatalogPlanMetadata *GlobalCatalogPlanMetadata) asPatch() (_patch ma if !core.IsNil(globalCatalogPlanMetadata.Ui) { _patch["ui"] = globalCatalogPlanMetadata.Ui.asPatch() } + if !core.IsNil(globalCatalogPlanMetadata.Service) { + _patch["service"] = globalCatalogPlanMetadata.Service.asPatch() + } if !core.IsNil(globalCatalogPlanMetadata.Pricing) { _patch["pricing"] = globalCatalogPlanMetadata.Pricing.asPatch() } + if !core.IsNil(globalCatalogPlanMetadata.Plan) { + _patch["plan"] = globalCatalogPlanMetadata.Plan.asPatch() + } + + return +} + +// GlobalCatalogPlanMetadataPlan : Metadata controlling Plan related settings. +type GlobalCatalogPlanMetadataPlan struct { + // Controls if IBMers are allowed to provision this plan. + AllowInternalUsers *bool `json:"allow_internal_users,omitempty"` + + // Deprecated. Controls the Connections tab on the Resource Details page. + Bindable *bool `json:"bindable,omitempty"` +} + +// UnmarshalGlobalCatalogPlanMetadataPlan unmarshals an instance of GlobalCatalogPlanMetadataPlan from the specified map of raw messages. +func UnmarshalGlobalCatalogPlanMetadataPlan(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogPlanMetadataPlan) + err = core.UnmarshalPrimitive(m, "allow_internal_users", &obj.AllowInternalUsers) + if err != nil { + err = core.SDKErrorf(err, "", "allow_internal_users-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "bindable", &obj.Bindable) + if err != nil { + err = core.SDKErrorf(err, "", "bindable-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogPlanMetadataPlan +func (globalCatalogPlanMetadataPlan *GlobalCatalogPlanMetadataPlan) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogPlanMetadataPlan.AllowInternalUsers) { + _patch["allow_internal_users"] = globalCatalogPlanMetadataPlan.AllowInternalUsers + } + if !core.IsNil(globalCatalogPlanMetadataPlan.Bindable) { + _patch["bindable"] = globalCatalogPlanMetadataPlan.Bindable + } return } @@ -5998,6 +6005,7 @@ type GlobalCatalogProduct struct { // Constants associated with the GlobalCatalogProduct.Kind property. // The kind of the global catalog object. const ( + GlobalCatalogProduct_Kind_Composite = "composite" GlobalCatalogProduct_Kind_PlatformService = "platform_service" GlobalCatalogProduct_Kind_Service = "service" ) @@ -6157,6 +6165,9 @@ func (globalCatalogProductMetadata *GlobalCatalogProductMetadata) asPatch() (_pa type GlobalCatalogProductMetadataOther struct { // The metadata of the service owned and managed by Partner Center - Sell. PC *GlobalCatalogProductMetadataOtherPC `json:"PC,omitempty"` + + // Optional metadata of the service defining it as a composite. + Composite *GlobalCatalogProductMetadataOtherComposite `json:"composite,omitempty"` } // UnmarshalGlobalCatalogProductMetadataOther unmarshals an instance of GlobalCatalogProductMetadataOther from the specified map of raw messages. @@ -6167,6 +6178,11 @@ func UnmarshalGlobalCatalogProductMetadataOther(m map[string]json.RawMessage, re err = core.SDKErrorf(err, "", "PC-error", common.GetComponentInfo()) return } + err = core.UnmarshalModel(m, "composite", &obj.Composite, UnmarshalGlobalCatalogProductMetadataOtherComposite) + if err != nil { + err = core.SDKErrorf(err, "", "composite-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -6177,6 +6193,115 @@ func (globalCatalogProductMetadataOther *GlobalCatalogProductMetadataOther) asPa if !core.IsNil(globalCatalogProductMetadataOther.PC) { _patch["PC"] = globalCatalogProductMetadataOther.PC.asPatch() } + if !core.IsNil(globalCatalogProductMetadataOther.Composite) { + _patch["composite"] = globalCatalogProductMetadataOther.Composite.asPatch() + } + + return +} + +// GlobalCatalogProductMetadataOtherComposite : Optional metadata of the service defining it as a composite. +type GlobalCatalogProductMetadataOtherComposite struct { + // The type of the composite service. + CompositeKind *string `json:"composite_kind,omitempty"` + + // The tag used for the composite parent and its children. + CompositeTag *string `json:"composite_tag,omitempty"` + + Children []GlobalCatalogProductMetadataOtherCompositeChild `json:"children,omitempty"` +} + +// Constants associated with the GlobalCatalogProductMetadataOtherComposite.CompositeKind property. +// The type of the composite service. +const ( + GlobalCatalogProductMetadataOtherComposite_CompositeKind_PlatformService = "platform_service" + GlobalCatalogProductMetadataOtherComposite_CompositeKind_Service = "service" +) + +// UnmarshalGlobalCatalogProductMetadataOtherComposite unmarshals an instance of GlobalCatalogProductMetadataOtherComposite from the specified map of raw messages. +func UnmarshalGlobalCatalogProductMetadataOtherComposite(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogProductMetadataOtherComposite) + err = core.UnmarshalPrimitive(m, "composite_kind", &obj.CompositeKind) + if err != nil { + err = core.SDKErrorf(err, "", "composite_kind-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "composite_tag", &obj.CompositeTag) + if err != nil { + err = core.SDKErrorf(err, "", "composite_tag-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalModel(m, "children", &obj.Children, UnmarshalGlobalCatalogProductMetadataOtherCompositeChild) + if err != nil { + err = core.SDKErrorf(err, "", "children-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogProductMetadataOtherComposite +func (globalCatalogProductMetadataOtherComposite *GlobalCatalogProductMetadataOtherComposite) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogProductMetadataOtherComposite.CompositeKind) { + _patch["composite_kind"] = globalCatalogProductMetadataOtherComposite.CompositeKind + } + if !core.IsNil(globalCatalogProductMetadataOtherComposite.CompositeTag) { + _patch["composite_tag"] = globalCatalogProductMetadataOtherComposite.CompositeTag + } + if !core.IsNil(globalCatalogProductMetadataOtherComposite.Children) { + var childrenPatches []map[string]interface{} + for _, children := range globalCatalogProductMetadataOtherComposite.Children { + childrenPatches = append(childrenPatches, children.asPatch()) + } + _patch["children"] = childrenPatches + } + + return +} + +// GlobalCatalogProductMetadataOtherCompositeChild : Object defining a composite child of a composite parent. +type GlobalCatalogProductMetadataOtherCompositeChild struct { + // The type of the composite child. + Kind *string `json:"kind,omitempty"` + + // The name of the composite child. + Name *string `json:"name,omitempty"` +} + +// Constants associated with the GlobalCatalogProductMetadataOtherCompositeChild.Kind property. +// The type of the composite child. +const ( + GlobalCatalogProductMetadataOtherCompositeChild_Kind_PlatformService = "platform_service" + GlobalCatalogProductMetadataOtherCompositeChild_Kind_Service = "service" +) + +// UnmarshalGlobalCatalogProductMetadataOtherCompositeChild unmarshals an instance of GlobalCatalogProductMetadataOtherCompositeChild from the specified map of raw messages. +func UnmarshalGlobalCatalogProductMetadataOtherCompositeChild(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(GlobalCatalogProductMetadataOtherCompositeChild) + err = core.UnmarshalPrimitive(m, "kind", &obj.Kind) + if err != nil { + err = core.SDKErrorf(err, "", "kind-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "name", &obj.Name) + if err != nil { + err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// asPatch returns a generic map representation of the GlobalCatalogProductMetadataOtherCompositeChild +func (globalCatalogProductMetadataOtherCompositeChild *GlobalCatalogProductMetadataOtherCompositeChild) asPatch() (_patch map[string]interface{}) { + _patch = map[string]interface{}{} + if !core.IsNil(globalCatalogProductMetadataOtherCompositeChild.Kind) { + _patch["kind"] = globalCatalogProductMetadataOtherCompositeChild.Kind + } + if !core.IsNil(globalCatalogProductMetadataOtherCompositeChild.Name) { + _patch["name"] = globalCatalogProductMetadataOtherCompositeChild.Name + } return } @@ -6437,7 +6562,7 @@ func (globalCatalogProductPatch *GlobalCatalogProductPatch) AsPatch() (_patch ma // IamServiceRegistration : The IAM service registration. type IamServiceRegistration struct { // The IAM registration name, which must be the programmatic name of the product. - Name *string `json:"name,omitempty"` + Name *string `json:"name" validate:"required"` // Whether the service is enabled or disabled for IAM. Enabled *bool `json:"enabled,omitempty"` @@ -7528,41 +7653,6 @@ func UnmarshalLearnMoreLinks(m map[string]json.RawMessage, result interface{}) ( return } -// ListBadgesOptions : The ListBadges options. -type ListBadgesOptions struct { - // The maximum number of results returned in the response. - Limit *int64 `json:"limit,omitempty"` - - // The reference ID of the first item on the page. - Start *strfmt.UUID `json:"start,omitempty"` - - // Allows users to set headers on API requests. - Headers map[string]string -} - -// NewListBadgesOptions : Instantiate ListBadgesOptions -func (*PartnerCenterSellV1) NewListBadgesOptions() *ListBadgesOptions { - return &ListBadgesOptions{} -} - -// SetLimit : Allow user to set Limit -func (_options *ListBadgesOptions) SetLimit(limit int64) *ListBadgesOptions { - _options.Limit = core.Int64Ptr(limit) - return _options -} - -// SetStart : Allow user to set Start -func (_options *ListBadgesOptions) SetStart(start *strfmt.UUID) *ListBadgesOptions { - _options.Start = start - return _options -} - -// SetHeaders : Allow user to set Headers -func (options *ListBadgesOptions) SetHeaders(param map[string]string) *ListBadgesOptions { - options.Headers = param - return options -} - // ListProductBadgesOptions : The ListProductBadges options. type ListProductBadgesOptions struct { // The maximum number of results returned in the response. @@ -7627,6 +7717,9 @@ type OnboardingProduct struct { // The ID of the approval workflow of your product. ApproverResourceID *string `json:"approver_resource_id,omitempty"` + // IAM registration identifier. + IamRegistrationID *string `json:"iam_registration_id,omitempty"` + // The Export Control Classification Number of your product. EccnNumber *string `json:"eccn_number,omitempty"` @@ -7699,6 +7792,11 @@ func UnmarshalOnboardingProduct(m map[string]json.RawMessage, result interface{} err = core.SDKErrorf(err, "", "approver_resource_id-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "iam_registration_id", &obj.IamRegistrationID) + if err != nil { + err = core.SDKErrorf(err, "", "iam_registration_id-error", common.GetComponentInfo()) + return + } err = core.UnmarshalPrimitive(m, "eccn_number", &obj.EccnNumber) if err != nil { err = core.SDKErrorf(err, "", "eccn_number-error", common.GetComponentInfo()) @@ -8105,12 +8203,6 @@ type Registration struct { // The onboarding access group for your team. ProviderAccessGroup *string `json:"provider_access_group,omitempty"` - // The ID of the IBM Digital Platform Reseller Agreement. - AccountDraID *string `json:"account_dra_id,omitempty"` - - // The ID of the IBM Digital Provider Agreement. - AccountDpaID *string `json:"account_dpa_id,omitempty"` - // The time when the registration was created. CreatedAt *string `json:"created_at,omitempty"` @@ -8151,16 +8243,6 @@ func UnmarshalRegistration(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "provider_access_group-error", common.GetComponentInfo()) return } - err = core.UnmarshalPrimitive(m, "account_dra_id", &obj.AccountDraID) - if err != nil { - err = core.SDKErrorf(err, "", "account_dra_id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "account_dpa_id", &obj.AccountDpaID) - if err != nil { - err = core.SDKErrorf(err, "", "account_dpa_id-error", common.GetComponentInfo()) - return - } err = core.UnmarshalPrimitive(m, "created_at", &obj.CreatedAt) if err != nil { err = core.SDKErrorf(err, "", "created_at-error", common.GetComponentInfo()) @@ -9012,7 +9094,7 @@ func (supportedAttributesOptionsResourceHierarchyValue *SupportedAttributesOptio // SupportedRoleOptions : The supported role options. type SupportedRoleOptions struct { // Optional opt-in to require access control on the role. - AccessPolicy map[string]string `json:"access_policy,omitempty"` + AccessPolicy *bool `json:"access_policy" validate:"required"` // Optional opt-in to require checking policy type when applying the role. PolicyType []string `json:"policy_type,omitempty"` @@ -9035,6 +9117,18 @@ const ( SupportedRoleOptions_AccountType_Enterprise = "enterprise" ) +// NewSupportedRoleOptions : Instantiate SupportedRoleOptions (Generic Model Constructor) +func (*PartnerCenterSellV1) NewSupportedRoleOptions(accessPolicy bool) (_model *SupportedRoleOptions, err error) { + _model = &SupportedRoleOptions{ + AccessPolicy: core.BoolPtr(accessPolicy), + } + err = core.ValidateStruct(_model, "required parameters") + if err != nil { + err = core.SDKErrorf(err, "", "model-missing-required", common.GetComponentInfo()) + } + return +} + // UnmarshalSupportedRoleOptions unmarshals an instance of SupportedRoleOptions from the specified map of raw messages. func UnmarshalSupportedRoleOptions(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SupportedRoleOptions) diff --git a/partnercentersellv1/partner_center_sell_v1_examples_test.go b/partnercentersellv1/partner_center_sell_v1_examples_test.go index e2c1a9e1..bef36835 100644 --- a/partnercentersellv1/partner_center_sell_v1_examples_test.go +++ b/partnercentersellv1/partner_center_sell_v1_examples_test.go @@ -21,11 +21,9 @@ package partnercentersellv1_test import ( "encoding/json" "fmt" - "log" "math/rand" "os" "strconv" - "time" "github.com/IBM/go-sdk-core/v5/core" "github.com/IBM/platform-services-go-sdk/partnercentersellv1" @@ -40,7 +38,13 @@ import ( // PARTNER_CENTER_SELL_AUTH_TYPE=iam // PARTNER_CENTER_SELL_APIKEY= // PARTNER_CENTER_SELL_AUTH_URL= -// +// PRODUCT_ID_APPROVED= +// PARTNER_CENTER_SELL_BADGE_ID= + +// PARTNER_CENTER_SELL_ALT_AUTH_TYPE=iam +// PARTNER_CENTER_SELL_ALT_APIKEY= +// PARTNER_CENTER_SELL_ALT_URL= + // These configuration properties can be exported as environment variables, or stored // in a configuration file and then: // export IBM_CREDENTIALS_FILE= @@ -49,18 +53,21 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { const externalConfigFile = "../partner_center_sell_v1.env" var ( - partnerCenterSellService *partnercentersellv1.PartnerCenterSellV1 - config map[string]string + partnerCenterSellService *partnercentersellv1.PartnerCenterSellV1 + partnerCenterSellServiceAlt *partnercentersellv1.PartnerCenterSellV1 + config map[string]string + + // Variables to hold link values accountId string - registrationId string productIdWithApprovedProgrammaticName string - productId string - catalogProductId string - catalogPlanId string - catalogDeploymentId string - brokerId string - iamServiceRegistrationId string badgeId string + brokerIdLink string + catalogDeploymentIdLink string + catalogPlanIdLink string + catalogProductIdLink string + productIdLink string + programmaticNameLink string + registrationIdLink string ) var shouldSkipTest = func() { @@ -89,6 +96,9 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { productIdWithApprovedProgrammaticName = config["PRODUCT_ID_APPROVED"] Expect(productIdWithApprovedProgrammaticName).ToNot(BeEmpty()) + badgeId = config["BADGE_ID"] + Expect(badgeId).ToNot(BeEmpty()) + shouldSkipTest = func() {} }) }) @@ -114,6 +124,25 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(partnerCenterSellService).ToNot(BeNil()) }) + It("Successfully construct the service client instance with alternative credentials", func() { + var err error + + // begin-common + + partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{ + ServiceName: "partner_center_sell_alt", + } + + partnerCenterSellServiceAlt, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) + + if err != nil { + panic(err) + } + + // end-common + + Expect(partnerCenterSellServiceAlt).ToNot(BeNil()) + }) }) Describe(`PartnerCenterSellV1 request examples`, func() { @@ -125,23 +154,21 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { // begin-create_registration primaryContactModel := &partnercentersellv1.PrimaryContact{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("Company Representative"), + Email: core.StringPtr("companyrep@email.com"), } - createRegistrationOptions := partnerCenterSellService.NewCreateRegistrationOptions( + createRegistrationOptions := partnerCenterSellServiceAlt.NewCreateRegistrationOptions( accountId, - "Sample_company_sdk", + "Beautiful Company", primaryContactModel, ) - registration, response, err := partnerCenterSellService.CreateRegistration(createRegistrationOptions) + registration, response, err := partnerCenterSellServiceAlt.CreateRegistration(createRegistrationOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(registration, "", " ") - registrationId = *registration.ID - fmt.Println(string(b)) // end-create_registration @@ -149,115 +176,29 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(registration).ToNot(BeNil()) - }) - It(`GetRegistration request example`, func() { - fmt.Println("\nGetRegistration() result:") - // begin-get_registration - - getRegistrationOptions := partnerCenterSellService.NewGetRegistrationOptions( - registrationId, - ) - - registration, response, err := partnerCenterSellService.GetRegistration(getRegistrationOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(registration, "", " ") - fmt.Println(string(b)) - - // end-get_registration - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(registration).ToNot(BeNil()) - }) - It(`UpdateRegistration request example`, func() { - fmt.Println("\nUpdateRegistration() result:") - // begin-update_registration - - registrationPatchModel := &partnercentersellv1.RegistrationPatch{} - registrationPatchModelAsPatch, asPatchErr := registrationPatchModel.AsPatch() - Expect(asPatchErr).To(BeNil()) - updateRegistrationOptions := partnerCenterSellService.NewUpdateRegistrationOptions( - registrationId, - registrationPatchModelAsPatch, - ) - - registration, response, err := partnerCenterSellService.UpdateRegistration(updateRegistrationOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(registration, "", " ") - fmt.Println(string(b)) - - // end-update_registration - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(registration).ToNot(BeNil()) - }) - It(`DeleteRegistration request example`, func() { - // begin-delete_registration - - deleteRegistrationOptions := partnerCenterSellService.NewDeleteRegistrationOptions( - registrationId, - ) - - response, err := partnerCenterSellService.DeleteRegistration(deleteRegistrationOptions) - if err != nil { - panic(err) - } - if response.StatusCode != 204 { - fmt.Printf("\nUnexpected response status code received from DeleteRegistration(): %d\n", response.StatusCode) - } - - // end-delete_registration - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(204)) - }) - It("Login to account containing a programmatic name approved product", func() { - var err error - - // begin-reauth - const externalConfigFile2 = "../partner_center_sell_approved_user_v1.env" - os.Setenv("IBM_CREDENTIALS_FILE", externalConfigFile2) - - partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{} - - partnerCenterSellService, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) - - if err != nil { - panic(err) - } - - fmt.Println(*partnerCenterSellService) - // end-reauth - - Expect(partnerCenterSellService).ToNot(BeNil()) + registrationIdLink = *registration.ID + fmt.Fprintf(GinkgoWriter, "Saved registrationIdLink value: %v\n", registrationIdLink) }) It(`CreateOnboardingProduct request example`, func() { fmt.Println("\nCreateOnboardingProduct() result:") // begin-create_onboarding_product primaryContactModel := &partnercentersellv1.PrimaryContact{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("name"), + Email: core.StringPtr("name.name@ibm.com"), } - createOnboardingProductOptions := partnerCenterSellService.NewCreateOnboardingProductOptions( + createOnboardingProductOptions := partnerCenterSellServiceAlt.NewCreateOnboardingProductOptions( "service", primaryContactModel, ) - onboardingProduct, response, err := partnerCenterSellService.CreateOnboardingProduct(createOnboardingProductOptions) + onboardingProduct, response, err := partnerCenterSellServiceAlt.CreateOnboardingProduct(createOnboardingProductOptions) if err != nil { panic(err) } - b, _ := json.MarshalIndent(onboardingProduct, "", " ") - productId = *onboardingProduct.ID fmt.Println(string(b)) // end-create_onboarding_product @@ -265,27 +206,9 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(onboardingProduct).ToNot(BeNil()) - }) - It(`GetOnboardingProduct request example`, func() { - fmt.Println("\nGetOnboardingProduct() result:") - // begin-get_onboarding_product - - getOnboardingProductOptions := partnerCenterSellService.NewGetOnboardingProductOptions( - productId, - ) - onboardingProduct, response, err := partnerCenterSellService.GetOnboardingProduct(getOnboardingProductOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(onboardingProduct, "", " ") - fmt.Println(string(b)) - - // end-get_onboarding_product - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(onboardingProduct).ToNot(BeNil()) + productIdLink = *onboardingProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved productIdLink value: %v\n", productIdLink) }) It(`UpdateOnboardingProduct request example`, func() { fmt.Println("\nUpdateOnboardingProduct() result:") @@ -295,12 +218,12 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { onboardingProductPatchModelAsPatch, asPatchErr := onboardingProductPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) - updateOnboardingProductOptions := partnerCenterSellService.NewUpdateOnboardingProductOptions( - productId, + updateOnboardingProductOptions := partnerCenterSellServiceAlt.NewUpdateOnboardingProductOptions( + productIdLink, onboardingProductPatchModelAsPatch, ) - onboardingProduct, response, err := partnerCenterSellService.UpdateOnboardingProduct(updateOnboardingProductOptions) + onboardingProduct, response, err := partnerCenterSellServiceAlt.UpdateOnboardingProduct(updateOnboardingProductOptions) if err != nil { panic(err) } @@ -312,32 +235,39 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(onboardingProduct).ToNot(BeNil()) - }) + productIdLink = *onboardingProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved productIdLink value: %v\n", productIdLink) + }) It(`CreateCatalogProduct request example`, func() { - var err error - - // begin-common - - partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{} - - partnerCenterSellService, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) + fmt.Println("\nCreateCatalogProduct() result:") + // begin-create_catalog_product - if err != nil { - panic(err) + catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ + Name: core.StringPtr("IBM"), + Email: core.StringPtr("name.name@ibm.com"), } - // end-common + globalCatalogOverviewUiTranslatedContentModel := &partnercentersellv1.GlobalCatalogOverviewUITranslatedContent{ + DisplayName: core.StringPtr("My product display name."), + Description: core.StringPtr("My product description."), + LongDescription: core.StringPtr("My product description long description."), + } - Expect(partnerCenterSellService).ToNot(BeNil()) + globalCatalogOverviewUiModel := &partnercentersellv1.GlobalCatalogOverviewUI{ + En: globalCatalogOverviewUiTranslatedContentModel, + } - fmt.Println("\nCreateCatalogProduct() result:") - // begin-create_catalog_product + globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + RcProvisionable: core.BoolPtr(true), + IamCompatible: core.BoolPtr(true), + } - catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + globalCatalogProductMetadataModel := &partnercentersellv1.GlobalCatalogProductMetadata{ + RcCompatible: core.BoolPtr(true), + Service: globalCatalogMetadataServiceModel, } + var randomInteger = strconv.Itoa(rand.Intn(1000)) catalogProductName := fmt.Sprintf("gc-product-example-%s", randomInteger) @@ -347,16 +277,17 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { true, false, "service", - []string{"sample"}, + []string{"keyword", "support_ibm"}, catalogProductProviderModel, ) + createCatalogProductOptions.SetOverviewUi(globalCatalogOverviewUiModel) + createCatalogProductOptions.SetMetadata(globalCatalogProductMetadataModel) globalCatalogProduct, response, err := partnerCenterSellService.CreateCatalogProduct(createCatalogProductOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(globalCatalogProduct, "", " ") - catalogProductId = *globalCatalogProduct.ID fmt.Println(string(b)) // end-create_catalog_product @@ -364,40 +295,31 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(globalCatalogProduct).ToNot(BeNil()) - }) - It(`GetCatalogProduct request example`, func() { - fmt.Println("\nGetCatalogProduct() result:") - // begin-get_catalog_product - getCatalogProductOptions := partnerCenterSellService.NewGetCatalogProductOptions( - productIdWithApprovedProgrammaticName, - catalogProductId, - ) - - globalCatalogProduct, response, err := partnerCenterSellService.GetCatalogProduct(getCatalogProductOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(globalCatalogProduct, "", " ") - fmt.Println(string(b)) - - // end-get_catalog_product - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(globalCatalogProduct).ToNot(BeNil()) + catalogProductIdLink = *globalCatalogProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogProductIdLink value: %v\n", catalogProductIdLink) }) It(`UpdateCatalogProduct request example`, func() { fmt.Println("\nUpdateCatalogProduct() result:") // begin-update_catalog_product - globalCatalogProductPatchModel := &partnercentersellv1.GlobalCatalogProductPatch{} + globalCatalogOverviewUiTranslatedContentModel := &partnercentersellv1.GlobalCatalogOverviewUITranslatedContent{ + DisplayName: core.StringPtr("My updated display name."), + } + + globalCatalogOverviewUiModel := &partnercentersellv1.GlobalCatalogOverviewUI{ + En: globalCatalogOverviewUiTranslatedContentModel, + } + + globalCatalogProductPatchModel := &partnercentersellv1.GlobalCatalogProductPatch{ + OverviewUi: globalCatalogOverviewUiModel, + } globalCatalogProductPatchModelAsPatch, asPatchErr := globalCatalogProductPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateCatalogProductOptions := partnerCenterSellService.NewUpdateCatalogProductOptions( productIdWithApprovedProgrammaticName, - catalogProductId, + catalogProductIdLink, globalCatalogProductPatchModelAsPatch, ) @@ -413,45 +335,63 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(globalCatalogProduct).ToNot(BeNil()) + + catalogProductIdLink = *globalCatalogProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogProductIdLink value: %v\n", catalogProductIdLink) }) It(`CreateCatalogPlan request example`, func() { fmt.Println("\nCreateCatalogPlan() result:") // begin-create_catalog_plan - pricing := &partnercentersellv1.GlobalCatalogMetadataPricing{ - Type: core.StringPtr("Paid"), - Origin: core.StringPtr("pricing_catalog"), + + catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ + Name: core.StringPtr("IBM"), + Email: core.StringPtr("name.name@ibm.com"), } - ui := &partnercentersellv1.GlobalCatalogMetadataUI{} + globalCatalogOverviewUiTranslatedContentModel := &partnercentersellv1.GlobalCatalogOverviewUITranslatedContent{ + DisplayName: core.StringPtr("My plan"), + Description: core.StringPtr("My plan description."), + LongDescription: core.StringPtr("My plan long description."), + } - metaDataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ - RcCompatible: core.BoolPtr(true), - Ui: ui, - Pricing: pricing, + globalCatalogOverviewUiModel := &partnercentersellv1.GlobalCatalogOverviewUI{ + En: globalCatalogOverviewUiTranslatedContentModel, } - catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + RcProvisionable: core.BoolPtr(false), + IamCompatible: core.BoolPtr(true), } + + globalCatalogMetadataPricingModel := &partnercentersellv1.GlobalCatalogMetadataPricing{ + Type: core.StringPtr("paid"), + Origin: core.StringPtr("pricing_catalog"), + } + + globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ + RcCompatible: core.BoolPtr(true), + Service: globalCatalogMetadataServiceModel, + Pricing: globalCatalogMetadataPricingModel, + } + createCatalogPlanOptions := partnerCenterSellService.NewCreateCatalogPlanOptions( productIdWithApprovedProgrammaticName, - catalogProductId, - "test-plan", + catalogProductIdLink, + "free-plan2", true, false, "plan", - []string{"tag"}, + []string{"ibm_created"}, catalogProductProviderModel, ) - createCatalogPlanOptions.SetMetadata(metaDataModel) + createCatalogPlanOptions.SetOverviewUi(globalCatalogOverviewUiModel) + createCatalogPlanOptions.SetMetadata(globalCatalogPlanMetadataModel) globalCatalogPlan, response, err := partnerCenterSellService.CreateCatalogPlan(createCatalogPlanOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(globalCatalogPlan, "", " ") - catalogPlanId = *globalCatalogPlan.ID fmt.Println(string(b)) // end-create_catalog_plan @@ -459,42 +399,34 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(globalCatalogPlan).ToNot(BeNil()) - }) - It(`GetCatalogPlan request example`, func() { - fmt.Println("\nGetCatalogPlan() result:") - // begin-get_catalog_plan - getCatalogPlanOptions := partnerCenterSellService.NewGetCatalogPlanOptions( - productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, - ) - - globalCatalogPlan, response, err := partnerCenterSellService.GetCatalogPlan(getCatalogPlanOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(globalCatalogPlan, "", " ") - fmt.Println(string(b)) - - // end-get_catalog_plan - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(globalCatalogPlan).ToNot(BeNil()) + catalogPlanIdLink = *globalCatalogPlan.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogPlanIdLink value: %v\n", catalogPlanIdLink) }) It(`UpdateCatalogPlan request example`, func() { fmt.Println("\nUpdateCatalogPlan() result:") // begin-update_catalog_plan - globalCatalogPlanPatchModel := &partnercentersellv1.GlobalCatalogPlanPatch{} + globalCatalogMetadataPricingModel := &partnercentersellv1.GlobalCatalogMetadataPricing{ + Type: core.StringPtr("free"), + Origin: core.StringPtr("pricing_catalog"), + } + + globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ + RcCompatible: core.BoolPtr(true), + Pricing: globalCatalogMetadataPricingModel, + } + + globalCatalogPlanPatchModel := &partnercentersellv1.GlobalCatalogPlanPatch{ + Metadata: globalCatalogPlanMetadataModel, + } globalCatalogPlanPatchModelAsPatch, asPatchErr := globalCatalogPlanPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateCatalogPlanOptions := partnerCenterSellService.NewUpdateCatalogPlanOptions( productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, + catalogProductIdLink, + catalogPlanIdLink, globalCatalogPlanPatchModelAsPatch, ) @@ -510,46 +442,60 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(globalCatalogPlan).ToNot(BeNil()) + + catalogPlanIdLink = *globalCatalogPlan.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogPlanIdLink value: %v\n", catalogPlanIdLink) }) It(`CreateCatalogDeployment request example`, func() { fmt.Println("\nCreateCatalogDeployment() result:") // begin-create_catalog_deployment catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("IBM"), + Email: core.StringPtr("name.name@ibm.com"), } - service := &partnercentersellv1.GlobalCatalogMetadataService{ + globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ RcProvisionable: core.BoolPtr(true), IamCompatible: core.BoolPtr(true), } - metaDataModelDeployment := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ + globalCatalogMetadataDeploymentBrokerModel := &partnercentersellv1.GlobalCatalogMetadataDeploymentBroker{ + Name: core.StringPtr("brokerunique1234"), + Guid: core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2"), + } + + globalCatalogMetadataDeploymentModel := &partnercentersellv1.GlobalCatalogMetadataDeployment{ + Broker: globalCatalogMetadataDeploymentBrokerModel, + Location: core.StringPtr("eu-gb"), + LocationURL: core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb"), + TargetCrn: core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb"), + } + + globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ RcCompatible: core.BoolPtr(true), - Service: service, + Service: globalCatalogMetadataServiceModel, + Deployment: globalCatalogMetadataDeploymentModel, } createCatalogDeploymentOptions := partnerCenterSellService.NewCreateCatalogDeploymentOptions( productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, - "sample-deployment", + catalogProductIdLink, + catalogPlanIdLink, + "deployment-eu-de", true, false, "deployment", - []string{"us"}, + []string{"eu-gb"}, catalogProductProviderModel, ) - - createCatalogDeploymentOptions.SetMetadata(metaDataModelDeployment) + createCatalogDeploymentOptions.SetMetadata(globalCatalogDeploymentMetadataModel) globalCatalogDeployment, response, err := partnerCenterSellService.CreateCatalogDeployment(createCatalogDeploymentOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(globalCatalogDeployment, "", " ") - catalogDeploymentId = *globalCatalogDeployment.ID fmt.Println(string(b)) // end-create_catalog_deployment @@ -557,44 +503,41 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(globalCatalogDeployment).ToNot(BeNil()) - }) - It(`GetCatalogDeployment request example`, func() { - fmt.Println("\nGetCatalogDeployment() result:") - // begin-get_catalog_deployment - - getCatalogDeploymentOptions := partnerCenterSellService.NewGetCatalogDeploymentOptions( - productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, - catalogDeploymentId, - ) - globalCatalogDeployment, response, err := partnerCenterSellService.GetCatalogDeployment(getCatalogDeploymentOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(globalCatalogDeployment, "", " ") - fmt.Println(string(b)) - - // end-get_catalog_deployment - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(globalCatalogDeployment).ToNot(BeNil()) + catalogDeploymentIdLink = *globalCatalogDeployment.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogDeploymentIdLink value: %v\n", catalogDeploymentIdLink) }) It(`UpdateCatalogDeployment request example`, func() { fmt.Println("\nUpdateCatalogDeployment() result:") // begin-update_catalog_deployment - globalCatalogDeploymentPatchModel := &partnercentersellv1.GlobalCatalogDeploymentPatch{} + globalCatalogMetadataDeploymentBrokerModel := &partnercentersellv1.GlobalCatalogMetadataDeploymentBroker{ + Name: core.StringPtr("another-broker"), + Guid: core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf"), + } + + globalCatalogMetadataDeploymentModel := &partnercentersellv1.GlobalCatalogMetadataDeployment{ + Broker: globalCatalogMetadataDeploymentBrokerModel, + Location: core.StringPtr("eu-gb"), + LocationURL: core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb"), + TargetCrn: core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb"), + } + + globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ + Deployment: globalCatalogMetadataDeploymentModel, + } + + globalCatalogDeploymentPatchModel := &partnercentersellv1.GlobalCatalogDeploymentPatch{ + Metadata: globalCatalogDeploymentMetadataModel, + } globalCatalogDeploymentPatchModelAsPatch, asPatchErr := globalCatalogDeploymentPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateCatalogDeploymentOptions := partnerCenterSellService.NewUpdateCatalogDeploymentOptions( productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, - catalogDeploymentId, + catalogProductIdLink, + catalogPlanIdLink, + catalogDeploymentIdLink, globalCatalogDeploymentPatchModelAsPatch, ) @@ -610,6 +553,9 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(globalCatalogDeployment).ToNot(BeNil()) + + catalogDeploymentIdLink = *globalCatalogDeployment.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogDeploymentIdLink value: %v\n", catalogDeploymentIdLink) }) It(`CreateIamRegistration request example`, func() { fmt.Println("\nCreateIamRegistration() result:") @@ -617,16 +563,14 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { createIamRegistrationOptions := partnerCenterSellService.NewCreateIamRegistrationOptions( productIdWithApprovedProgrammaticName, + "sample-name", ) - createIamRegistrationOptions.SetName("iam-sample-for-sdk") - iamServiceRegistration, response, err := partnerCenterSellService.CreateIamRegistration(createIamRegistrationOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(iamServiceRegistration, "", " ") - iamServiceRegistrationId = *iamServiceRegistration.Name fmt.Println(string(b)) // end-create_iam_registration @@ -634,6 +578,9 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(iamServiceRegistration).ToNot(BeNil()) + + programmaticNameLink = *iamServiceRegistration.Name + fmt.Fprintf(GinkgoWriter, "Saved programmaticNameLink value: %v\n", programmaticNameLink) }) It(`UpdateIamRegistration request example`, func() { fmt.Println("\nUpdateIamRegistration() result:") @@ -645,7 +592,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { updateIamRegistrationOptions := partnerCenterSellService.NewUpdateIamRegistrationOptions( productIdWithApprovedProgrammaticName, - iamServiceRegistrationId, + programmaticNameLink, iamServiceRegistrationPatchModelAsPatch, ) @@ -661,52 +608,33 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(iamServiceRegistration).ToNot(BeNil()) - }) - It(`GetIamRegistration request example`, func() { - fmt.Println("\nGetIamRegistration() result:") - // begin-get_iam_registration - - getIamRegistrationOptions := partnerCenterSellService.NewGetIamRegistrationOptions( - productIdWithApprovedProgrammaticName, - iamServiceRegistrationId, - ) - iamServiceRegistration, response, err := partnerCenterSellService.GetIamRegistration(getIamRegistrationOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(iamServiceRegistration, "", " ") - fmt.Println(string(b)) - - // end-get_iam_registration - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(iamServiceRegistration).ToNot(BeNil()) + programmaticNameLink = *iamServiceRegistration.Name + fmt.Fprintf(GinkgoWriter, "Saved programmaticNameLink value: %v\n", programmaticNameLink) }) It(`CreateResourceBroker request example`, func() { fmt.Println("\nCreateResourceBroker() result:") // begin-create_resource_broker var randomInteger = strconv.Itoa(rand.Intn(1000)) - brokerUrl := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) - brokerUserName := fmt.Sprintf("petra_test_user_name_%s", randomInteger) - brokerName := fmt.Sprintf("petra_test_%s", randomInteger) + brokerName := fmt.Sprintf("broker-example-%s", randomInteger) + brokerLink := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) createResourceBrokerOptions := partnerCenterSellService.NewCreateResourceBrokerOptions( - brokerUserName, - "petra_test_user_pass", - "basic", + "bearer-crn", brokerName, - brokerUrl, + brokerLink, "provision_through", ) + createResourceBrokerOptions.SetState("active") + createResourceBrokerOptions.SetAllowContextUpdates(false) + createResourceBrokerOptions.SetCatalogType("service") + createResourceBrokerOptions.SetRegion("global") broker, response, err := partnerCenterSellService.CreateResourceBroker(createResourceBrokerOptions) if err != nil { panic(err) } b, _ := json.MarshalIndent(broker, "", " ") - brokerId = *broker.ID fmt.Println(string(b)) // end-create_resource_broker @@ -714,17 +642,199 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(broker).ToNot(BeNil()) + + brokerIdLink = *broker.ID + fmt.Fprintf(GinkgoWriter, "Saved brokerIdLink value: %v\n", brokerIdLink) + }) + It(`GetRegistration request example`, func() { + fmt.Println("\nGetRegistration() result:") + // begin-get_registration + + getRegistrationOptions := partnerCenterSellServiceAlt.NewGetRegistrationOptions( + registrationIdLink, + ) + + registration, response, err := partnerCenterSellServiceAlt.GetRegistration(getRegistrationOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(registration, "", " ") + fmt.Println(string(b)) + + // end-get_registration + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(registration).ToNot(BeNil()) + }) + It(`UpdateRegistration request example`, func() { + fmt.Println("\nUpdateRegistration() result:") + // begin-update_registration + + registrationPatchModel := &partnercentersellv1.RegistrationPatch{} + registrationPatchModelAsPatch, asPatchErr := registrationPatchModel.AsPatch() + Expect(asPatchErr).To(BeNil()) + + updateRegistrationOptions := partnerCenterSellServiceAlt.NewUpdateRegistrationOptions( + registrationIdLink, + registrationPatchModelAsPatch, + ) + + registration, response, err := partnerCenterSellServiceAlt.UpdateRegistration(updateRegistrationOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(registration, "", " ") + fmt.Println(string(b)) + + // end-update_registration + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(registration).ToNot(BeNil()) + }) + It(`GetOnboardingProduct request example`, func() { + fmt.Println("\nGetOnboardingProduct() result:") + // begin-get_onboarding_product + + getOnboardingProductOptions := partnerCenterSellServiceAlt.NewGetOnboardingProductOptions( + productIdLink, + ) + + onboardingProduct, response, err := partnerCenterSellServiceAlt.GetOnboardingProduct(getOnboardingProductOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(onboardingProduct, "", " ") + fmt.Println(string(b)) + + // end-get_onboarding_product + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(onboardingProduct).ToNot(BeNil()) + + productIdLink = *onboardingProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved productIdLink value: %v\n", productIdLink) + }) + It(`GetCatalogProduct request example`, func() { + fmt.Println("\nGetCatalogProduct() result:") + // begin-get_catalog_product + + getCatalogProductOptions := partnerCenterSellService.NewGetCatalogProductOptions( + productIdWithApprovedProgrammaticName, + catalogProductIdLink, + ) + + globalCatalogProduct, response, err := partnerCenterSellService.GetCatalogProduct(getCatalogProductOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(globalCatalogProduct, "", " ") + fmt.Println(string(b)) + + // end-get_catalog_product + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(globalCatalogProduct).ToNot(BeNil()) + + catalogProductIdLink = *globalCatalogProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogProductIdLink value: %v\n", catalogProductIdLink) + }) + It(`GetCatalogPlan request example`, func() { + fmt.Println("\nGetCatalogPlan() result:") + // begin-get_catalog_plan + + getCatalogPlanOptions := partnerCenterSellService.NewGetCatalogPlanOptions( + productIdWithApprovedProgrammaticName, + catalogProductIdLink, + catalogPlanIdLink, + ) + + globalCatalogPlan, response, err := partnerCenterSellService.GetCatalogPlan(getCatalogPlanOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(globalCatalogPlan, "", " ") + fmt.Println(string(b)) + + // end-get_catalog_plan + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(globalCatalogPlan).ToNot(BeNil()) + + catalogPlanIdLink = *globalCatalogPlan.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogPlanIdLink value: %v\n", catalogPlanIdLink) + }) + It(`GetCatalogDeployment request example`, func() { + fmt.Println("\nGetCatalogDeployment() result:") + // begin-get_catalog_deployment + + getCatalogDeploymentOptions := partnerCenterSellService.NewGetCatalogDeploymentOptions( + productIdWithApprovedProgrammaticName, + catalogProductIdLink, + catalogPlanIdLink, + catalogDeploymentIdLink, + ) + + globalCatalogDeployment, response, err := partnerCenterSellService.GetCatalogDeployment(getCatalogDeploymentOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(globalCatalogDeployment, "", " ") + fmt.Println(string(b)) + + // end-get_catalog_deployment + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(globalCatalogDeployment).ToNot(BeNil()) + + catalogDeploymentIdLink = *globalCatalogDeployment.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogDeploymentIdLink value: %v\n", catalogDeploymentIdLink) + }) + It(`GetIamRegistration request example`, func() { + fmt.Println("\nGetIamRegistration() result:") + // begin-get_iam_registration + + getIamRegistrationOptions := partnerCenterSellService.NewGetIamRegistrationOptions( + productIdWithApprovedProgrammaticName, + programmaticNameLink, + ) + + iamServiceRegistration, response, err := partnerCenterSellService.GetIamRegistration(getIamRegistrationOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(iamServiceRegistration, "", " ") + fmt.Println(string(b)) + + // end-get_iam_registration + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(iamServiceRegistration).ToNot(BeNil()) + + programmaticNameLink = *iamServiceRegistration.Name + fmt.Fprintf(GinkgoWriter, "Saved programmaticNameLink value: %v\n", programmaticNameLink) }) It(`UpdateResourceBroker request example`, func() { fmt.Println("\nUpdateResourceBroker() result:") // begin-update_resource_broker - brokerPatchModel := &partnercentersellv1.BrokerPatch{} + var randomInteger = strconv.Itoa(rand.Intn(1000)) + brokerLink := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) + + brokerPatchModel := &partnercentersellv1.BrokerPatch{ + BrokerURL: core.StringPtr(brokerLink), + } brokerPatchModelAsPatch, asPatchErr := brokerPatchModel.AsPatch() Expect(asPatchErr).To(BeNil()) updateResourceBrokerOptions := partnerCenterSellService.NewUpdateResourceBrokerOptions( - brokerId, + brokerIdLink, brokerPatchModelAsPatch, ) @@ -746,7 +856,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { // begin-get_resource_broker getResourceBrokerOptions := partnerCenterSellService.NewGetResourceBrokerOptions( - brokerId, + brokerIdLink, ) broker, response, err := partnerCenterSellService.GetResourceBroker(getResourceBrokerOptions) @@ -762,15 +872,54 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(response.StatusCode).To(Equal(200)) Expect(broker).ToNot(BeNil()) }) + It(`ListProductBadges request example`, func() { + fmt.Println("\nListProductBadges() result:") + // begin-list_product_badges + + listProductBadgesOptions := partnerCenterSellService.NewListProductBadgesOptions() + + productBadgeCollection, response, err := partnerCenterSellService.ListProductBadges(listProductBadgesOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(productBadgeCollection, "", " ") + fmt.Println(string(b)) + + // end-list_product_badges + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(productBadgeCollection).ToNot(BeNil()) + }) + It(`GetProductBadge request example`, func() { + fmt.Println("\nGetProductBadge() result:") + // begin-get_product_badge + + getProductBadgeOptions := partnerCenterSellService.NewGetProductBadgeOptions( + CreateMockUUID(badgeId), + ) + productBadge, response, err := partnerCenterSellService.GetProductBadge(getProductBadgeOptions) + if err != nil { + panic(err) + } + b, _ := json.MarshalIndent(productBadge, "", " ") + fmt.Println(string(b)) + + // end-get_product_badge + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(productBadge).ToNot(BeNil()) + }) It(`DeleteCatalogDeployment request example`, func() { // begin-delete_catalog_deployment deleteCatalogDeploymentOptions := partnerCenterSellService.NewDeleteCatalogDeploymentOptions( productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, - catalogDeploymentId, + catalogProductIdLink, + catalogPlanIdLink, + catalogDeploymentIdLink, ) response, err := partnerCenterSellService.DeleteCatalogDeployment(deleteCatalogDeploymentOptions) @@ -786,14 +935,13 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) }) - It(`DeleteCatalogPlan request example`, func() { // begin-delete_catalog_plan deleteCatalogPlanOptions := partnerCenterSellService.NewDeleteCatalogPlanOptions( productIdWithApprovedProgrammaticName, - catalogProductId, - catalogPlanId, + catalogProductIdLink, + catalogPlanIdLink, ) response, err := partnerCenterSellService.DeleteCatalogPlan(deleteCatalogPlanOptions) @@ -809,34 +957,33 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) }) + It(`DeleteCatalogProduct request example`, func() { + // begin-delete_catalog_product - It(`DeleteOnboardingProduct request example`, func() { - // begin-delete_onboarding_product - - deleteOnboardingProductOptions := partnerCenterSellService.NewDeleteOnboardingProductOptions( - productId, + deleteCatalogProductOptions := partnerCenterSellService.NewDeleteCatalogProductOptions( + productIdWithApprovedProgrammaticName, + catalogProductIdLink, ) - response, err := partnerCenterSellService.DeleteOnboardingProduct(deleteOnboardingProductOptions) + response, err := partnerCenterSellService.DeleteCatalogProduct(deleteCatalogProductOptions) if err != nil { panic(err) } if response.StatusCode != 204 { - fmt.Printf("\nUnexpected response status code received from DeleteOnboardingProduct(): %d\n", response.StatusCode) + fmt.Printf("\nUnexpected response status code received from DeleteCatalogProduct(): %d\n", response.StatusCode) } - // end-delete_onboarding_product + // end-delete_catalog_product Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) }) - It(`DeleteIamRegistration request example`, func() { // begin-delete_iam_registration deleteIamRegistrationOptions := partnerCenterSellService.NewDeleteIamRegistrationOptions( productIdWithApprovedProgrammaticName, - iamServiceRegistrationId, + programmaticNameLink, ) response, err := partnerCenterSellService.DeleteIamRegistration(deleteIamRegistrationOptions) @@ -852,24 +999,42 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) }) + It(`DeleteOnboardingProduct request example`, func() { + // begin-delete_onboarding_product - It(`DeleteCatalogProduct request example`, func() { - // begin-delete_catalog_product + deleteOnboardingProductOptions := partnerCenterSellServiceAlt.NewDeleteOnboardingProductOptions( + productIdLink, + ) - deleteCatalogProductOptions := partnerCenterSellService.NewDeleteCatalogProductOptions( - productIdWithApprovedProgrammaticName, - catalogProductId, + response, err := partnerCenterSellServiceAlt.DeleteOnboardingProduct(deleteOnboardingProductOptions) + if err != nil { + panic(err) + } + if response.StatusCode != 204 { + fmt.Printf("\nUnexpected response status code received from DeleteOnboardingProduct(): %d\n", response.StatusCode) + } + + // end-delete_onboarding_product + + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(204)) + }) + It(`DeleteRegistration request example`, func() { + // begin-delete_registration + + deleteRegistrationOptions := partnerCenterSellServiceAlt.NewDeleteRegistrationOptions( + registrationIdLink, ) - response, err := partnerCenterSellService.DeleteCatalogProduct(deleteCatalogProductOptions) + response, err := partnerCenterSellServiceAlt.DeleteRegistration(deleteRegistrationOptions) if err != nil { panic(err) } if response.StatusCode != 204 { - fmt.Printf("\nUnexpected response status code received from DeleteCatalogProduct(): %d\n", response.StatusCode) + fmt.Printf("\nUnexpected response status code received from DeleteRegistration(): %d\n", response.StatusCode) } - // end-delete_catalog_product + // end-delete_registration Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) @@ -878,7 +1043,7 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { // begin-delete_resource_broker deleteResourceBrokerOptions := partnerCenterSellService.NewDeleteResourceBrokerOptions( - brokerId, + brokerIdLink, ) response, err := partnerCenterSellService.DeleteResourceBroker(deleteResourceBrokerOptions) @@ -895,110 +1060,4 @@ var _ = Describe(`PartnerCenterSellV1 Examples Tests`, func() { Expect(response.StatusCode).To(Equal(204)) }) }) - - It("Login to account containing badges", func() { - var err error - - // begin-reauth - const externalConfigFile2 = "../partner_center_sell_badged_user_v1.env" - os.Setenv("IBM_CREDENTIALS_FILE", externalConfigFile2) - - partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{} - - partnerCenterSellService, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) - - if err != nil { - panic(err) - } - - // end-reauth - - Expect(err).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - core.SetLogger(core.NewLogger(core.LevelDebug, log.New(GinkgoWriter, "", log.LstdFlags), log.New(GinkgoWriter, "", log.LstdFlags))) - partnerCenterSellService.EnableRetries(4, 30*time.Second) - }) - - It(`ListProductBadges request example`, func() { - fmt.Println("\nListProductBadges() result:") - // begin-list_product_badges - - listProductBadgesOptions := partnerCenterSellService.NewListProductBadgesOptions() - - productBadgeCollection, response, err := partnerCenterSellService.ListProductBadges(listProductBadgesOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(productBadgeCollection, "", " ") - fmt.Println(string(b)) - // end-list_product_badges - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(productBadgeCollection).ToNot(BeNil()) - badgeId = *productBadgeCollection.ProductBadges[0].ID - fmt.Println(badgeId) - - }) - It(`GetProductBadge request example`, func() { - fmt.Println("\nGetProductBadge() result:") - // begin-get_product_badge - - getProductBadgeOptions := partnerCenterSellService.NewGetProductBadgeOptions( - CreateMockUUID(badgeId), - ) - - productBadge, response, err := partnerCenterSellService.GetProductBadge(getProductBadgeOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(productBadge, "", " ") - fmt.Println(string(b)) - - // end-get_product_badge - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(productBadge).ToNot(BeNil()) - }) - It(`ListBadges request example`, func() { - fmt.Println("\nListBadges() result:") - // begin-list_badges - - listBadgesOptions := partnerCenterSellService.NewListBadgesOptions() - - cloudBadges, response, err := partnerCenterSellService.ListBadges(listBadgesOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(cloudBadges, "", " ") - fmt.Println(string(b)) - // end-list_badges - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(cloudBadges).ToNot(BeNil()) - }) - It(`GetBadge request example`, func() { - fmt.Println("\nGetBadge() result:") - // begin-get_badge - - getBadgeOptions := partnerCenterSellService.NewGetBadgeOptions( - CreateMockUUID(badgeId), - ) - - cloudBadge, response, err := partnerCenterSellService.GetBadge(getBadgeOptions) - if err != nil { - panic(err) - } - b, _ := json.MarshalIndent(cloudBadge, "", " ") - fmt.Println(string(b)) - - // end-get_badge - - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(cloudBadge).ToNot(BeNil()) - }) }) diff --git a/partnercentersellv1/partner_center_sell_v1_integration_test.go b/partnercentersellv1/partner_center_sell_v1_integration_test.go index 22447a34..b883fa5a 100644 --- a/partnercentersellv1/partner_center_sell_v1_integration_test.go +++ b/partnercentersellv1/partner_center_sell_v1_integration_test.go @@ -44,20 +44,24 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { const externalConfigFile = "../partner_center_sell_v1.env" var ( - err error - partnerCenterSellService *partnercentersellv1.PartnerCenterSellV1 - serviceURL string - config map[string]string + err error + partnerCenterSellService *partnercentersellv1.PartnerCenterSellV1 + partnerCenterSellServiceAlt *partnercentersellv1.PartnerCenterSellV1 + serviceURL string + config map[string]string + + // Variables to hold link values + brokerIdLink string + catalogDeploymentIdLink string + catalogPlanIdLink string + catalogProductIdLink string + productIdLink string + programmaticNameLink string + registrationIdLink string accountId string - registrationId string - productIdWithApprovedProgrammaticName string - productId string - catalogProductId string - catalogPlanId string - catalogDeploymentId string - iamServiceRegistrationId string - brokerId string badgeId string + iamServiceRegistrationId string + productIdWithApprovedProgrammaticName string env string ) @@ -116,116 +120,53 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { core.SetLogger(core.NewLogger(core.LevelDebug, log.New(GinkgoWriter, "", log.LstdFlags), log.New(GinkgoWriter, "", log.LstdFlags))) partnerCenterSellService.EnableRetries(4, 30*time.Second) }) - }) + It("Successfully construct the service client instance with alternative credentials", func() { + var err error - Describe(`CreateRegistration - Register your account in Partner Center - Sell`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`CreateRegistration(createRegistrationOptions *CreateRegistrationOptions)`, func() { - primaryContactModel := &partnercentersellv1.PrimaryContact{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), - } + // begin-common - createRegistrationOptions := &partnercentersellv1.CreateRegistrationOptions{ - AccountID: core.StringPtr(accountId), - CompanyName: core.StringPtr("company_sdk"), - PrimaryContact: primaryContactModel, + partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{ + ServiceName: "partner_center_sell_alt", } - registration, response, err := partnerCenterSellService.CreateRegistration(createRegistrationOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(registration).ToNot(BeNil()) - registrationId = *registration.ID - }) - }) + partnerCenterSellServiceAlt, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) - Describe(`GetRegistration - Retrieve a Partner Center - Sell registration`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetRegistration(getRegistrationOptions *GetRegistrationOptions)`, func() { - getRegistrationOptions := &partnercentersellv1.GetRegistrationOptions{ - RegistrationID: core.StringPtr(registrationId), + if err != nil { + panic(err) } - registration, response, err := partnerCenterSellService.GetRegistration(getRegistrationOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(registration).ToNot(BeNil()) + // end-common + + Expect(partnerCenterSellServiceAlt).ToNot(BeNil()) }) }) - Describe(`UpdateRegistration - Update a Partner Center - Sell registration`, func() { + Describe(`CreateRegistration - Register your account in Partner Center - Sell`, func() { BeforeEach(func() { shouldSkipTest() }) - It(`UpdateRegistration(updateRegistrationOptions *UpdateRegistrationOptions)`, func() { + It(`CreateRegistration(createRegistrationOptions *CreateRegistrationOptions)`, func() { primaryContactModel := &partnercentersellv1.PrimaryContact{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("Company Representative"), + Email: core.StringPtr("companyrep@email.com"), } - registrationPatchModel := &partnercentersellv1.RegistrationPatch{ - CompanyName: core.StringPtr("company_sdk_new"), + createRegistrationOptions := &partnercentersellv1.CreateRegistrationOptions{ + AccountID: core.StringPtr(accountId), + CompanyName: core.StringPtr("company_sdk"), PrimaryContact: primaryContactModel, } - registrationPatchModelAsPatch, asPatchErr := registrationPatchModel.AsPatch() - Expect(asPatchErr).To(BeNil()) - - updateRegistrationOptions := &partnercentersellv1.UpdateRegistrationOptions{ - RegistrationID: core.StringPtr(registrationId), - RegistrationPatch: registrationPatchModelAsPatch, - } - registration, response, err := partnerCenterSellService.UpdateRegistration(updateRegistrationOptions) + registration, response, err := partnerCenterSellServiceAlt.CreateRegistration(createRegistrationOptions) Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(registration).ToNot(BeNil()) - }) - }) - - Describe(`DeleteRegistration - Delete your registration in Partner - Center Sell`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`DeleteRegistration(deleteRegistrationOptions *DeleteRegistrationOptions)`, func() { - deleteRegistrationOptions := &partnercentersellv1.DeleteRegistrationOptions{ - RegistrationID: core.StringPtr(registrationId), - } - response, err := partnerCenterSellService.DeleteRegistration(deleteRegistrationOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(204)) + registrationIdLink = *registration.ID + fmt.Fprintf(GinkgoWriter, "Saved registrationIdLink value: %v\n", registrationIdLink) }) }) - It("Login to account containing a programmatic name approved product", func() { - var err error - - // begin-reauth - const externalConfigFile2 = "../partner_center_sell_approved_user_v1.env" - os.Setenv("IBM_CREDENTIALS_FILE", externalConfigFile2) - - partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{} - - partnerCenterSellService, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) - - if err != nil { - panic(err) - } - - // end-reauth - - Expect(err).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - core.SetLogger(core.NewLogger(core.LevelDebug, log.New(GinkgoWriter, "", log.LstdFlags), log.New(GinkgoWriter, "", log.LstdFlags))) - partnerCenterSellService.EnableRetries(4, 30*time.Second) - }) - Describe(`CreateOnboardingProduct - Create a product to onboard`, func() { BeforeEach(func() { shouldSkipTest() @@ -256,27 +197,13 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Support: onboardingProductSupportModel, } - onboardingProduct, response, err := partnerCenterSellService.CreateOnboardingProduct(createOnboardingProductOptions) + onboardingProduct, response, err := partnerCenterSellServiceAlt.CreateOnboardingProduct(createOnboardingProductOptions) Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(onboardingProduct).ToNot(BeNil()) - productId = *onboardingProduct.ID - }) - }) - - Describe(`GetOnboardingProduct - Get an onboarding product`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetOnboardingProduct(getOnboardingProductOptions *GetOnboardingProductOptions)`, func() { - getOnboardingProductOptions := &partnercentersellv1.GetOnboardingProductOptions{ - ProductID: core.StringPtr(productId), - } - onboardingProduct, response, err := partnerCenterSellService.GetOnboardingProduct(getOnboardingProductOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(onboardingProduct).ToNot(BeNil()) + productIdLink = *onboardingProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved productIdLink value: %v\n", productIdLink) }) }) @@ -312,14 +239,17 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(asPatchErr).To(BeNil()) updateOnboardingProductOptions := &partnercentersellv1.UpdateOnboardingProductOptions{ - ProductID: core.StringPtr(productId), + ProductID: &productIdLink, OnboardingProductPatch: onboardingProductPatchModelAsPatch, } - onboardingProduct, response, err := partnerCenterSellService.UpdateOnboardingProduct(updateOnboardingProductOptions) + onboardingProduct, response, err := partnerCenterSellServiceAlt.UpdateOnboardingProduct(updateOnboardingProductOptions) Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(onboardingProduct).ToNot(BeNil()) + + productIdLink = *onboardingProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved productIdLink value: %v\n", productIdLink) }) }) @@ -329,14 +259,14 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { }) It(`CreateCatalogProduct(createCatalogProductOptions *CreateCatalogProductOptions)`, func() { catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("IBM"), + Email: core.StringPtr("name.name@ibm.com"), } globalCatalogOverviewUiTranslatedContentModel := &partnercentersellv1.GlobalCatalogOverviewUITranslatedContent{ - DisplayName: core.StringPtr("test product"), - Description: core.StringPtr("test product desc"), - LongDescription: core.StringPtr("test product desc long"), + DisplayName: core.StringPtr("My product display name."), + Description: core.StringPtr("My product description."), + LongDescription: core.StringPtr("My product description long description."), } globalCatalogOverviewUiModel := &partnercentersellv1.GlobalCatalogOverviewUI{ @@ -349,9 +279,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { catalogHighlightItemModel := &partnercentersellv1.CatalogHighlightItem{ Description: core.StringPtr("highlight desc"), - DescriptionI18n: map[string]string{"key1": "desc"}, + DescriptionI18n: map[string]string{"key1": "testString"}, Title: core.StringPtr("Title"), - TitleI18n: map[string]string{"key1": "title"}, + TitleI18n: map[string]string{"key1": "testString"}, } catalogProductMediaItemModel := &partnercentersellv1.CatalogProductMediaItem{ @@ -363,8 +293,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiStringsContentModel := &partnercentersellv1.GlobalCatalogMetadataUIStringsContent{ - Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, - Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, + Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + EmbeddableDashboard: core.StringPtr("testString"), } globalCatalogMetadataUiStringsModel := &partnercentersellv1.GlobalCatalogMetadataUIStrings{ @@ -372,20 +303,28 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiUrlsModel := &partnercentersellv1.GlobalCatalogMetadataUIUrls{ - DocURL: core.StringPtr("https://http.cat/doc"), - TermsURL: core.StringPtr("https://http.cat/elua"), + DocURL: core.StringPtr("https://http.cat/doc"), + ApidocsURL: core.StringPtr("https://http.cat/doc"), + TermsURL: core.StringPtr("https://http.cat/doc"), + InstructionsURL: core.StringPtr("https://http.cat/doc"), + CatalogDetailsURL: core.StringPtr("https://http.cat/doc"), + CustomCreatePageURL: core.StringPtr("https://http.cat/doc"), + Dashboard: core.StringPtr("https://http.cat/doc"), } globalCatalogMetadataUiModel := &partnercentersellv1.GlobalCatalogMetadataUI{ Strings: globalCatalogMetadataUiStringsModel, Urls: globalCatalogMetadataUiUrlsModel, - Hidden: core.BoolPtr(false), + Hidden: core.BoolPtr(true), SideBySideIndex: core.Float64Ptr(float64(72)), } globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ - RcProvisionable: core.BoolPtr(true), - IamCompatible: core.BoolPtr(true), + RcProvisionable: core.BoolPtr(true), + IamCompatible: core.BoolPtr(true), + Bindable: core.BoolPtr(true), + PlanUpdateable: core.BoolPtr(true), + ServiceKeySupported: core.BoolPtr(true), } supportTimeIntervalModel := &partnercentersellv1.SupportTimeInterval{ @@ -401,8 +340,8 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { supportDetailsItemAvailabilityTimeModel := &partnercentersellv1.SupportDetailsItemAvailabilityTime{ Day: core.Float64Ptr(float64(72)), - StartTime: core.StringPtr("2024-01-01T12:00:00.000Z"), - EndTime: core.StringPtr("2034-01-01T12:00:00.000Z"), + StartTime: core.StringPtr("10:00"), + EndTime: core.StringPtr("18:00"), } supportDetailsItemAvailabilityModel := &partnercentersellv1.SupportDetailsItemAvailability{ @@ -424,6 +363,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Locations: []string{"hu"}, Languages: []string{"hu"}, Process: core.StringPtr("testString"), + ProcessI18n: map[string]string{"anyKey": "anyValue"}, SupportType: core.StringPtr("community"), SupportEscalation: supportEscalationModel, SupportDetails: []partnercentersellv1.SupportDetailsItem{*supportDetailsItemModel}, @@ -433,8 +373,20 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Support: globalCatalogProductMetadataOtherPcSupportModel, } + globalCatalogProductMetadataOtherCompositeChildModel := &partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{ + Kind: core.StringPtr("service"), + Name: core.StringPtr("test.string"), + } + + globalCatalogProductMetadataOtherCompositeModel := &partnercentersellv1.GlobalCatalogProductMetadataOtherComposite{ + CompositeKind: core.StringPtr("service"), + CompositeTag: core.StringPtr("test.string"), + Children: []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel}, + } + globalCatalogProductMetadataOtherModel := &partnercentersellv1.GlobalCatalogProductMetadataOther{ - PC: globalCatalogProductMetadataOtherPcModel, + PC: globalCatalogProductMetadataOtherPcModel, + Composite: globalCatalogProductMetadataOtherCompositeModel, } globalCatalogProductMetadataModel := &partnercentersellv1.GlobalCatalogProductMetadata{ @@ -450,7 +402,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Active: core.BoolPtr(true), Disabled: core.BoolPtr(false), Kind: core.StringPtr("service"), - Tags: []string{"tag"}, + Tags: []string{"keyword", "support_ibm"}, ObjectProvider: catalogProductProviderModel, OverviewUi: globalCatalogOverviewUiModel, Images: globalCatalogProductImagesModel, @@ -462,25 +414,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(globalCatalogProduct).ToNot(BeNil()) - catalogProductId = *globalCatalogProduct.ID - }) - }) - Describe(`GetCatalogProduct - Get a global catalog product`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetCatalogProduct(getCatalogProductOptions *GetCatalogProductOptions)`, func() { - getCatalogProductOptions := &partnercentersellv1.GetCatalogProductOptions{ - ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - Env: core.StringPtr(env), - } - - globalCatalogProduct, response, err := partnerCenterSellService.GetCatalogProduct(getCatalogProductOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(globalCatalogProduct).ToNot(BeNil()) + catalogProductIdLink = *globalCatalogProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogProductIdLink value: %v\n", catalogProductIdLink) }) }) @@ -524,8 +460,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiStringsContentModel := &partnercentersellv1.GlobalCatalogMetadataUIStringsContent{ - Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, - Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, + Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + EmbeddableDashboard: core.StringPtr("testString"), } globalCatalogMetadataUiStringsModel := &partnercentersellv1.GlobalCatalogMetadataUIStrings{ @@ -533,8 +470,13 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiUrlsModel := &partnercentersellv1.GlobalCatalogMetadataUIUrls{ - DocURL: core.StringPtr("https://http.cat/doc"), - TermsURL: core.StringPtr("https://http.cat/elua"), + DocURL: core.StringPtr("https://http.cat/elua"), + ApidocsURL: core.StringPtr("https://http.cat/elua"), + TermsURL: core.StringPtr("https://http.cat/elua"), + InstructionsURL: core.StringPtr("https://http.cat/elua"), + CatalogDetailsURL: core.StringPtr("https://http.cat/elua"), + CustomCreatePageURL: core.StringPtr("https://http.cat/elua"), + Dashboard: core.StringPtr("https://http.cat/elua"), } globalCatalogMetadataUiModel := &partnercentersellv1.GlobalCatalogMetadataUI{ @@ -545,8 +487,11 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ - RcProvisionable: core.BoolPtr(true), - IamCompatible: core.BoolPtr(true), + RcProvisionable: core.BoolPtr(true), + IamCompatible: core.BoolPtr(true), + Bindable: core.BoolPtr(true), + PlanUpdateable: core.BoolPtr(true), + ServiceKeySupported: core.BoolPtr(true), } supportTimeIntervalModel := &partnercentersellv1.SupportTimeInterval{ @@ -555,15 +500,15 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } supportEscalationModel := &partnercentersellv1.SupportEscalation{ - Contact: core.StringPtr("Petra"), + Contact: core.StringPtr("testString"), EscalationWaitTime: supportTimeIntervalModel, ResponseWaitTime: supportTimeIntervalModel, } supportDetailsItemAvailabilityTimeModel := &partnercentersellv1.SupportDetailsItemAvailabilityTime{ Day: core.Float64Ptr(float64(72)), - StartTime: core.StringPtr("2024-01-01T12:00:00.000Z"), - EndTime: core.StringPtr("2034-01-01T12:00:00.000Z"), + StartTime: core.StringPtr("10:00"), + EndTime: core.StringPtr("10:00"), } supportDetailsItemAvailabilityModel := &partnercentersellv1.SupportDetailsItemAvailability{ @@ -574,7 +519,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { supportDetailsItemModel := &partnercentersellv1.SupportDetailsItem{ Type: core.StringPtr("support_site"), - Contact: core.StringPtr("petra"), + Contact: core.StringPtr("testString"), ResponseWaitTime: supportTimeIntervalModel, Availability: supportDetailsItemAvailabilityModel, } @@ -585,6 +530,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Locations: []string{"hu"}, Languages: []string{"hu"}, Process: core.StringPtr("testString"), + ProcessI18n: map[string]string{"anyKey": "anyValue"}, SupportType: core.StringPtr("community"), SupportEscalation: supportEscalationModel, SupportDetails: []partnercentersellv1.SupportDetailsItem{*supportDetailsItemModel}, @@ -619,7 +565,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { updateCatalogProductOptions := &partnercentersellv1.UpdateCatalogProductOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), + CatalogProductID: &catalogProductIdLink, GlobalCatalogProductPatch: globalCatalogProductPatchModelAsPatch, Env: core.StringPtr(env), } @@ -628,6 +574,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(globalCatalogProduct).ToNot(BeNil()) + + catalogProductIdLink = *globalCatalogProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogProductIdLink value: %v\n", catalogProductIdLink) }) }) @@ -637,14 +586,14 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { }) It(`CreateCatalogPlan(createCatalogPlanOptions *CreateCatalogPlanOptions)`, func() { catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("IBM"), + Email: core.StringPtr("name.name@ibm.com"), } globalCatalogOverviewUiTranslatedContentModel := &partnercentersellv1.GlobalCatalogOverviewUITranslatedContent{ - DisplayName: core.StringPtr("test plan"), - Description: core.StringPtr("test plan desc"), - LongDescription: core.StringPtr("test plan desc long"), + DisplayName: core.StringPtr("My plan"), + Description: core.StringPtr("My plan description."), + LongDescription: core.StringPtr("My plan long description."), } globalCatalogOverviewUiModel := &partnercentersellv1.GlobalCatalogOverviewUI{ @@ -653,22 +602,23 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { catalogHighlightItemModel := &partnercentersellv1.CatalogHighlightItem{ Description: core.StringPtr("testString"), - DescriptionI18n: map[string]string{"key1": "testString"}, + DescriptionI18n: map[string]string{"anyKey": "anyValue"}, Title: core.StringPtr("testString"), - TitleI18n: map[string]string{"key1": "testString"}, + TitleI18n: map[string]string{"anyKey": "anyValue"}, } catalogProductMediaItemModel := &partnercentersellv1.CatalogProductMediaItem{ Caption: core.StringPtr("testString"), - CaptionI18n: map[string]string{"key1": "testString"}, + CaptionI18n: map[string]string{"anyKey": "anyValue"}, Thumbnail: core.StringPtr("testString"), Type: core.StringPtr("image"), - URL: core.StringPtr("https://http.cat/images/200.jpg"), + URL: core.StringPtr("testString"), } globalCatalogMetadataUiStringsContentModel := &partnercentersellv1.GlobalCatalogMetadataUIStringsContent{ - Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, - Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, + Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + EmbeddableDashboard: core.StringPtr("testString"), } globalCatalogMetadataUiStringsModel := &partnercentersellv1.GlobalCatalogMetadataUIStrings{ @@ -676,8 +626,13 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiUrlsModel := &partnercentersellv1.GlobalCatalogMetadataUIUrls{ - DocURL: core.StringPtr("https://http.cat/doc"), - TermsURL: core.StringPtr("https://http.cat/elua"), + DocURL: core.StringPtr("https://http.cat/do"), + ApidocsURL: core.StringPtr("https://http.cat/do"), + TermsURL: core.StringPtr("https://http.cat/do"), + InstructionsURL: core.StringPtr("https://http.cat/do"), + CatalogDetailsURL: core.StringPtr("https://http.cat/do"), + CustomCreatePageURL: core.StringPtr("https://http.cat/do"), + Dashboard: core.StringPtr("https://http.cat/do"), } globalCatalogMetadataUiModel := &partnercentersellv1.GlobalCatalogMetadataUI{ @@ -687,25 +642,40 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } + globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + RcProvisionable: core.BoolPtr(false), + IamCompatible: core.BoolPtr(true), + Bindable: core.BoolPtr(true), + PlanUpdateable: core.BoolPtr(true), + ServiceKeySupported: core.BoolPtr(true), + } + globalCatalogMetadataPricingModel := &partnercentersellv1.GlobalCatalogMetadataPricing{ Type: core.StringPtr("paid"), - Origin: core.StringPtr("global_catalog"), + Origin: core.StringPtr("pricing_catalog"), + } + + globalCatalogPlanMetadataPlanModel := &partnercentersellv1.GlobalCatalogPlanMetadataPlan{ + AllowInternalUsers: core.BoolPtr(true), + Bindable: core.BoolPtr(true), } globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, + Service: globalCatalogMetadataServiceModel, Pricing: globalCatalogMetadataPricingModel, + Plan: globalCatalogPlanMetadataPlanModel, } createCatalogPlanOptions := &partnercentersellv1.CreateCatalogPlanOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - Name: core.StringPtr("test-plan"), + CatalogProductID: &catalogProductIdLink, + Name: core.StringPtr("free-plan2"), Active: core.BoolPtr(true), Disabled: core.BoolPtr(false), Kind: core.StringPtr("plan"), - Tags: []string{"tag"}, + Tags: []string{"ibm_created"}, ObjectProvider: catalogProductProviderModel, OverviewUi: globalCatalogOverviewUiModel, Metadata: globalCatalogPlanMetadataModel, @@ -716,26 +686,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(globalCatalogPlan).ToNot(BeNil()) - catalogPlanId = *globalCatalogPlan.ID - }) - }) - - Describe(`GetCatalogPlan - Get a global catalog pricing plan`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetCatalogPlan(getCatalogPlanOptions *GetCatalogPlanOptions)`, func() { - getCatalogPlanOptions := &partnercentersellv1.GetCatalogPlanOptions{ - ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), - Env: core.StringPtr(env), - } - globalCatalogPlan, response, err := partnerCenterSellService.GetCatalogPlan(getCatalogPlanOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(globalCatalogPlan).ToNot(BeNil()) + catalogPlanIdLink = *globalCatalogPlan.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogPlanIdLink value: %v\n", catalogPlanIdLink) }) }) @@ -775,8 +728,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiStringsContentModel := &partnercentersellv1.GlobalCatalogMetadataUIStringsContent{ - Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, - Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, + Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + EmbeddableDashboard: core.StringPtr("testString"), } globalCatalogMetadataUiStringsModel := &partnercentersellv1.GlobalCatalogMetadataUIStrings{ @@ -784,8 +738,13 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiUrlsModel := &partnercentersellv1.GlobalCatalogMetadataUIUrls{ - DocURL: core.StringPtr("https://http.cat/doc"), - TermsURL: core.StringPtr("https://http.cat/elua"), + DocURL: core.StringPtr("https://http.cat/elua"), + ApidocsURL: core.StringPtr("https://http.cat/elua"), + TermsURL: core.StringPtr("https://http.cat/elua"), + InstructionsURL: core.StringPtr("https://http.cat/elua"), + CatalogDetailsURL: core.StringPtr("https://http.cat/elua"), + CustomCreatePageURL: core.StringPtr("https://http.cat/elua"), + Dashboard: core.StringPtr("https://http.cat/elua"), } globalCatalogMetadataUiModel := &partnercentersellv1.GlobalCatalogMetadataUI{ @@ -795,22 +754,37 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { SideBySideIndex: core.Float64Ptr(float64(72)), } + globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ + RcProvisionable: core.BoolPtr(true), + IamCompatible: core.BoolPtr(true), + Bindable: core.BoolPtr(true), + PlanUpdateable: core.BoolPtr(true), + ServiceKeySupported: core.BoolPtr(true), + } + globalCatalogMetadataPricingModel := &partnercentersellv1.GlobalCatalogMetadataPricing{ - Type: core.StringPtr("paid"), - Origin: core.StringPtr("global_catalog"), + Type: core.StringPtr("free"), + Origin: core.StringPtr("pricing_catalog"), + } + + globalCatalogPlanMetadataPlanModel := &partnercentersellv1.GlobalCatalogPlanMetadataPlan{ + AllowInternalUsers: core.BoolPtr(true), + Bindable: core.BoolPtr(true), } globalCatalogPlanMetadataModel := &partnercentersellv1.GlobalCatalogPlanMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, + Service: globalCatalogMetadataServiceModel, Pricing: globalCatalogMetadataPricingModel, + Plan: globalCatalogPlanMetadataPlanModel, } globalCatalogPlanPatchModel := &partnercentersellv1.GlobalCatalogPlanPatch{ Active: core.BoolPtr(true), Disabled: core.BoolPtr(false), OverviewUi: globalCatalogOverviewUiModel, - Tags: []string{"tag"}, + Tags: []string{"testString"}, ObjectProvider: catalogProductProviderModel, Metadata: globalCatalogPlanMetadataModel, } @@ -819,8 +793,8 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { updateCatalogPlanOptions := &partnercentersellv1.UpdateCatalogPlanOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, GlobalCatalogPlanPatch: globalCatalogPlanPatchModelAsPatch, Env: core.StringPtr(env), } @@ -829,6 +803,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(globalCatalogPlan).ToNot(BeNil()) + + catalogPlanIdLink = *globalCatalogPlan.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogPlanIdLink value: %v\n", catalogPlanIdLink) }) }) @@ -838,8 +815,8 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { }) It(`CreateCatalogDeployment(createCatalogDeploymentOptions *CreateCatalogDeploymentOptions)`, func() { catalogProductProviderModel := &partnercentersellv1.CatalogProductProvider{ - Name: core.StringPtr("Petra"), - Email: core.StringPtr("petra@ibm.com"), + Name: core.StringPtr("IBM"), + Email: core.StringPtr("name.name@ibm.com"), } globalCatalogOverviewUiTranslatedContentModel := &partnercentersellv1.GlobalCatalogOverviewUITranslatedContent{ @@ -854,9 +831,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { catalogHighlightItemModel := &partnercentersellv1.CatalogHighlightItem{ Description: core.StringPtr("testString"), - DescriptionI18n: map[string]string{"key1": "testString"}, + DescriptionI18n: map[string]string{"anyKey": "anyValue"}, Title: core.StringPtr("testString"), - TitleI18n: map[string]string{"key1": "testString"}, + TitleI18n: map[string]string{"anyKey": "anyValue"}, } catalogProductMediaItemModel := &partnercentersellv1.CatalogProductMediaItem{ @@ -868,8 +845,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiStringsContentModel := &partnercentersellv1.GlobalCatalogMetadataUIStringsContent{ - Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, - Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, + Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + EmbeddableDashboard: core.StringPtr("testString"), } globalCatalogMetadataUiStringsModel := &partnercentersellv1.GlobalCatalogMetadataUIStrings{ @@ -877,8 +855,13 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiUrlsModel := &partnercentersellv1.GlobalCatalogMetadataUIUrls{ - DocURL: core.StringPtr("https://http.cat/doc"), - TermsURL: core.StringPtr("https://http.cat/elua"), + DocURL: core.StringPtr("https://http.cat/elua"), + ApidocsURL: core.StringPtr("https://http.cat/elua"), + TermsURL: core.StringPtr("https://http.cat/elua"), + InstructionsURL: core.StringPtr("https://http.cat/elua"), + CatalogDetailsURL: core.StringPtr("https://http.cat/elua"), + CustomCreatePageURL: core.StringPtr("https://http.cat/elua"), + Dashboard: core.StringPtr("https://http.cat/elua"), } globalCatalogMetadataUiModel := &partnercentersellv1.GlobalCatalogMetadataUI{ @@ -889,25 +872,41 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ - RcProvisionable: core.BoolPtr(true), - IamCompatible: core.BoolPtr(true), + RcProvisionable: core.BoolPtr(true), + IamCompatible: core.BoolPtr(true), + Bindable: core.BoolPtr(true), + PlanUpdateable: core.BoolPtr(true), + ServiceKeySupported: core.BoolPtr(true), + } + + globalCatalogMetadataDeploymentBrokerModel := &partnercentersellv1.GlobalCatalogMetadataDeploymentBroker{ + Name: core.StringPtr("brokerunique1234"), + Guid: core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2"), + } + + globalCatalogMetadataDeploymentModel := &partnercentersellv1.GlobalCatalogMetadataDeployment{ + Broker: globalCatalogMetadataDeploymentBrokerModel, + Location: core.StringPtr("eu-gb"), + LocationURL: core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb"), + TargetCrn: core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb"), } globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, Service: globalCatalogMetadataServiceModel, + Deployment: globalCatalogMetadataDeploymentModel, } createCatalogDeploymentOptions := &partnercentersellv1.CreateCatalogDeploymentOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), - Name: core.StringPtr("test-deployment"), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, + Name: core.StringPtr("deployment-eu-de"), Active: core.BoolPtr(true), Disabled: core.BoolPtr(false), Kind: core.StringPtr("deployment"), - Tags: []string{"tag"}, + Tags: []string{"eu-gb"}, ObjectProvider: catalogProductProviderModel, OverviewUi: globalCatalogOverviewUiModel, Metadata: globalCatalogDeploymentMetadataModel, @@ -918,27 +917,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(globalCatalogDeployment).ToNot(BeNil()) - catalogDeploymentId = *globalCatalogDeployment.ID - }) - }) - Describe(`GetCatalogDeployment - Get a global catalog deployment`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetCatalogDeployment(getCatalogDeploymentOptions *GetCatalogDeploymentOptions)`, func() { - getCatalogDeploymentOptions := &partnercentersellv1.GetCatalogDeploymentOptions{ - ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), - CatalogDeploymentID: core.StringPtr(catalogDeploymentId), - Env: core.StringPtr(env), - } - - globalCatalogDeployment, response, err := partnerCenterSellService.GetCatalogDeployment(getCatalogDeploymentOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(globalCatalogDeployment).ToNot(BeNil()) + catalogDeploymentIdLink = *globalCatalogDeployment.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogDeploymentIdLink value: %v\n", catalogDeploymentIdLink) }) }) @@ -978,8 +959,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiStringsContentModel := &partnercentersellv1.GlobalCatalogMetadataUIStringsContent{ - Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, - Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + Bullets: []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel}, + Media: []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel}, + EmbeddableDashboard: core.StringPtr("testString"), } globalCatalogMetadataUiStringsModel := &partnercentersellv1.GlobalCatalogMetadataUIStrings{ @@ -987,8 +969,13 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataUiUrlsModel := &partnercentersellv1.GlobalCatalogMetadataUIUrls{ - DocURL: core.StringPtr("https://http.cat/doc"), - TermsURL: core.StringPtr("https://http.cat/elua"), + DocURL: core.StringPtr("https://http.cat/doc"), + ApidocsURL: core.StringPtr("https://http.cat/doc"), + TermsURL: core.StringPtr("https://http.cat/doc"), + InstructionsURL: core.StringPtr("https://http.cat/doc"), + CatalogDetailsURL: core.StringPtr("https://http.cat/doc"), + CustomCreatePageURL: core.StringPtr("https://http.cat/doc"), + Dashboard: core.StringPtr("https://http.cat/doc"), } globalCatalogMetadataUiModel := &partnercentersellv1.GlobalCatalogMetadataUI{ @@ -999,21 +986,37 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } globalCatalogMetadataServiceModel := &partnercentersellv1.GlobalCatalogMetadataService{ - RcProvisionable: core.BoolPtr(true), - IamCompatible: core.BoolPtr(true), + RcProvisionable: core.BoolPtr(true), + IamCompatible: core.BoolPtr(true), + Bindable: core.BoolPtr(true), + PlanUpdateable: core.BoolPtr(true), + ServiceKeySupported: core.BoolPtr(true), + } + + globalCatalogMetadataDeploymentBrokerModel := &partnercentersellv1.GlobalCatalogMetadataDeploymentBroker{ + Name: core.StringPtr("another-broker"), + Guid: core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf"), + } + + globalCatalogMetadataDeploymentModel := &partnercentersellv1.GlobalCatalogMetadataDeployment{ + Broker: globalCatalogMetadataDeploymentBrokerModel, + Location: core.StringPtr("eu-gb"), + LocationURL: core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb"), + TargetCrn: core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb"), } globalCatalogDeploymentMetadataModel := &partnercentersellv1.GlobalCatalogDeploymentMetadata{ RcCompatible: core.BoolPtr(true), Ui: globalCatalogMetadataUiModel, Service: globalCatalogMetadataServiceModel, + Deployment: globalCatalogMetadataDeploymentModel, } globalCatalogDeploymentPatchModel := &partnercentersellv1.GlobalCatalogDeploymentPatch{ Active: core.BoolPtr(true), Disabled: core.BoolPtr(false), OverviewUi: globalCatalogOverviewUiModel, - Tags: []string{"tag"}, + Tags: []string{"testString"}, ObjectProvider: catalogProductProviderModel, Metadata: globalCatalogDeploymentMetadataModel, } @@ -1022,9 +1025,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { updateCatalogDeploymentOptions := &partnercentersellv1.UpdateCatalogDeploymentOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), - CatalogDeploymentID: core.StringPtr(catalogDeploymentId), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, + CatalogDeploymentID: &catalogDeploymentIdLink, GlobalCatalogDeploymentPatch: globalCatalogDeploymentPatchModelAsPatch, Env: core.StringPtr(env), } @@ -1033,6 +1036,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(globalCatalogDeployment).ToNot(BeNil()) + + catalogDeploymentIdLink = *globalCatalogDeployment.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogDeploymentIdLink value: %v\n", catalogDeploymentIdLink) }) }) @@ -1088,7 +1094,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { AccountID: core.StringPtr("testString"), ServiceName: core.StringPtr(iamServiceRegistrationId), } - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testString", core.StringPtr("testString")) + iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testString", core.StringPtr("foo")) iamServiceRegistrationSupportedAnonymousAccessModel := &partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{ Attributes: iamServiceRegistrationSupportedAnonymousAccessAttributesModel, @@ -1124,8 +1130,8 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } supportedAttributeUiInputGstModel := &partnercentersellv1.SupportedAttributeUiInputGst{ - Query: core.StringPtr("query"), - ValuePropertyName: core.StringPtr("teststring"), + Query: core.StringPtr("testString"), + ValuePropertyName: core.StringPtr("testString"), InputOptionLabel: core.StringPtr("{name} - {instance_id}"), } @@ -1159,7 +1165,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } supportedRoleOptionsModel := &partnercentersellv1.SupportedRoleOptions{ - AccessPolicy: map[string]string{"key1": "testString"}, + AccessPolicy: core.BoolPtr(true), PolicyType: []string{"access"}, } @@ -1190,7 +1196,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Enabled: core.BoolPtr(true), ServiceType: core.StringPtr("service"), Actions: []partnercentersellv1.IamServiceRegistrationAction{*iamServiceRegistrationActionModel}, - ParentIds: []string{catalogProductId}, + ParentIds: []string{"3bee3c3c-998c-432a-adff-b387750ceb49"}, DisplayName: iamServiceRegistrationDisplayNameObjectModel, SupportedAnonymousAccesses: []partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{*iamServiceRegistrationSupportedAnonymousAccessModel}, SupportedAttributes: []partnercentersellv1.IamServiceRegistrationSupportedAttribute{*iamServiceRegistrationSupportedAttributeModel}, @@ -1204,6 +1210,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(iamServiceRegistration).ToNot(BeNil()) + + programmaticNameLink = *iamServiceRegistration.Name + fmt.Fprintf(GinkgoWriter, "Saved programmaticNameLink value: %v\n", programmaticNameLink) }) }) @@ -1259,7 +1268,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { AccountID: core.StringPtr("testString"), ServiceName: core.StringPtr(iamServiceRegistrationId), } - iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testString", core.StringPtr("testString")) + iamServiceRegistrationSupportedAnonymousAccessAttributesModel.SetProperty("testString", core.StringPtr("foo")) iamServiceRegistrationSupportedAnonymousAccessModel := &partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{ Attributes: iamServiceRegistrationSupportedAnonymousAccessAttributesModel, @@ -1330,7 +1339,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } supportedRoleOptionsModel := &partnercentersellv1.SupportedRoleOptions{ - AccessPolicy: map[string]string{"key1": "testString"}, + AccessPolicy: core.BoolPtr(true), PolicyType: []string{"access"}, } @@ -1361,7 +1370,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Actions: []partnercentersellv1.IamServiceRegistrationAction{*iamServiceRegistrationActionModel}, AdditionalPolicyScopes: []string{iamServiceRegistrationId}, DisplayName: iamServiceRegistrationDisplayNameObjectModel, - ParentIds: []string{catalogProductId}, + ParentIds: []string{"3bee3c3c-998c-432a-adff-b387750ceb49"}, SupportedAnonymousAccesses: []partnercentersellv1.IamServiceRegistrationSupportedAnonymousAccess{*iamServiceRegistrationSupportedAnonymousAccessModel}, SupportedAttributes: []partnercentersellv1.IamServiceRegistrationSupportedAttribute{*iamServiceRegistrationSupportedAttributeModel}, SupportedAuthorizationSubjects: []partnercentersellv1.IamServiceRegistrationSupportedAuthorizationSubject{*iamServiceRegistrationSupportedAuthorizationSubjectModel}, @@ -1373,7 +1382,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { updateIamRegistrationOptions := &partnercentersellv1.UpdateIamRegistrationOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - ProgrammaticName: core.StringPtr(iamServiceRegistrationId), + ProgrammaticName: &programmaticNameLink, IamRegistrationPatch: iamServiceRegistrationPatchModelAsPatch, Env: core.StringPtr(env), } @@ -1382,24 +1391,9 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) Expect(iamServiceRegistration).ToNot(BeNil()) - }) - }) - Describe(`GetIamRegistration - Get IAM registration for your service`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`GetIamRegistration(getIamRegistrationOptions *GetIamRegistrationOptions)`, func() { - getIamRegistrationOptions := &partnercentersellv1.GetIamRegistrationOptions{ - ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - ProgrammaticName: core.StringPtr(iamServiceRegistrationId), - Env: core.StringPtr(env), - } - - iamServiceRegistration, response, err := partnerCenterSellService.GetIamRegistration(getIamRegistrationOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(iamServiceRegistration).ToNot(BeNil()) + programmaticNameLink = *iamServiceRegistration.Name + fmt.Fprintf(GinkgoWriter, "Saved programmaticNameLink value: %v\n", programmaticNameLink) }) }) @@ -1410,13 +1404,12 @@ 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) - brokerUserName := fmt.Sprintf("petra_test_user_name_%s", randomInteger) brokerName := fmt.Sprintf("petra_test_%s", randomInteger) createResourceBrokerOptions := &partnercentersellv1.CreateResourceBrokerOptions{ - AuthUsername: core.StringPtr(brokerUserName), - AuthPassword: core.StringPtr("testString"), - AuthScheme: core.StringPtr("basic"), + AuthUsername: core.StringPtr("apikey"), + AuthPassword: core.StringPtr("0GANZzXiTurnXTF_000-FVk500800sdkrTHAt000y00y"), + AuthScheme: core.StringPtr("bearer"), Name: core.StringPtr(brokerName), BrokerURL: core.StringPtr(brokerUrl), Type: core.StringPtr("provision_through"), @@ -1429,10 +1422,163 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { } broker, response, err := partnerCenterSellService.CreateResourceBroker(createResourceBrokerOptions) - brokerId = *broker.ID Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(201)) Expect(broker).ToNot(BeNil()) + + brokerIdLink = *broker.ID + fmt.Fprintf(GinkgoWriter, "Saved brokerIdLink value: %v\n", brokerIdLink) + }) + }) + + Describe(`GetRegistration - Retrieve a Partner Center - Sell registration`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetRegistration(getRegistrationOptions *GetRegistrationOptions)`, func() { + getRegistrationOptions := &partnercentersellv1.GetRegistrationOptions{ + RegistrationID: ®istrationIdLink, + } + + registration, response, err := partnerCenterSellServiceAlt.GetRegistration(getRegistrationOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(registration).ToNot(BeNil()) + }) + }) + + Describe(`UpdateRegistration - Update a Partner Center - Sell registration`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`UpdateRegistration(updateRegistrationOptions *UpdateRegistrationOptions)`, func() { + primaryContactModel := &partnercentersellv1.PrimaryContact{ + Name: core.StringPtr("Petra"), + Email: core.StringPtr("petra@ibm.com"), + } + + registrationPatchModel := &partnercentersellv1.RegistrationPatch{ + CompanyName: core.StringPtr("company_sdk_new"), + PrimaryContact: primaryContactModel, + } + registrationPatchModelAsPatch, asPatchErr := registrationPatchModel.AsPatch() + Expect(asPatchErr).To(BeNil()) + + updateRegistrationOptions := &partnercentersellv1.UpdateRegistrationOptions{ + RegistrationID: ®istrationIdLink, + RegistrationPatch: registrationPatchModelAsPatch, + } + + registration, response, err := partnerCenterSellServiceAlt.UpdateRegistration(updateRegistrationOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(registration).ToNot(BeNil()) + }) + }) + + Describe(`GetOnboardingProduct - Get an onboarding product`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetOnboardingProduct(getOnboardingProductOptions *GetOnboardingProductOptions)`, func() { + getOnboardingProductOptions := &partnercentersellv1.GetOnboardingProductOptions{ + ProductID: &productIdLink, + } + + onboardingProduct, response, err := partnerCenterSellServiceAlt.GetOnboardingProduct(getOnboardingProductOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(onboardingProduct).ToNot(BeNil()) + + productIdLink = *onboardingProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved productIdLink value: %v\n", productIdLink) + }) + }) + + Describe(`GetCatalogProduct - Get a global catalog product`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetCatalogProduct(getCatalogProductOptions *GetCatalogProductOptions)`, func() { + getCatalogProductOptions := &partnercentersellv1.GetCatalogProductOptions{ + ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), + CatalogProductID: &catalogProductIdLink, + Env: core.StringPtr(env), + } + + globalCatalogProduct, response, err := partnerCenterSellService.GetCatalogProduct(getCatalogProductOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(globalCatalogProduct).ToNot(BeNil()) + + catalogProductIdLink = *globalCatalogProduct.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogProductIdLink value: %v\n", catalogProductIdLink) + }) + }) + + Describe(`GetCatalogPlan - Get a global catalog pricing plan`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetCatalogPlan(getCatalogPlanOptions *GetCatalogPlanOptions)`, func() { + getCatalogPlanOptions := &partnercentersellv1.GetCatalogPlanOptions{ + ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, + Env: core.StringPtr(env), + } + + globalCatalogPlan, response, err := partnerCenterSellService.GetCatalogPlan(getCatalogPlanOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(globalCatalogPlan).ToNot(BeNil()) + + catalogPlanIdLink = *globalCatalogPlan.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogPlanIdLink value: %v\n", catalogPlanIdLink) + }) + }) + + Describe(`GetCatalogDeployment - Get a global catalog deployment`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetCatalogDeployment(getCatalogDeploymentOptions *GetCatalogDeploymentOptions)`, func() { + getCatalogDeploymentOptions := &partnercentersellv1.GetCatalogDeploymentOptions{ + ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, + CatalogDeploymentID: &catalogDeploymentIdLink, + Env: core.StringPtr(env), + } + + globalCatalogDeployment, response, err := partnerCenterSellService.GetCatalogDeployment(getCatalogDeploymentOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(globalCatalogDeployment).ToNot(BeNil()) + + catalogDeploymentIdLink = *globalCatalogDeployment.ID + fmt.Fprintf(GinkgoWriter, "Saved catalogDeploymentIdLink value: %v\n", catalogDeploymentIdLink) + }) + }) + + Describe(`GetIamRegistration - Get IAM registration for your service`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetIamRegistration(getIamRegistrationOptions *GetIamRegistrationOptions)`, func() { + getIamRegistrationOptions := &partnercentersellv1.GetIamRegistrationOptions{ + ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), + ProgrammaticName: core.StringPtr(iamServiceRegistrationId), + Env: core.StringPtr(env), + } + + iamServiceRegistration, response, err := partnerCenterSellService.GetIamRegistration(getIamRegistrationOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(iamServiceRegistration).ToNot(BeNil()) + + programmaticNameLink = *iamServiceRegistration.Name + fmt.Fprintf(GinkgoWriter, "Saved programmaticNameLink value: %v\n", programmaticNameLink) }) }) @@ -1443,14 +1589,12 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { It(`UpdateResourceBroker(updateResourceBrokerOptions *UpdateResourceBrokerOptions)`, func() { var randomInteger = strconv.Itoa(rand.Intn(1000)) brokerUrl := fmt.Sprintf("https://broker-url-for-my-service.com/%s", randomInteger) - brokerUserName := fmt.Sprintf("petra_test_user_name_%s", randomInteger) brokerPatchModel := &partnercentersellv1.BrokerPatch{ - AuthUsername: core.StringPtr(brokerUserName), - AuthPassword: core.StringPtr("testString"), - AuthScheme: core.StringPtr("basic"), + AuthUsername: core.StringPtr("apikey"), + AuthPassword: core.StringPtr("0GANZzXiTurnXTF_000-FVk500800sdkrTHAt000y00y"), + AuthScheme: core.StringPtr("bearer"), 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), @@ -1461,7 +1605,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(asPatchErr).To(BeNil()) updateResourceBrokerOptions := &partnercentersellv1.UpdateResourceBrokerOptions{ - BrokerID: core.StringPtr(brokerId), + BrokerID: &brokerIdLink, BrokerPatch: brokerPatchModelAsPatch, Env: core.StringPtr(env), } @@ -1479,7 +1623,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { }) It(`GetResourceBroker(getResourceBrokerOptions *GetResourceBrokerOptions)`, func() { getResourceBrokerOptions := &partnercentersellv1.GetResourceBrokerOptions{ - BrokerID: core.StringPtr(brokerId), + BrokerID: &brokerIdLink, Env: core.StringPtr(env), } @@ -1490,18 +1634,36 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { }) }) - Describe(`DeleteOnboardingProduct - Delete an onboarding product`, func() { + Describe(`ListProductBadges - List badges`, func() { BeforeEach(func() { shouldSkipTest() }) - It(`DeleteOnboardingProduct(deleteOnboardingProductOptions *DeleteOnboardingProductOptions)`, func() { - deleteOnboardingProductOptions := &partnercentersellv1.DeleteOnboardingProductOptions{ - ProductID: core.StringPtr(productId), + It(`ListProductBadges(listProductBadgesOptions *ListProductBadgesOptions)`, func() { + listProductBadgesOptions := &partnercentersellv1.ListProductBadgesOptions{ + Limit: core.Int64Ptr(int64(100)), + Start: CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673"), } - response, err := partnerCenterSellService.DeleteOnboardingProduct(deleteOnboardingProductOptions) + productBadgeCollection, response, err := partnerCenterSellService.ListProductBadges(listProductBadgesOptions) Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(204)) + Expect(response.StatusCode).To(Equal(200)) + Expect(productBadgeCollection).ToNot(BeNil()) + }) + }) + + Describe(`GetProductBadge - Get badge`, func() { + BeforeEach(func() { + shouldSkipTest() + }) + It(`GetProductBadge(getProductBadgeOptions *GetProductBadgeOptions)`, func() { + getProductBadgeOptions := &partnercentersellv1.GetProductBadgeOptions{ + BadgeID: CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673"), + } + + productBadge, response, err := partnerCenterSellService.GetProductBadge(getProductBadgeOptions) + Expect(err).To(BeNil()) + Expect(response.StatusCode).To(Equal(200)) + Expect(productBadge).ToNot(BeNil()) }) }) Describe(`DeleteCatalogDeployment - Delete a global catalog deployment`, func() { @@ -1511,18 +1673,16 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { It(`DeleteCatalogDeployment(deleteCatalogDeploymentOptions *DeleteCatalogDeploymentOptions)`, func() { deleteCatalogDeploymentOptions := &partnercentersellv1.DeleteCatalogDeploymentOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), - CatalogDeploymentID: core.StringPtr(catalogDeploymentId), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, + CatalogDeploymentID: &catalogDeploymentIdLink, Env: core.StringPtr(env), } - response, err := partnerCenterSellService.DeleteCatalogDeployment(deleteCatalogDeploymentOptions) Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) }) }) - Describe(`DeleteCatalogPlan - Delete a global catalog pricing plan`, func() { BeforeEach(func() { shouldSkipTest() @@ -1530,8 +1690,8 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { It(`DeleteCatalogPlan(deleteCatalogPlanOptions *DeleteCatalogPlanOptions)`, func() { deleteCatalogPlanOptions := &partnercentersellv1.DeleteCatalogPlanOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), - CatalogPlanID: core.StringPtr(catalogPlanId), + CatalogProductID: &catalogProductIdLink, + CatalogPlanID: &catalogPlanIdLink, Env: core.StringPtr(env), } @@ -1540,24 +1700,6 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { Expect(response.StatusCode).To(Equal(204)) }) }) - - Describe(`DeleteIamRegistration - Delete IAM registration for your service`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`DeleteIamRegistration(deleteIamRegistrationOptions *DeleteIamRegistrationOptions)`, func() { - deleteIamRegistrationOptions := &partnercentersellv1.DeleteIamRegistrationOptions{ - ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - ProgrammaticName: core.StringPtr(iamServiceRegistrationId), - Env: core.StringPtr(env), - } - - response, err := partnerCenterSellService.DeleteIamRegistration(deleteIamRegistrationOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(204)) - }) - }) - Describe(`DeleteCatalogProduct - Delete a global catalog product`, func() { BeforeEach(func() { shouldSkipTest() @@ -1565,7 +1707,7 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { It(`DeleteCatalogProduct(deleteCatalogProductOptions *DeleteCatalogProductOptions)`, func() { deleteCatalogProductOptions := &partnercentersellv1.DeleteCatalogProductOptions{ ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), - CatalogProductID: core.StringPtr(catalogProductId), + CatalogProductID: &catalogProductIdLink, Env: core.StringPtr(env), } @@ -1575,107 +1717,65 @@ var _ = Describe(`PartnerCenterSellV1 Integration Tests`, func() { }) }) - Describe(`DeleteResourceBroker - Remove a broker`, func() { + Describe(`DeleteIamRegistration - Delete IAM registration for your service`, func() { BeforeEach(func() { shouldSkipTest() }) - It(`DeleteResourceBroker(deleteResourceBrokerOptions *DeleteResourceBrokerOptions)`, func() { - deleteResourceBrokerOptions := &partnercentersellv1.DeleteResourceBrokerOptions{ - BrokerID: core.StringPtr(brokerId), - Env: core.StringPtr(env), - RemoveFromAccount: core.BoolPtr(true), + It(`DeleteIamRegistration(deleteIamRegistrationOptions *DeleteIamRegistrationOptions)`, func() { + deleteIamRegistrationOptions := &partnercentersellv1.DeleteIamRegistrationOptions{ + ProductID: core.StringPtr(productIdWithApprovedProgrammaticName), + ProgrammaticName: core.StringPtr(iamServiceRegistrationId), + Env: core.StringPtr(env), } - response, err := partnerCenterSellService.DeleteResourceBroker(deleteResourceBrokerOptions) + response, err := partnerCenterSellService.DeleteIamRegistration(deleteIamRegistrationOptions) Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(204)) }) }) - It("Login to account containing badges", func() { - var err error - - // begin-reauth - const externalConfigFile2 = "../partner_center_sell_badged_user_v1.env" - os.Setenv("IBM_CREDENTIALS_FILE", externalConfigFile2) - - partnerCenterSellServiceOptions := &partnercentersellv1.PartnerCenterSellV1Options{} - - partnerCenterSellService, err = partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(partnerCenterSellServiceOptions) - - if err != nil { - panic(err) - } - - // end-reauth - - Expect(err).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - core.SetLogger(core.NewLogger(core.LevelDebug, log.New(GinkgoWriter, "", log.LstdFlags), log.New(GinkgoWriter, "", log.LstdFlags))) - partnerCenterSellService.EnableRetries(4, 30*time.Second) - }) - - Describe(`ListProductBadges - List badges`, func() { - BeforeEach(func() { - shouldSkipTest() - }) - It(`ListProductBadges(listProductBadgesOptions *ListProductBadgesOptions)`, func() { - listProductBadgesOptions := &partnercentersellv1.ListProductBadgesOptions{} - - productBadgeCollection, response, err := partnerCenterSellService.ListProductBadges(listProductBadgesOptions) - Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(productBadgeCollection).ToNot(BeNil()) - }) - }) - - Describe(`GetProductBadge - Get badge`, func() { + Describe(`DeleteOnboardingProduct - Delete an onboarding product`, func() { BeforeEach(func() { shouldSkipTest() }) - It(`GetProductBadge(getProductBadgeOptions *GetProductBadgeOptions)`, func() { - getProductBadgeOptions := &partnercentersellv1.GetProductBadgeOptions{ - BadgeID: CreateMockUUID(badgeId), + It(`DeleteOnboardingProduct(deleteOnboardingProductOptions *DeleteOnboardingProductOptions)`, func() { + deleteOnboardingProductOptions := &partnercentersellv1.DeleteOnboardingProductOptions{ + ProductID: &productIdLink, } - productBadge, response, err := partnerCenterSellService.GetProductBadge(getProductBadgeOptions) + response, err := partnerCenterSellServiceAlt.DeleteOnboardingProduct(deleteOnboardingProductOptions) Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(productBadge).ToNot(BeNil()) + Expect(response.StatusCode).To(Equal(204)) }) }) - - Describe(`ListBadges - List badges`, func() { + Describe(`DeleteRegistration - Delete your registration in Partner - Center Sell`, func() { BeforeEach(func() { shouldSkipTest() }) - It(`ListBadges(listBadgesOptions *ListBadgesOptions)`, func() { - listBadgesOptions := &partnercentersellv1.ListBadgesOptions{ - Limit: core.Int64Ptr(int64(100)), - Start: CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673"), + It(`DeleteRegistration(deleteRegistrationOptions *DeleteRegistrationOptions)`, func() { + deleteRegistrationOptions := &partnercentersellv1.DeleteRegistrationOptions{ + RegistrationID: ®istrationIdLink, } - cloudBadges, response, err := partnerCenterSellService.ListBadges(listBadgesOptions) + response, err := partnerCenterSellServiceAlt.DeleteRegistration(deleteRegistrationOptions) Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(cloudBadges).ToNot(BeNil()) + Expect(response.StatusCode).To(Equal(204)) }) }) - - Describe(`GetBadge - Get badge`, func() { + Describe(`DeleteResourceBroker - Remove a broker`, func() { BeforeEach(func() { shouldSkipTest() }) - It(`GetBadge(getBadgeOptions *GetBadgeOptions)`, func() { - getBadgeOptions := &partnercentersellv1.GetBadgeOptions{ - BadgeID: CreateMockUUID(badgeId), + It(`DeleteResourceBroker(deleteResourceBrokerOptions *DeleteResourceBrokerOptions)`, func() { + deleteResourceBrokerOptions := &partnercentersellv1.DeleteResourceBrokerOptions{ + BrokerID: &brokerIdLink, + Env: core.StringPtr(env), + RemoveFromAccount: core.BoolPtr(true), } - cloudBadge, response, err := partnerCenterSellService.GetBadge(getBadgeOptions) + response, err := partnerCenterSellService.DeleteResourceBroker(deleteResourceBrokerOptions) Expect(err).To(BeNil()) - Expect(response.StatusCode).To(Equal(200)) - Expect(cloudBadge).ToNot(BeNil()) + Expect(response.StatusCode).To(Equal(204)) }) }) }) diff --git a/partnercentersellv1/partner_center_sell_v1_test.go b/partnercentersellv1/partner_center_sell_v1_test.go index bcf432a6..1d7b84c5 100644 --- a/partnercentersellv1/partner_center_sell_v1_test.go +++ b/partnercentersellv1/partner_center_sell_v1_test.go @@ -68,14 +68,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Context(`Using external config, construct service client instances`, func() { // Map containing environment variables used in testing. var testEnvironment = map[string]string{ - "PARTNER_CENTER_SELL_URL": "https://partnercentersellv1/api", + "PARTNER_CENTER_SELL_URL": "https://partnercentersellv1/api", "PARTNER_CENTER_SELL_AUTH_TYPE": "noauth", } It(`Create service client using external config successfully`, func() { SetTestEnvironment(testEnvironment) - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(&partnercentersellv1.PartnerCenterSellV1Options{ - }) + partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(&partnercentersellv1.PartnerCenterSellV1Options{}) Expect(partnerCenterSellService).ToNot(BeNil()) Expect(serviceErr).To(BeNil()) ClearTestEnvironment(testEnvironment) @@ -104,8 +103,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { }) It(`Create service client using external config and set url programatically successfully`, func() { SetTestEnvironment(testEnvironment) - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(&partnercentersellv1.PartnerCenterSellV1Options{ - }) + partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(&partnercentersellv1.PartnerCenterSellV1Options{}) err := partnerCenterSellService.SetServiceURL("https://testService/api") Expect(err).To(BeNil()) Expect(partnerCenterSellService).ToNot(BeNil()) @@ -123,13 +121,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Context(`Using external config, construct service client instances with error: Invalid Auth`, func() { // Map containing environment variables used in testing. var testEnvironment = map[string]string{ - "PARTNER_CENTER_SELL_URL": "https://partnercentersellv1/api", + "PARTNER_CENTER_SELL_URL": "https://partnercentersellv1/api", "PARTNER_CENTER_SELL_AUTH_TYPE": "someOtherAuth", } SetTestEnvironment(testEnvironment) - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(&partnercentersellv1.PartnerCenterSellV1Options{ - }) + partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1UsingExternalConfig(&partnercentersellv1.PartnerCenterSellV1Options{}) It(`Instantiate service client with error`, func() { Expect(partnerCenterSellService).To(BeNil()) @@ -140,7 +137,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Context(`Using external config, construct service client instances with error: Invalid URL`, func() { // Map containing environment variables used in testing. var testEnvironment = map[string]string{ - "PARTNER_CENTER_SELL_AUTH_TYPE": "NOAuth", + "PARTNER_CENTER_SELL_AUTH_TYPE": "NOAuth", } SetTestEnvironment(testEnvironment) @@ -190,13 +187,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("Company Representative") + primaryContactModel.Email = core.StringPtr("companyrep@email.com") // Construct an instance of the CreateRegistrationOptions model createRegistrationOptionsModel := new(partnercentersellv1.CreateRegistrationOptions) - createRegistrationOptionsModel.AccountID = core.StringPtr("testString") - createRegistrationOptionsModel.CompanyName = core.StringPtr("testString") + createRegistrationOptionsModel.AccountID = core.StringPtr("4a5c3c51b97a446fbb1d0e1ef089823b") + createRegistrationOptionsModel.CompanyName = core.StringPtr("Beautiful Company") createRegistrationOptionsModel.PrimaryContact = primaryContactModel createRegistrationOptionsModel.DefaultPrivateCatalogID = core.StringPtr("testString") createRegistrationOptionsModel.ProviderAccessGroup = core.StringPtr("testString") @@ -252,7 +249,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "account_dra_id": "AccountDraID", "account_dpa_id": "AccountDpaID", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) })) }) It(`Invoke CreateRegistration successfully with retries`, func() { @@ -266,13 +263,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("Company Representative") + primaryContactModel.Email = core.StringPtr("companyrep@email.com") // Construct an instance of the CreateRegistrationOptions model createRegistrationOptionsModel := new(partnercentersellv1.CreateRegistrationOptions) - createRegistrationOptionsModel.AccountID = core.StringPtr("testString") - createRegistrationOptionsModel.CompanyName = core.StringPtr("testString") + createRegistrationOptionsModel.AccountID = core.StringPtr("4a5c3c51b97a446fbb1d0e1ef089823b") + createRegistrationOptionsModel.CompanyName = core.StringPtr("Beautiful Company") createRegistrationOptionsModel.PrimaryContact = primaryContactModel createRegistrationOptionsModel.DefaultPrivateCatalogID = core.StringPtr("testString") createRegistrationOptionsModel.ProviderAccessGroup = core.StringPtr("testString") @@ -331,7 +328,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "account_dra_id": "AccountDraID", "account_dpa_id": "AccountDpaID", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) })) }) It(`Invoke CreateRegistration successfully`, func() { @@ -350,13 +347,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("Company Representative") + primaryContactModel.Email = core.StringPtr("companyrep@email.com") // Construct an instance of the CreateRegistrationOptions model createRegistrationOptionsModel := new(partnercentersellv1.CreateRegistrationOptions) - createRegistrationOptionsModel.AccountID = core.StringPtr("testString") - createRegistrationOptionsModel.CompanyName = core.StringPtr("testString") + createRegistrationOptionsModel.AccountID = core.StringPtr("4a5c3c51b97a446fbb1d0e1ef089823b") + createRegistrationOptionsModel.CompanyName = core.StringPtr("Beautiful Company") createRegistrationOptionsModel.PrimaryContact = primaryContactModel createRegistrationOptionsModel.DefaultPrivateCatalogID = core.StringPtr("testString") createRegistrationOptionsModel.ProviderAccessGroup = core.StringPtr("testString") @@ -379,13 +376,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("Company Representative") + primaryContactModel.Email = core.StringPtr("companyrep@email.com") // Construct an instance of the CreateRegistrationOptions model createRegistrationOptionsModel := new(partnercentersellv1.CreateRegistrationOptions) - createRegistrationOptionsModel.AccountID = core.StringPtr("testString") - createRegistrationOptionsModel.CompanyName = core.StringPtr("testString") + createRegistrationOptionsModel.AccountID = core.StringPtr("4a5c3c51b97a446fbb1d0e1ef089823b") + createRegistrationOptionsModel.CompanyName = core.StringPtr("Beautiful Company") createRegistrationOptionsModel.PrimaryContact = primaryContactModel createRegistrationOptionsModel.DefaultPrivateCatalogID = core.StringPtr("testString") createRegistrationOptionsModel.ProviderAccessGroup = core.StringPtr("testString") @@ -429,13 +426,13 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("Company Representative") + primaryContactModel.Email = core.StringPtr("companyrep@email.com") // Construct an instance of the CreateRegistrationOptions model createRegistrationOptionsModel := new(partnercentersellv1.CreateRegistrationOptions) - createRegistrationOptionsModel.AccountID = core.StringPtr("testString") - createRegistrationOptionsModel.CompanyName = core.StringPtr("testString") + createRegistrationOptionsModel.AccountID = core.StringPtr("4a5c3c51b97a446fbb1d0e1ef089823b") + createRegistrationOptionsModel.CompanyName = core.StringPtr("Beautiful Company") createRegistrationOptionsModel.PrimaryContact = primaryContactModel createRegistrationOptionsModel.DefaultPrivateCatalogID = core.StringPtr("testString") createRegistrationOptionsModel.ProviderAccessGroup = core.StringPtr("testString") @@ -516,7 +513,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "account_dra_id": "AccountDraID", "account_dpa_id": "AccountDpaID", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) })) }) It(`Invoke GetRegistration successfully with retries`, func() { @@ -570,7 +567,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "account_dra_id": "AccountDraID", "account_dpa_id": "AccountDpaID", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) })) }) It(`Invoke GetRegistration successfully`, func() { @@ -759,7 +756,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "account_dra_id": "AccountDraID", "account_dpa_id": "AccountDpaID", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) })) }) It(`Invoke UpdateRegistration successfully with retries`, func() { @@ -844,7 +841,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "account_dra_id": "AccountDraID", "account_dpa_id": "AccountDpaID", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "company_name": "CompanyName", "primary_contact": {"name": "Name", "email": "Email"}, "default_private_catalog_id": "DefaultPrivateCatalogID", "provider_access_group": "ProviderAccessGroup", "created_at": "CreatedAt", "updated_at": "UpdatedAt"}`) })) }) It(`Invoke UpdateRegistration successfully`, func() { @@ -1078,8 +1075,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("name") + primaryContactModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the OnboardingProductSupportEscalationContactItems model onboardingProductSupportEscalationContactItemsModel := new(partnercentersellv1.OnboardingProductSupportEscalationContactItems) @@ -1093,7 +1090,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateOnboardingProductOptions model createOnboardingProductOptionsModel := new(partnercentersellv1.CreateOnboardingProductOptions) - createOnboardingProductOptionsModel.Type = core.StringPtr("software") + createOnboardingProductOptionsModel.Type = core.StringPtr("service") createOnboardingProductOptionsModel.PrimaryContact = primaryContactModel createOnboardingProductOptionsModel.EccnNumber = core.StringPtr("testString") createOnboardingProductOptionsModel.EroClass = core.StringPtr("testString") @@ -1152,7 +1149,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "iam_registration_id": "IamRegistrationID", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) })) }) It(`Invoke CreateOnboardingProduct successfully with retries`, func() { @@ -1166,8 +1163,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("name") + primaryContactModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the OnboardingProductSupportEscalationContactItems model onboardingProductSupportEscalationContactItemsModel := new(partnercentersellv1.OnboardingProductSupportEscalationContactItems) @@ -1181,7 +1178,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateOnboardingProductOptions model createOnboardingProductOptionsModel := new(partnercentersellv1.CreateOnboardingProductOptions) - createOnboardingProductOptionsModel.Type = core.StringPtr("software") + createOnboardingProductOptionsModel.Type = core.StringPtr("service") createOnboardingProductOptionsModel.PrimaryContact = primaryContactModel createOnboardingProductOptionsModel.EccnNumber = core.StringPtr("testString") createOnboardingProductOptionsModel.EroClass = core.StringPtr("testString") @@ -1243,7 +1240,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "iam_registration_id": "IamRegistrationID", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) })) }) It(`Invoke CreateOnboardingProduct successfully`, func() { @@ -1262,8 +1259,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("name") + primaryContactModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the OnboardingProductSupportEscalationContactItems model onboardingProductSupportEscalationContactItemsModel := new(partnercentersellv1.OnboardingProductSupportEscalationContactItems) @@ -1277,7 +1274,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateOnboardingProductOptions model createOnboardingProductOptionsModel := new(partnercentersellv1.CreateOnboardingProductOptions) - createOnboardingProductOptionsModel.Type = core.StringPtr("software") + createOnboardingProductOptionsModel.Type = core.StringPtr("service") createOnboardingProductOptionsModel.PrimaryContact = primaryContactModel createOnboardingProductOptionsModel.EccnNumber = core.StringPtr("testString") createOnboardingProductOptionsModel.EroClass = core.StringPtr("testString") @@ -1303,8 +1300,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("name") + primaryContactModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the OnboardingProductSupportEscalationContactItems model onboardingProductSupportEscalationContactItemsModel := new(partnercentersellv1.OnboardingProductSupportEscalationContactItems) @@ -1318,7 +1315,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateOnboardingProductOptions model createOnboardingProductOptionsModel := new(partnercentersellv1.CreateOnboardingProductOptions) - createOnboardingProductOptionsModel.Type = core.StringPtr("software") + createOnboardingProductOptionsModel.Type = core.StringPtr("service") createOnboardingProductOptionsModel.PrimaryContact = primaryContactModel createOnboardingProductOptionsModel.EccnNumber = core.StringPtr("testString") createOnboardingProductOptionsModel.EroClass = core.StringPtr("testString") @@ -1365,8 +1362,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") + primaryContactModel.Name = core.StringPtr("name") + primaryContactModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the OnboardingProductSupportEscalationContactItems model onboardingProductSupportEscalationContactItemsModel := new(partnercentersellv1.OnboardingProductSupportEscalationContactItems) @@ -1380,7 +1377,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateOnboardingProductOptions model createOnboardingProductOptionsModel := new(partnercentersellv1.CreateOnboardingProductOptions) - createOnboardingProductOptionsModel.Type = core.StringPtr("software") + createOnboardingProductOptionsModel.Type = core.StringPtr("service") createOnboardingProductOptionsModel.PrimaryContact = primaryContactModel createOnboardingProductOptionsModel.EccnNumber = core.StringPtr("testString") createOnboardingProductOptionsModel.EroClass = core.StringPtr("testString") @@ -1464,7 +1461,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "iam_registration_id": "IamRegistrationID", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) })) }) It(`Invoke GetOnboardingProduct successfully with retries`, func() { @@ -1518,7 +1515,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "iam_registration_id": "IamRegistrationID", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) })) }) It(`Invoke GetOnboardingProduct successfully`, func() { @@ -1657,7 +1654,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { onboardingProductPatchModel.PrimaryContact = primaryContactModel onboardingProductPatchModel.EccnNumber = core.StringPtr("testString") onboardingProductPatchModel.EroClass = core.StringPtr("testString") - onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(72.5)) + onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(12345)) onboardingProductPatchModel.TaxAssessment = core.StringPtr("testString") onboardingProductPatchModel.Support = onboardingProductSupportModel onboardingProductPatchModelAsPatch, asPatchErr := onboardingProductPatchModel.AsPatch() @@ -1719,7 +1716,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "iam_registration_id": "IamRegistrationID", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) })) }) It(`Invoke UpdateOnboardingProduct successfully with retries`, func() { @@ -1751,7 +1748,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { onboardingProductPatchModel.PrimaryContact = primaryContactModel onboardingProductPatchModel.EccnNumber = core.StringPtr("testString") onboardingProductPatchModel.EroClass = core.StringPtr("testString") - onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(72.5)) + onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(12345)) onboardingProductPatchModel.TaxAssessment = core.StringPtr("testString") onboardingProductPatchModel.Support = onboardingProductSupportModel onboardingProductPatchModelAsPatch, asPatchErr := onboardingProductPatchModel.AsPatch() @@ -1816,7 +1813,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "account_id": "AccountID", "type": "software", "primary_contact": {"name": "Name", "email": "Email"}, "private_catalog_id": "PrivateCatalogID", "private_catalog_offering_id": "PrivateCatalogOfferingID", "global_catalog_offering_id": "GlobalCatalogOfferingID", "staging_global_catalog_offering_id": "StagingGlobalCatalogOfferingID", "approver_resource_id": "4eb40ee6-d5d6-4328-a52e-06654eab8775", "iam_registration_id": "IamRegistrationID", "eccn_number": "EccnNumber", "ero_class": "EroClass", "unspsc": 6, "tax_assessment": "TaxAssessment", "support": {"escalation_contacts": [{"name": "Name", "email": "Email", "role": "Role"}]}}`) })) }) It(`Invoke UpdateOnboardingProduct successfully`, func() { @@ -1853,7 +1850,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { onboardingProductPatchModel.PrimaryContact = primaryContactModel onboardingProductPatchModel.EccnNumber = core.StringPtr("testString") onboardingProductPatchModel.EroClass = core.StringPtr("testString") - onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(72.5)) + onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(12345)) onboardingProductPatchModel.TaxAssessment = core.StringPtr("testString") onboardingProductPatchModel.Support = onboardingProductSupportModel onboardingProductPatchModelAsPatch, asPatchErr := onboardingProductPatchModel.AsPatch() @@ -1900,7 +1897,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { onboardingProductPatchModel.PrimaryContact = primaryContactModel onboardingProductPatchModel.EccnNumber = core.StringPtr("testString") onboardingProductPatchModel.EroClass = core.StringPtr("testString") - onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(72.5)) + onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(12345)) onboardingProductPatchModel.TaxAssessment = core.StringPtr("testString") onboardingProductPatchModel.Support = onboardingProductSupportModel onboardingProductPatchModelAsPatch, asPatchErr := onboardingProductPatchModel.AsPatch() @@ -1968,7 +1965,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { onboardingProductPatchModel.PrimaryContact = primaryContactModel onboardingProductPatchModel.EccnNumber = core.StringPtr("testString") onboardingProductPatchModel.EroClass = core.StringPtr("testString") - onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(72.5)) + onboardingProductPatchModel.Unspsc = core.Float64Ptr(float64(12345)) onboardingProductPatchModel.TaxAssessment = core.StringPtr("testString") onboardingProductPatchModel.Support = onboardingProductSupportModel onboardingProductPatchModelAsPatch, asPatchErr := onboardingProductPatchModel.AsPatch() @@ -2087,14 +2084,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My product display name.") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My product description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My product description long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -2123,6 +2120,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -2131,7 +2129,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -2144,6 +2147,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2191,9 +2197,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -2205,11 +2223,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateCatalogProductOptions model createCatalogProductOptionsModel := new(partnercentersellv1.CreateCatalogProductOptions) createCatalogProductOptionsModel.ProductID = core.StringPtr("testString") - createCatalogProductOptionsModel.Name = core.StringPtr("testString") + createCatalogProductOptionsModel.Name = core.StringPtr("1p-service-08-06") createCatalogProductOptionsModel.Active = core.BoolPtr(true) - createCatalogProductOptionsModel.Disabled = core.BoolPtr(true) + createCatalogProductOptionsModel.Disabled = core.BoolPtr(false) createCatalogProductOptionsModel.Kind = core.StringPtr("service") - createCatalogProductOptionsModel.Tags = []string{"testString"} + createCatalogProductOptionsModel.Tags = []string{"keyword", "support_ibm"} createCatalogProductOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogProductOptionsModel.ID = core.StringPtr("testString") createCatalogProductOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -2269,7 +2287,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": 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}}]}}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}}}`) })) }) It(`Invoke CreateCatalogProduct successfully with retries`, func() { @@ -2283,14 +2301,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My product display name.") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My product description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My product description long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -2319,6 +2337,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -2327,7 +2346,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -2340,6 +2364,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2387,9 +2414,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -2401,11 +2440,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateCatalogProductOptions model createCatalogProductOptionsModel := new(partnercentersellv1.CreateCatalogProductOptions) createCatalogProductOptionsModel.ProductID = core.StringPtr("testString") - createCatalogProductOptionsModel.Name = core.StringPtr("testString") + createCatalogProductOptionsModel.Name = core.StringPtr("1p-service-08-06") createCatalogProductOptionsModel.Active = core.BoolPtr(true) - createCatalogProductOptionsModel.Disabled = core.BoolPtr(true) + createCatalogProductOptionsModel.Disabled = core.BoolPtr(false) createCatalogProductOptionsModel.Kind = core.StringPtr("service") - createCatalogProductOptionsModel.Tags = []string{"testString"} + createCatalogProductOptionsModel.Tags = []string{"keyword", "support_ibm"} createCatalogProductOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogProductOptionsModel.ID = core.StringPtr("testString") createCatalogProductOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -2468,7 +2507,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": 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}}]}}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}}}`) })) }) It(`Invoke CreateCatalogProduct successfully`, func() { @@ -2487,14 +2526,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My product display name.") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My product description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My product description long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -2523,6 +2562,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -2531,7 +2571,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -2544,6 +2589,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2591,9 +2639,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -2605,11 +2665,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateCatalogProductOptions model createCatalogProductOptionsModel := new(partnercentersellv1.CreateCatalogProductOptions) createCatalogProductOptionsModel.ProductID = core.StringPtr("testString") - createCatalogProductOptionsModel.Name = core.StringPtr("testString") + createCatalogProductOptionsModel.Name = core.StringPtr("1p-service-08-06") createCatalogProductOptionsModel.Active = core.BoolPtr(true) - createCatalogProductOptionsModel.Disabled = core.BoolPtr(true) + createCatalogProductOptionsModel.Disabled = core.BoolPtr(false) createCatalogProductOptionsModel.Kind = core.StringPtr("service") - createCatalogProductOptionsModel.Tags = []string{"testString"} + createCatalogProductOptionsModel.Tags = []string{"keyword", "support_ibm"} createCatalogProductOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogProductOptionsModel.ID = core.StringPtr("testString") createCatalogProductOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -2635,14 +2695,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My product display name.") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My product description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My product description long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -2671,6 +2731,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -2679,7 +2740,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -2692,6 +2758,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2739,9 +2808,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -2753,11 +2834,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateCatalogProductOptions model createCatalogProductOptionsModel := new(partnercentersellv1.CreateCatalogProductOptions) createCatalogProductOptionsModel.ProductID = core.StringPtr("testString") - createCatalogProductOptionsModel.Name = core.StringPtr("testString") + createCatalogProductOptionsModel.Name = core.StringPtr("1p-service-08-06") createCatalogProductOptionsModel.Active = core.BoolPtr(true) - createCatalogProductOptionsModel.Disabled = core.BoolPtr(true) + createCatalogProductOptionsModel.Disabled = core.BoolPtr(false) createCatalogProductOptionsModel.Kind = core.StringPtr("service") - createCatalogProductOptionsModel.Tags = []string{"testString"} + createCatalogProductOptionsModel.Tags = []string{"keyword", "support_ibm"} createCatalogProductOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogProductOptionsModel.ID = core.StringPtr("testString") createCatalogProductOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -2804,14 +2885,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My product display name.") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My product description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My product description long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -2840,6 +2921,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -2848,7 +2930,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -2861,6 +2948,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -2908,9 +2998,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -2922,11 +3024,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateCatalogProductOptions model createCatalogProductOptionsModel := new(partnercentersellv1.CreateCatalogProductOptions) createCatalogProductOptionsModel.ProductID = core.StringPtr("testString") - createCatalogProductOptionsModel.Name = core.StringPtr("testString") + createCatalogProductOptionsModel.Name = core.StringPtr("1p-service-08-06") createCatalogProductOptionsModel.Active = core.BoolPtr(true) - createCatalogProductOptionsModel.Disabled = core.BoolPtr(true) + createCatalogProductOptionsModel.Disabled = core.BoolPtr(false) createCatalogProductOptionsModel.Kind = core.StringPtr("service") - createCatalogProductOptionsModel.Tags = []string{"testString"} + createCatalogProductOptionsModel.Tags = []string{"keyword", "support_ibm"} createCatalogProductOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogProductOptionsModel.ID = core.StringPtr("testString") createCatalogProductOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -3014,7 +3116,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": 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}}]}}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}}}`) })) }) It(`Invoke GetCatalogProduct successfully with retries`, func() { @@ -3071,7 +3173,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": 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}}]}}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}}}`) })) }) It(`Invoke GetCatalogProduct successfully`, func() { @@ -3199,7 +3301,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My updated display name.") globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") @@ -3235,6 +3337,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -3243,7 +3346,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -3256,6 +3364,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3303,9 +3414,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -3385,7 +3508,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": 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}}]}}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}}}`) })) }) It(`Invoke UpdateCatalogProduct successfully with retries`, func() { @@ -3399,7 +3522,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My updated display name.") globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") @@ -3435,6 +3558,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -3443,7 +3567,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -3456,6 +3585,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3503,9 +3635,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -3588,7 +3732,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": 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}}]}}}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}}}`) })) }) It(`Invoke UpdateCatalogProduct successfully`, func() { @@ -3607,7 +3751,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My updated display name.") globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") @@ -3643,6 +3787,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -3651,7 +3796,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -3664,6 +3814,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3711,9 +3864,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -3759,7 +3924,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My updated display name.") globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") @@ -3795,6 +3960,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -3803,7 +3969,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -3816,6 +3987,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -3863,9 +4037,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -3932,7 +4118,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My updated display name.") globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") @@ -3968,6 +4154,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -3976,7 +4163,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -3989,6 +4181,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -4036,9 +4231,21 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -4179,14 +4386,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My plan") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My plan description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My plan long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -4211,6 +4418,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -4219,7 +4427,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -4228,26 +4441,41 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) - globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Type = core.StringPtr("paid") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the CreateCatalogPlanOptions model createCatalogPlanOptionsModel := new(partnercentersellv1.CreateCatalogPlanOptions) createCatalogPlanOptionsModel.ProductID = core.StringPtr("testString") createCatalogPlanOptionsModel.CatalogProductID = core.StringPtr("testString") - createCatalogPlanOptionsModel.Name = core.StringPtr("testString") + createCatalogPlanOptionsModel.Name = core.StringPtr("free-plan2") createCatalogPlanOptionsModel.Active = core.BoolPtr(true) - createCatalogPlanOptionsModel.Disabled = core.BoolPtr(true) + createCatalogPlanOptionsModel.Disabled = core.BoolPtr(false) createCatalogPlanOptionsModel.Kind = core.StringPtr("plan") - createCatalogPlanOptionsModel.Tags = []string{"testString"} + createCatalogPlanOptionsModel.Tags = []string{"ibm_created"} createCatalogPlanOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogPlanOptionsModel.ID = core.StringPtr("testString") createCatalogPlanOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -4306,7 +4534,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "pricing": {"type": "free", "origin": "global_catalog"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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}}}`) })) }) It(`Invoke CreateCatalogPlan successfully with retries`, func() { @@ -4320,14 +4548,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My plan") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My plan description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My plan long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -4352,6 +4580,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -4360,7 +4589,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -4369,26 +4603,41 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) - globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Type = core.StringPtr("paid") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the CreateCatalogPlanOptions model createCatalogPlanOptionsModel := new(partnercentersellv1.CreateCatalogPlanOptions) createCatalogPlanOptionsModel.ProductID = core.StringPtr("testString") createCatalogPlanOptionsModel.CatalogProductID = core.StringPtr("testString") - createCatalogPlanOptionsModel.Name = core.StringPtr("testString") + createCatalogPlanOptionsModel.Name = core.StringPtr("free-plan2") createCatalogPlanOptionsModel.Active = core.BoolPtr(true) - createCatalogPlanOptionsModel.Disabled = core.BoolPtr(true) + createCatalogPlanOptionsModel.Disabled = core.BoolPtr(false) createCatalogPlanOptionsModel.Kind = core.StringPtr("plan") - createCatalogPlanOptionsModel.Tags = []string{"testString"} + createCatalogPlanOptionsModel.Tags = []string{"ibm_created"} createCatalogPlanOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogPlanOptionsModel.ID = core.StringPtr("testString") createCatalogPlanOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -4450,7 +4699,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "pricing": {"type": "free", "origin": "global_catalog"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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}}}`) })) }) It(`Invoke CreateCatalogPlan successfully`, func() { @@ -4469,14 +4718,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My plan") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My plan description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My plan long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -4501,6 +4750,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -4509,7 +4759,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -4518,26 +4773,41 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) - globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Type = core.StringPtr("paid") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the CreateCatalogPlanOptions model createCatalogPlanOptionsModel := new(partnercentersellv1.CreateCatalogPlanOptions) createCatalogPlanOptionsModel.ProductID = core.StringPtr("testString") createCatalogPlanOptionsModel.CatalogProductID = core.StringPtr("testString") - createCatalogPlanOptionsModel.Name = core.StringPtr("testString") + createCatalogPlanOptionsModel.Name = core.StringPtr("free-plan2") createCatalogPlanOptionsModel.Active = core.BoolPtr(true) - createCatalogPlanOptionsModel.Disabled = core.BoolPtr(true) + createCatalogPlanOptionsModel.Disabled = core.BoolPtr(false) createCatalogPlanOptionsModel.Kind = core.StringPtr("plan") - createCatalogPlanOptionsModel.Tags = []string{"testString"} + createCatalogPlanOptionsModel.Tags = []string{"ibm_created"} createCatalogPlanOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogPlanOptionsModel.ID = core.StringPtr("testString") createCatalogPlanOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -4562,14 +4832,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My plan") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My plan description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My plan long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -4594,6 +4864,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -4602,7 +4873,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -4611,26 +4887,41 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) - globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Type = core.StringPtr("paid") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the CreateCatalogPlanOptions model createCatalogPlanOptionsModel := new(partnercentersellv1.CreateCatalogPlanOptions) createCatalogPlanOptionsModel.ProductID = core.StringPtr("testString") createCatalogPlanOptionsModel.CatalogProductID = core.StringPtr("testString") - createCatalogPlanOptionsModel.Name = core.StringPtr("testString") + createCatalogPlanOptionsModel.Name = core.StringPtr("free-plan2") createCatalogPlanOptionsModel.Active = core.BoolPtr(true) - createCatalogPlanOptionsModel.Disabled = core.BoolPtr(true) + createCatalogPlanOptionsModel.Disabled = core.BoolPtr(false) createCatalogPlanOptionsModel.Kind = core.StringPtr("plan") - createCatalogPlanOptionsModel.Tags = []string{"testString"} + createCatalogPlanOptionsModel.Tags = []string{"ibm_created"} createCatalogPlanOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogPlanOptionsModel.ID = core.StringPtr("testString") createCatalogPlanOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -4676,14 +4967,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My plan") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My plan description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My plan long description.") // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -4708,6 +4999,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -4716,7 +5008,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -4725,26 +5022,41 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) - globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Type = core.StringPtr("paid") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the CreateCatalogPlanOptions model createCatalogPlanOptionsModel := new(partnercentersellv1.CreateCatalogPlanOptions) createCatalogPlanOptionsModel.ProductID = core.StringPtr("testString") createCatalogPlanOptionsModel.CatalogProductID = core.StringPtr("testString") - createCatalogPlanOptionsModel.Name = core.StringPtr("testString") + createCatalogPlanOptionsModel.Name = core.StringPtr("free-plan2") createCatalogPlanOptionsModel.Active = core.BoolPtr(true) - createCatalogPlanOptionsModel.Disabled = core.BoolPtr(true) + createCatalogPlanOptionsModel.Disabled = core.BoolPtr(false) createCatalogPlanOptionsModel.Kind = core.StringPtr("plan") - createCatalogPlanOptionsModel.Tags = []string{"testString"} + createCatalogPlanOptionsModel.Tags = []string{"ibm_created"} createCatalogPlanOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogPlanOptionsModel.ID = core.StringPtr("testString") createCatalogPlanOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -4832,7 +5144,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "pricing": {"type": "free", "origin": "global_catalog"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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}}}`) })) }) It(`Invoke GetCatalogPlan successfully with retries`, func() { @@ -4890,7 +5202,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "pricing": {"type": "free", "origin": "global_catalog"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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}}}`) })) }) It(`Invoke GetCatalogPlan successfully`, func() { @@ -5053,6 +5365,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5061,7 +5374,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5070,16 +5388,31 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the GlobalCatalogPlanPatch model globalCatalogPlanPatchModel := new(partnercentersellv1.GlobalCatalogPlanPatch) @@ -5152,7 +5485,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "pricing": {"type": "free", "origin": "global_catalog"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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}}}`) })) }) It(`Invoke UpdateCatalogPlan successfully with retries`, func() { @@ -5198,6 +5531,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5206,7 +5540,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5215,16 +5554,31 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the GlobalCatalogPlanPatch model globalCatalogPlanPatchModel := new(partnercentersellv1.GlobalCatalogPlanPatch) @@ -5300,7 +5654,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "pricing": {"type": "free", "origin": "global_catalog"}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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}}}`) })) }) It(`Invoke UpdateCatalogPlan successfully`, func() { @@ -5351,6 +5705,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5359,7 +5714,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5368,16 +5728,31 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the GlobalCatalogPlanPatch model globalCatalogPlanPatchModel := new(partnercentersellv1.GlobalCatalogPlanPatch) @@ -5448,6 +5823,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5456,7 +5832,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5465,16 +5846,31 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the GlobalCatalogPlanPatch model globalCatalogPlanPatchModel := new(partnercentersellv1.GlobalCatalogPlanPatch) @@ -5566,6 +5962,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5574,7 +5971,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5583,16 +5985,31 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel globalCatalogPlanMetadataModel.Pricing = globalCatalogMetadataPricingModel + globalCatalogPlanMetadataModel.Plan = globalCatalogPlanMetadataPlanModel // Construct an instance of the GlobalCatalogPlanPatch model globalCatalogPlanPatchModel := new(partnercentersellv1.GlobalCatalogPlanPatch) @@ -5728,8 +6145,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) @@ -5760,6 +6177,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5768,7 +6186,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5781,23 +6204,39 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("brokerunique1234") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model createCatalogDeploymentOptionsModel := new(partnercentersellv1.CreateCatalogDeploymentOptions) createCatalogDeploymentOptionsModel.ProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogPlanID = core.StringPtr("testString") - createCatalogDeploymentOptionsModel.Name = core.StringPtr("testString") + createCatalogDeploymentOptionsModel.Name = core.StringPtr("deployment-eu-de") createCatalogDeploymentOptionsModel.Active = core.BoolPtr(true) - createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(true) + createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(false) createCatalogDeploymentOptionsModel.Kind = core.StringPtr("deployment") - createCatalogDeploymentOptionsModel.Tags = []string{"testString"} + createCatalogDeploymentOptionsModel.Tags = []string{"eu-gb"} createCatalogDeploymentOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogDeploymentOptionsModel.ID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -5856,7 +6295,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}}}`) })) }) It(`Invoke CreateCatalogDeployment successfully with retries`, func() { @@ -5870,8 +6309,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) @@ -5902,6 +6341,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -5910,7 +6350,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -5923,23 +6368,39 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("brokerunique1234") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model createCatalogDeploymentOptionsModel := new(partnercentersellv1.CreateCatalogDeploymentOptions) createCatalogDeploymentOptionsModel.ProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogPlanID = core.StringPtr("testString") - createCatalogDeploymentOptionsModel.Name = core.StringPtr("testString") + createCatalogDeploymentOptionsModel.Name = core.StringPtr("deployment-eu-de") createCatalogDeploymentOptionsModel.Active = core.BoolPtr(true) - createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(true) + createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(false) createCatalogDeploymentOptionsModel.Kind = core.StringPtr("deployment") - createCatalogDeploymentOptionsModel.Tags = []string{"testString"} + createCatalogDeploymentOptionsModel.Tags = []string{"eu-gb"} createCatalogDeploymentOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogDeploymentOptionsModel.ID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -6001,7 +6462,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}}}`) })) }) It(`Invoke CreateCatalogDeployment successfully`, func() { @@ -6020,8 +6481,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) @@ -6052,6 +6513,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -6060,7 +6522,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -6073,23 +6540,39 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("brokerunique1234") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model createCatalogDeploymentOptionsModel := new(partnercentersellv1.CreateCatalogDeploymentOptions) createCatalogDeploymentOptionsModel.ProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogPlanID = core.StringPtr("testString") - createCatalogDeploymentOptionsModel.Name = core.StringPtr("testString") + createCatalogDeploymentOptionsModel.Name = core.StringPtr("deployment-eu-de") createCatalogDeploymentOptionsModel.Active = core.BoolPtr(true) - createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(true) + createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(false) createCatalogDeploymentOptionsModel.Kind = core.StringPtr("deployment") - createCatalogDeploymentOptionsModel.Tags = []string{"testString"} + createCatalogDeploymentOptionsModel.Tags = []string{"eu-gb"} createCatalogDeploymentOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogDeploymentOptionsModel.ID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -6114,8 +6597,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) @@ -6146,6 +6629,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -6154,7 +6638,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -6167,23 +6656,39 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("brokerunique1234") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model createCatalogDeploymentOptionsModel := new(partnercentersellv1.CreateCatalogDeploymentOptions) createCatalogDeploymentOptionsModel.ProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogPlanID = core.StringPtr("testString") - createCatalogDeploymentOptionsModel.Name = core.StringPtr("testString") + createCatalogDeploymentOptionsModel.Name = core.StringPtr("deployment-eu-de") createCatalogDeploymentOptionsModel.Active = core.BoolPtr(true) - createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(true) + createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(false) createCatalogDeploymentOptionsModel.Kind = core.StringPtr("deployment") - createCatalogDeploymentOptionsModel.Tags = []string{"testString"} + createCatalogDeploymentOptionsModel.Tags = []string{"eu-gb"} createCatalogDeploymentOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogDeploymentOptionsModel.ID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -6229,8 +6734,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) @@ -6261,6 +6766,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -6269,7 +6775,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -6282,23 +6793,39 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("brokerunique1234") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the CreateCatalogDeploymentOptions model createCatalogDeploymentOptionsModel := new(partnercentersellv1.CreateCatalogDeploymentOptions) createCatalogDeploymentOptionsModel.ProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogProductID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.CatalogPlanID = core.StringPtr("testString") - createCatalogDeploymentOptionsModel.Name = core.StringPtr("testString") + createCatalogDeploymentOptionsModel.Name = core.StringPtr("deployment-eu-de") createCatalogDeploymentOptionsModel.Active = core.BoolPtr(true) - createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(true) + createCatalogDeploymentOptionsModel.Disabled = core.BoolPtr(false) createCatalogDeploymentOptionsModel.Kind = core.StringPtr("deployment") - createCatalogDeploymentOptionsModel.Tags = []string{"testString"} + createCatalogDeploymentOptionsModel.Tags = []string{"eu-gb"} createCatalogDeploymentOptionsModel.ObjectProvider = catalogProductProviderModel createCatalogDeploymentOptionsModel.ID = core.StringPtr("testString") createCatalogDeploymentOptionsModel.OverviewUi = globalCatalogOverviewUiModel @@ -6387,7 +6914,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}}}`) })) }) It(`Invoke GetCatalogDeployment successfully with retries`, func() { @@ -6446,7 +6973,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}}}`) })) }) It(`Invoke GetCatalogDeployment successfully`, func() { @@ -6612,6 +7139,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -6620,7 +7148,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -6633,12 +7166,28 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("another-broker") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model globalCatalogDeploymentPatchModel := new(partnercentersellv1.GlobalCatalogDeploymentPatch) @@ -6712,7 +7261,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}}}`) })) }) It(`Invoke UpdateCatalogDeployment successfully with retries`, func() { @@ -6758,6 +7307,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -6766,7 +7316,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -6779,12 +7334,28 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("another-broker") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model globalCatalogDeploymentPatchModel := new(partnercentersellv1.GlobalCatalogDeploymentPatch) @@ -6861,7 +7432,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "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"}]}}, "urls": {"doc_url": "DocURL", "terms_url": "TermsURL"}, "hidden": true, "side_by_side_index": 15}, "service": {"rc_provisionable": false, "iam_compatible": false}}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "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"}}}`) })) }) It(`Invoke UpdateCatalogDeployment successfully`, func() { @@ -6912,6 +7483,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -6920,7 +7492,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -6933,12 +7510,28 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("another-broker") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model globalCatalogDeploymentPatchModel := new(partnercentersellv1.GlobalCatalogDeploymentPatch) @@ -7010,6 +7603,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -7018,7 +7612,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -7031,12 +7630,28 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("another-broker") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model globalCatalogDeploymentPatchModel := new(partnercentersellv1.GlobalCatalogDeploymentPatch) @@ -7129,6 +7744,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiStringsContentModel := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -7137,7 +7753,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the GlobalCatalogMetadataUIUrls model globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -7150,12 +7771,28 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("another-broker") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3cf") + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + globalCatalogDeploymentMetadataModel.Deployment = globalCatalogMetadataDeploymentModel // Construct an instance of the GlobalCatalogDeploymentPatch model globalCatalogDeploymentPatchModel := new(partnercentersellv1.GlobalCatalogDeploymentPatch) @@ -7422,7 +8059,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -7517,7 +8154,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": {"mapKey": "Inner"}, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": true, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) })) }) It(`Invoke CreateIamRegistration successfully with retries`, func() { @@ -7659,7 +8296,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -7757,7 +8394,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": {"mapKey": "Inner"}, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": true, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) })) }) It(`Invoke CreateIamRegistration successfully`, func() { @@ -7904,7 +8541,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -8093,7 +8730,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -8303,7 +8940,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -8514,7 +9151,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -8615,7 +9252,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": {"mapKey": "Inner"}, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": true, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) })) }) It(`Invoke UpdateIamRegistration successfully with retries`, func() { @@ -8757,7 +9394,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -8861,7 +9498,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": {"mapKey": "Inner"}, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": true, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) })) }) It(`Invoke UpdateIamRegistration successfully`, func() { @@ -9008,7 +9645,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -9203,7 +9840,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -9419,7 +10056,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") @@ -9621,7 +10258,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": {"mapKey": "Inner"}, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": true, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) })) }) It(`Invoke GetIamRegistration successfully with retries`, func() { @@ -9678,7 +10315,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": {"mapKey": "Inner"}, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "enabled": false, "service_type": "service", "actions": [{"id": "ID", "roles": ["Roles"], "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"hidden": true}}], "additional_policy_scopes": ["AdditionalPolicyScopes"], "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "parent_ids": ["ParentIds"], "resource_hierarchy_attribute": {"key": "Key", "value": "Value"}, "supported_anonymous_accesses": [{"attributes": {"account_id": "AccountID", "service_name": "ServiceName"}, "roles": ["Roles"]}], "supported_attributes": [{"key": "Key", "options": {"operators": ["stringEquals"], "hidden": true, "supported_attributes": ["SupportedAttributes"], "policy_types": ["access"], "is_empty_value_supported": false, "is_string_exists_false_value_supported": false, "key": "Key", "resource_hierarchy": {"key": {"key": "Key", "value": "Value"}, "value": {"key": "Key"}}}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "ui": {"input_type": "InputType", "input_details": {"type": "Type", "values": [{"value": "Value", "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}}], "gst": {"query": "Query", "value_property_name": "ValuePropertyName", "label_property_name": "LabelPropertyName", "input_option_label": "InputOptionLabel"}, "url": {"url_endpoint": "UrlEndpoint", "input_option_label": "InputOptionLabel"}}}}], "supported_authorization_subjects": [{"attributes": {"service_name": "ServiceName", "resource_type": "ResourceType"}, "roles": ["Roles"]}], "supported_roles": [{"id": "ID", "description": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "display_name": {"default": "Default", "en": "En", "de": "De", "es": "Es", "fr": "Fr", "it": "It", "ja": "Ja", "ko": "Ko", "pt_br": "PtBr", "zh_tw": "ZhTw", "zh_cn": "ZhCn"}, "options": {"access_policy": true, "policy_type": ["access"], "account_type": "enterprise"}}], "supported_network": {"environment_attributes": [{"key": "Key", "values": ["Values"], "options": {"hidden": true}}]}}`) })) }) It(`Invoke GetIamRegistration successfully`, func() { @@ -9806,17 +10443,17 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateResourceBrokerOptions model createResourceBrokerOptionsModel := new(partnercentersellv1.CreateResourceBrokerOptions) - createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("testString") - createResourceBrokerOptionsModel.Name = core.StringPtr("testString") - createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("bearer") + createResourceBrokerOptionsModel.Name = core.StringPtr("brokername") + createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("https://broker-url-for-my-service.com") createResourceBrokerOptionsModel.Type = core.StringPtr("provision_through") - createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("testString") - createResourceBrokerOptionsModel.State = core.StringPtr("removed") - createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(true) - createResourceBrokerOptionsModel.CatalogType = core.StringPtr("testString") - createResourceBrokerOptionsModel.Region = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("apikey") + createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") + createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") + createResourceBrokerOptionsModel.State = core.StringPtr("active") + createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(false) + createResourceBrokerOptionsModel.CatalogType = core.StringPtr("service") + createResourceBrokerOptionsModel.Region = core.StringPtr("global") createResourceBrokerOptionsModel.Env = core.StringPtr("testString") createResourceBrokerOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response @@ -9871,7 +10508,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"auth_username": "AuthUsername", "auth_password": "AuthPassword", "auth_scheme": "AuthScheme", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) + fmt.Fprintf(res, "%s", `{"auth_username": "apikey", "auth_password": "AuthPassword", "auth_scheme": "bearer", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) })) }) It(`Invoke CreateResourceBroker successfully with retries`, func() { @@ -9885,17 +10522,17 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateResourceBrokerOptions model createResourceBrokerOptionsModel := new(partnercentersellv1.CreateResourceBrokerOptions) - createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("testString") - createResourceBrokerOptionsModel.Name = core.StringPtr("testString") - createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("bearer") + createResourceBrokerOptionsModel.Name = core.StringPtr("brokername") + createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("https://broker-url-for-my-service.com") createResourceBrokerOptionsModel.Type = core.StringPtr("provision_through") - createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("testString") - createResourceBrokerOptionsModel.State = core.StringPtr("removed") - createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(true) - createResourceBrokerOptionsModel.CatalogType = core.StringPtr("testString") - createResourceBrokerOptionsModel.Region = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("apikey") + createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") + createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") + createResourceBrokerOptionsModel.State = core.StringPtr("active") + createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(false) + createResourceBrokerOptionsModel.CatalogType = core.StringPtr("service") + createResourceBrokerOptionsModel.Region = core.StringPtr("global") createResourceBrokerOptionsModel.Env = core.StringPtr("testString") createResourceBrokerOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -9953,7 +10590,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"auth_username": "AuthUsername", "auth_password": "AuthPassword", "auth_scheme": "AuthScheme", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) + fmt.Fprintf(res, "%s", `{"auth_username": "apikey", "auth_password": "AuthPassword", "auth_scheme": "bearer", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) })) }) It(`Invoke CreateResourceBroker successfully`, func() { @@ -9972,17 +10609,17 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateResourceBrokerOptions model createResourceBrokerOptionsModel := new(partnercentersellv1.CreateResourceBrokerOptions) - createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("testString") - createResourceBrokerOptionsModel.Name = core.StringPtr("testString") - createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("bearer") + createResourceBrokerOptionsModel.Name = core.StringPtr("brokername") + createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("https://broker-url-for-my-service.com") createResourceBrokerOptionsModel.Type = core.StringPtr("provision_through") - createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("testString") - createResourceBrokerOptionsModel.State = core.StringPtr("removed") - createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(true) - createResourceBrokerOptionsModel.CatalogType = core.StringPtr("testString") - createResourceBrokerOptionsModel.Region = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("apikey") + createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") + createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") + createResourceBrokerOptionsModel.State = core.StringPtr("active") + createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(false) + createResourceBrokerOptionsModel.CatalogType = core.StringPtr("service") + createResourceBrokerOptionsModel.Region = core.StringPtr("global") createResourceBrokerOptionsModel.Env = core.StringPtr("testString") createResourceBrokerOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -10003,17 +10640,17 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateResourceBrokerOptions model createResourceBrokerOptionsModel := new(partnercentersellv1.CreateResourceBrokerOptions) - createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("testString") - createResourceBrokerOptionsModel.Name = core.StringPtr("testString") - createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("bearer") + createResourceBrokerOptionsModel.Name = core.StringPtr("brokername") + createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("https://broker-url-for-my-service.com") createResourceBrokerOptionsModel.Type = core.StringPtr("provision_through") - createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("testString") - createResourceBrokerOptionsModel.State = core.StringPtr("removed") - createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(true) - createResourceBrokerOptionsModel.CatalogType = core.StringPtr("testString") - createResourceBrokerOptionsModel.Region = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("apikey") + createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") + createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") + createResourceBrokerOptionsModel.State = core.StringPtr("active") + createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(false) + createResourceBrokerOptionsModel.CatalogType = core.StringPtr("service") + createResourceBrokerOptionsModel.Region = core.StringPtr("global") createResourceBrokerOptionsModel.Env = core.StringPtr("testString") createResourceBrokerOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) @@ -10055,17 +10692,17 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateResourceBrokerOptions model createResourceBrokerOptionsModel := new(partnercentersellv1.CreateResourceBrokerOptions) - createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") - createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("testString") - createResourceBrokerOptionsModel.Name = core.StringPtr("testString") - createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthScheme = core.StringPtr("bearer") + createResourceBrokerOptionsModel.Name = core.StringPtr("brokername") + createResourceBrokerOptionsModel.BrokerURL = core.StringPtr("https://broker-url-for-my-service.com") createResourceBrokerOptionsModel.Type = core.StringPtr("provision_through") - createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("testString") - createResourceBrokerOptionsModel.State = core.StringPtr("removed") - createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(true) - createResourceBrokerOptionsModel.CatalogType = core.StringPtr("testString") - createResourceBrokerOptionsModel.Region = core.StringPtr("testString") + createResourceBrokerOptionsModel.AuthUsername = core.StringPtr("apikey") + createResourceBrokerOptionsModel.AuthPassword = core.StringPtr("testString") + createResourceBrokerOptionsModel.ResourceGroupCrn = core.StringPtr("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") + createResourceBrokerOptionsModel.State = core.StringPtr("active") + createResourceBrokerOptionsModel.AllowContextUpdates = core.BoolPtr(false) + createResourceBrokerOptionsModel.CatalogType = core.StringPtr("service") + createResourceBrokerOptionsModel.Region = core.StringPtr("global") createResourceBrokerOptionsModel.Env = core.StringPtr("testString") createResourceBrokerOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -10108,12 +10745,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the BrokerPatch model brokerPatchModel := new(partnercentersellv1.BrokerPatch) - brokerPatchModel.AuthUsername = core.StringPtr("testString") + brokerPatchModel.AuthUsername = core.StringPtr("apikey") brokerPatchModel.AuthPassword = core.StringPtr("testString") - brokerPatchModel.AuthScheme = core.StringPtr("testString") + brokerPatchModel.AuthScheme = core.StringPtr("bearer") brokerPatchModel.ResourceGroupCrn = core.StringPtr("testString") brokerPatchModel.State = core.StringPtr("active") - brokerPatchModel.BrokerURL = core.StringPtr("testString") + brokerPatchModel.BrokerURL = core.StringPtr("https://my-updated-broker-url.com") brokerPatchModel.AllowContextUpdates = core.BoolPtr(true) brokerPatchModel.CatalogType = core.StringPtr("testString") brokerPatchModel.Type = core.StringPtr("provision_through") @@ -10179,7 +10816,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"auth_username": "AuthUsername", "auth_password": "AuthPassword", "auth_scheme": "AuthScheme", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) + fmt.Fprintf(res, "%s", `{"auth_username": "apikey", "auth_password": "AuthPassword", "auth_scheme": "bearer", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) })) }) It(`Invoke UpdateResourceBroker successfully with retries`, func() { @@ -10193,12 +10830,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the BrokerPatch model brokerPatchModel := new(partnercentersellv1.BrokerPatch) - brokerPatchModel.AuthUsername = core.StringPtr("testString") + brokerPatchModel.AuthUsername = core.StringPtr("apikey") brokerPatchModel.AuthPassword = core.StringPtr("testString") - brokerPatchModel.AuthScheme = core.StringPtr("testString") + brokerPatchModel.AuthScheme = core.StringPtr("bearer") brokerPatchModel.ResourceGroupCrn = core.StringPtr("testString") brokerPatchModel.State = core.StringPtr("active") - brokerPatchModel.BrokerURL = core.StringPtr("testString") + brokerPatchModel.BrokerURL = core.StringPtr("https://my-updated-broker-url.com") brokerPatchModel.AllowContextUpdates = core.BoolPtr(true) brokerPatchModel.CatalogType = core.StringPtr("testString") brokerPatchModel.Type = core.StringPtr("provision_through") @@ -10267,7 +10904,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"auth_username": "AuthUsername", "auth_password": "AuthPassword", "auth_scheme": "AuthScheme", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) + fmt.Fprintf(res, "%s", `{"auth_username": "apikey", "auth_password": "AuthPassword", "auth_scheme": "bearer", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) })) }) It(`Invoke UpdateResourceBroker successfully`, func() { @@ -10286,12 +10923,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the BrokerPatch model brokerPatchModel := new(partnercentersellv1.BrokerPatch) - brokerPatchModel.AuthUsername = core.StringPtr("testString") + brokerPatchModel.AuthUsername = core.StringPtr("apikey") brokerPatchModel.AuthPassword = core.StringPtr("testString") - brokerPatchModel.AuthScheme = core.StringPtr("testString") + brokerPatchModel.AuthScheme = core.StringPtr("bearer") brokerPatchModel.ResourceGroupCrn = core.StringPtr("testString") brokerPatchModel.State = core.StringPtr("active") - brokerPatchModel.BrokerURL = core.StringPtr("testString") + brokerPatchModel.BrokerURL = core.StringPtr("https://my-updated-broker-url.com") brokerPatchModel.AllowContextUpdates = core.BoolPtr(true) brokerPatchModel.CatalogType = core.StringPtr("testString") brokerPatchModel.Type = core.StringPtr("provision_through") @@ -10323,12 +10960,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the BrokerPatch model brokerPatchModel := new(partnercentersellv1.BrokerPatch) - brokerPatchModel.AuthUsername = core.StringPtr("testString") + brokerPatchModel.AuthUsername = core.StringPtr("apikey") brokerPatchModel.AuthPassword = core.StringPtr("testString") - brokerPatchModel.AuthScheme = core.StringPtr("testString") + brokerPatchModel.AuthScheme = core.StringPtr("bearer") brokerPatchModel.ResourceGroupCrn = core.StringPtr("testString") brokerPatchModel.State = core.StringPtr("active") - brokerPatchModel.BrokerURL = core.StringPtr("testString") + brokerPatchModel.BrokerURL = core.StringPtr("https://my-updated-broker-url.com") brokerPatchModel.AllowContextUpdates = core.BoolPtr(true) brokerPatchModel.CatalogType = core.StringPtr("testString") brokerPatchModel.Type = core.StringPtr("provision_through") @@ -10381,12 +11018,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the BrokerPatch model brokerPatchModel := new(partnercentersellv1.BrokerPatch) - brokerPatchModel.AuthUsername = core.StringPtr("testString") + brokerPatchModel.AuthUsername = core.StringPtr("apikey") brokerPatchModel.AuthPassword = core.StringPtr("testString") - brokerPatchModel.AuthScheme = core.StringPtr("testString") + brokerPatchModel.AuthScheme = core.StringPtr("bearer") brokerPatchModel.ResourceGroupCrn = core.StringPtr("testString") brokerPatchModel.State = core.StringPtr("active") - brokerPatchModel.BrokerURL = core.StringPtr("testString") + brokerPatchModel.BrokerURL = core.StringPtr("https://my-updated-broker-url.com") brokerPatchModel.AllowContextUpdates = core.BoolPtr(true) brokerPatchModel.CatalogType = core.StringPtr("testString") brokerPatchModel.Type = core.StringPtr("provision_through") @@ -10479,7 +11116,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"auth_username": "AuthUsername", "auth_password": "AuthPassword", "auth_scheme": "AuthScheme", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) + fmt.Fprintf(res, "%s", `{"auth_username": "apikey", "auth_password": "AuthPassword", "auth_scheme": "bearer", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) })) }) It(`Invoke GetResourceBroker successfully with retries`, func() { @@ -10535,7 +11172,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"auth_username": "AuthUsername", "auth_password": "AuthPassword", "auth_scheme": "AuthScheme", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) + fmt.Fprintf(res, "%s", `{"auth_username": "apikey", "auth_password": "AuthPassword", "auth_scheme": "bearer", "resource_group_crn": "ResourceGroupCrn", "state": "active", "broker_url": "BrokerURL", "allow_context_updates": false, "catalog_type": "CatalogType", "type": "provision_through", "name": "Name", "region": "Region", "account_id": "AccountID", "crn": "Crn", "created_at": "2019-01-01T12:00:00.000Z", "updated_at": "2019-01-01T12:00:00.000Z", "deleted_at": "2019-01-01T12:00:00.000Z", "created_by": {"user_id": "UserID", "user_name": "UserName"}, "updated_by": {"user_id": "UserID", "user_name": "UserName"}, "deleted_by": {"user_id": "UserID", "user_name": "UserName"}, "guid": "Guid", "id": "ID", "url": "URL"}`) })) }) It(`Invoke GetResourceBroker successfully`, func() { @@ -11136,472 +11773,44 @@ var _ = Describe(`PartnerCenterSellV1`, func() { }) }) }) - Describe(`ListBadges(listBadgesOptions *ListBadgesOptions) - Operation response error`, func() { - listBadgesPath := "/products/badges" - Context(`Using mock server endpoint with invalid JSON response`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(listBadgesPath)) - Expect(req.Method).To(Equal("GET")) - Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(100))})) - // TODO: Add check for start query parameter - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprint(res, `} this is not valid json {`) - })) - }) - It(`Invoke ListBadges with error: Operation response processing error`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Construct an instance of the ListBadgesOptions model - listBadgesOptionsModel := new(partnercentersellv1.ListBadgesOptions) - listBadgesOptionsModel.Limit = core.Int64Ptr(int64(100)) - listBadgesOptionsModel.Start = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - listBadgesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - // Expect response parsing to fail since we are receiving a text/plain response - result, response, operationErr := partnerCenterSellService.ListBadges(listBadgesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).To(BeNil()) - - // Enable retries and test again - partnerCenterSellService.EnableRetries(0, 0) - result, response, operationErr = partnerCenterSellService.ListBadges(listBadgesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).To(BeNil()) + Describe(`Model constructor tests`, func() { + Context(`Using a service client instance`, func() { + partnerCenterSellService, _ := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ + URL: "http://partnercentersellv1modelgenerator.com", + Authenticator: &core.NoAuthAuthenticator{}, }) - AfterEach(func() { - testServer.Close() + It(`Invoke NewCatalogProductMediaItem successfully`, func() { + caption := "testString" + typeVar := "image" + url := "testString" + _model, err := partnerCenterSellService.NewCatalogProductMediaItem(caption, typeVar, url) + Expect(_model).ToNot(BeNil()) + Expect(err).To(BeNil()) }) - }) - }) - Describe(`ListBadges(listBadgesOptions *ListBadgesOptions)`, func() { - listBadgesPath := "/products/badges" - Context(`Using mock server endpoint with timeout`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() + It(`Invoke NewCreateCatalogDeploymentOptions successfully`, func() { + // Construct an instance of the CatalogProductProvider model + catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) + Expect(catalogProductProviderModel).ToNot(BeNil()) + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") + Expect(catalogProductProviderModel.Name).To(Equal(core.StringPtr("IBM"))) + Expect(catalogProductProviderModel.Email).To(Equal(core.StringPtr("name.name@ibm.com"))) - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(listBadgesPath)) - Expect(req.Method).To(Equal("GET")) + // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model + globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) + Expect(globalCatalogOverviewUiTranslatedContentModel).ToNot(BeNil()) + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") + Expect(globalCatalogOverviewUiTranslatedContentModel.DisplayName).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogOverviewUiTranslatedContentModel.Description).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogOverviewUiTranslatedContentModel.LongDescription).To(Equal(core.StringPtr("testString"))) - Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(100))})) - // TODO: Add check for start query parameter - // Sleep a short time to support a timeout test - time.Sleep(100 * time.Millisecond) - - // Set mock response - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"limit": 1, "offset": 0, "total_count": 0, "first": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "next": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "previous": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "last": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "badges": [{"id": "ID", "label": "Label", "description": "Description", "internal_description": "InternalDescription", "learn_more_links": {"first_party": "FirstParty", "third_party": "ThirdParty"}, "get_started_link": "GetStartedLink", "tag": "Tag"}]}`) - })) - }) - It(`Invoke ListBadges successfully with retries`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - partnerCenterSellService.EnableRetries(0, 0) - - // Construct an instance of the ListBadgesOptions model - listBadgesOptionsModel := new(partnercentersellv1.ListBadgesOptions) - listBadgesOptionsModel.Limit = core.Int64Ptr(int64(100)) - listBadgesOptionsModel.Start = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - listBadgesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation with a Context to test a timeout error - ctx, cancelFunc := context.WithTimeout(context.Background(), 80*time.Millisecond) - defer cancelFunc() - _, _, operationErr := partnerCenterSellService.ListBadgesWithContext(ctx, listBadgesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring("deadline exceeded")) - - // Disable retries and test again - partnerCenterSellService.DisableRetries() - result, response, operationErr := partnerCenterSellService.ListBadges(listBadgesOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).ToNot(BeNil()) - - // Re-test the timeout error with retries disabled - ctx, cancelFunc2 := context.WithTimeout(context.Background(), 80*time.Millisecond) - defer cancelFunc2() - _, _, operationErr = partnerCenterSellService.ListBadgesWithContext(ctx, listBadgesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring("deadline exceeded")) - }) - AfterEach(func() { - testServer.Close() - }) - }) - Context(`Using mock server endpoint`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(listBadgesPath)) - Expect(req.Method).To(Equal("GET")) - - Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(100))})) - // TODO: Add check for start query parameter - // Set mock response - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"limit": 1, "offset": 0, "total_count": 0, "first": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "next": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "previous": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "last": {"href": "Href", "start": "9fab83da-98cb-4f18-a7ba-b6f0435c9673"}, "badges": [{"id": "ID", "label": "Label", "description": "Description", "internal_description": "InternalDescription", "learn_more_links": {"first_party": "FirstParty", "third_party": "ThirdParty"}, "get_started_link": "GetStartedLink", "tag": "Tag"}]}`) - })) - }) - It(`Invoke ListBadges successfully`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Invoke operation with nil options model (negative test) - result, response, operationErr := partnerCenterSellService.ListBadges(nil) - Expect(operationErr).NotTo(BeNil()) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - - // Construct an instance of the ListBadgesOptions model - listBadgesOptionsModel := new(partnercentersellv1.ListBadgesOptions) - listBadgesOptionsModel.Limit = core.Int64Ptr(int64(100)) - listBadgesOptionsModel.Start = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - listBadgesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation with valid options model (positive test) - result, response, operationErr = partnerCenterSellService.ListBadges(listBadgesOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).ToNot(BeNil()) - - }) - It(`Invoke ListBadges with error: Operation request error`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Construct an instance of the ListBadgesOptions model - listBadgesOptionsModel := new(partnercentersellv1.ListBadgesOptions) - listBadgesOptionsModel.Limit = core.Int64Ptr(int64(100)) - listBadgesOptionsModel.Start = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - listBadgesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - // Invoke operation with empty URL (negative test) - err := partnerCenterSellService.SetServiceURL("") - Expect(err).To(BeNil()) - result, response, operationErr := partnerCenterSellService.ListBadges(listBadgesOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring(core.ERRORMSG_SERVICE_URL_MISSING)) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - Context(`Using mock server endpoint with missing response body`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Set success status code with no respoonse body - res.WriteHeader(200) - })) - }) - It(`Invoke ListBadges successfully`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Construct an instance of the ListBadgesOptions model - listBadgesOptionsModel := new(partnercentersellv1.ListBadgesOptions) - listBadgesOptionsModel.Limit = core.Int64Ptr(int64(100)) - listBadgesOptionsModel.Start = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - listBadgesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation - result, response, operationErr := partnerCenterSellService.ListBadges(listBadgesOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - - // Verify a nil result - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - }) - Describe(`GetBadge(getBadgeOptions *GetBadgeOptions) - Operation response error`, func() { - getBadgePath := "/products/badges/9fab83da-98cb-4f18-a7ba-b6f0435c9673" - Context(`Using mock server endpoint with invalid JSON response`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(getBadgePath)) - Expect(req.Method).To(Equal("GET")) - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprint(res, `} this is not valid json {`) - })) - }) - It(`Invoke GetBadge with error: Operation response processing error`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Construct an instance of the GetBadgeOptions model - getBadgeOptionsModel := new(partnercentersellv1.GetBadgeOptions) - getBadgeOptionsModel.BadgeID = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - getBadgeOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - // Expect response parsing to fail since we are receiving a text/plain response - result, response, operationErr := partnerCenterSellService.GetBadge(getBadgeOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).To(BeNil()) - - // Enable retries and test again - partnerCenterSellService.EnableRetries(0, 0) - result, response, operationErr = partnerCenterSellService.GetBadge(getBadgeOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - }) - Describe(`GetBadge(getBadgeOptions *GetBadgeOptions)`, func() { - getBadgePath := "/products/badges/9fab83da-98cb-4f18-a7ba-b6f0435c9673" - Context(`Using mock server endpoint with timeout`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(getBadgePath)) - Expect(req.Method).To(Equal("GET")) - - // Sleep a short time to support a timeout test - time.Sleep(100 * time.Millisecond) - - // Set mock response - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "label": "Label", "description": "Description", "internal_description": "InternalDescription", "learn_more_links": {"first_party": "FirstParty", "third_party": "ThirdParty"}, "get_started_link": "GetStartedLink", "tag": "Tag"}`) - })) - }) - It(`Invoke GetBadge successfully with retries`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - partnerCenterSellService.EnableRetries(0, 0) - - // Construct an instance of the GetBadgeOptions model - getBadgeOptionsModel := new(partnercentersellv1.GetBadgeOptions) - getBadgeOptionsModel.BadgeID = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - getBadgeOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation with a Context to test a timeout error - ctx, cancelFunc := context.WithTimeout(context.Background(), 80*time.Millisecond) - defer cancelFunc() - _, _, operationErr := partnerCenterSellService.GetBadgeWithContext(ctx, getBadgeOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring("deadline exceeded")) - - // Disable retries and test again - partnerCenterSellService.DisableRetries() - result, response, operationErr := partnerCenterSellService.GetBadge(getBadgeOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).ToNot(BeNil()) - - // Re-test the timeout error with retries disabled - ctx, cancelFunc2 := context.WithTimeout(context.Background(), 80*time.Millisecond) - defer cancelFunc2() - _, _, operationErr = partnerCenterSellService.GetBadgeWithContext(ctx, getBadgeOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring("deadline exceeded")) - }) - AfterEach(func() { - testServer.Close() - }) - }) - Context(`Using mock server endpoint`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Verify the contents of the request - Expect(req.URL.EscapedPath()).To(Equal(getBadgePath)) - Expect(req.Method).To(Equal("GET")) - - // Set mock response - res.Header().Set("Content-type", "application/json") - res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "label": "Label", "description": "Description", "internal_description": "InternalDescription", "learn_more_links": {"first_party": "FirstParty", "third_party": "ThirdParty"}, "get_started_link": "GetStartedLink", "tag": "Tag"}`) - })) - }) - It(`Invoke GetBadge successfully`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Invoke operation with nil options model (negative test) - result, response, operationErr := partnerCenterSellService.GetBadge(nil) - Expect(operationErr).NotTo(BeNil()) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - - // Construct an instance of the GetBadgeOptions model - getBadgeOptionsModel := new(partnercentersellv1.GetBadgeOptions) - getBadgeOptionsModel.BadgeID = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - getBadgeOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation with valid options model (positive test) - result, response, operationErr = partnerCenterSellService.GetBadge(getBadgeOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - Expect(result).ToNot(BeNil()) - - }) - It(`Invoke GetBadge with error: Operation validation and request error`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Construct an instance of the GetBadgeOptions model - getBadgeOptionsModel := new(partnercentersellv1.GetBadgeOptions) - getBadgeOptionsModel.BadgeID = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - getBadgeOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - // Invoke operation with empty URL (negative test) - err := partnerCenterSellService.SetServiceURL("") - Expect(err).To(BeNil()) - result, response, operationErr := partnerCenterSellService.GetBadge(getBadgeOptionsModel) - Expect(operationErr).ToNot(BeNil()) - Expect(operationErr.Error()).To(ContainSubstring(core.ERRORMSG_SERVICE_URL_MISSING)) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - // Construct a second instance of the GetBadgeOptions model with no property values - getBadgeOptionsModelNew := new(partnercentersellv1.GetBadgeOptions) - // Invoke operation with invalid model (negative test) - result, response, operationErr = partnerCenterSellService.GetBadge(getBadgeOptionsModelNew) - Expect(operationErr).ToNot(BeNil()) - Expect(response).To(BeNil()) - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - Context(`Using mock server endpoint with missing response body`, func() { - BeforeEach(func() { - testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - defer GinkgoRecover() - - // Set success status code with no respoonse body - res.WriteHeader(200) - })) - }) - It(`Invoke GetBadge successfully`, func() { - partnerCenterSellService, serviceErr := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: testServer.URL, - Authenticator: &core.NoAuthAuthenticator{}, - }) - Expect(serviceErr).To(BeNil()) - Expect(partnerCenterSellService).ToNot(BeNil()) - - // Construct an instance of the GetBadgeOptions model - getBadgeOptionsModel := new(partnercentersellv1.GetBadgeOptions) - getBadgeOptionsModel.BadgeID = CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - getBadgeOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} - - // Invoke operation - result, response, operationErr := partnerCenterSellService.GetBadge(getBadgeOptionsModel) - Expect(operationErr).To(BeNil()) - Expect(response).ToNot(BeNil()) - - // Verify a nil result - Expect(result).To(BeNil()) - }) - AfterEach(func() { - testServer.Close() - }) - }) - }) - Describe(`Model constructor tests`, func() { - Context(`Using a service client instance`, func() { - partnerCenterSellService, _ := partnercentersellv1.NewPartnerCenterSellV1(&partnercentersellv1.PartnerCenterSellV1Options{ - URL: "http://partnercentersellv1modelgenerator.com", - Authenticator: &core.NoAuthAuthenticator{}, - }) - It(`Invoke NewCatalogProductMediaItem successfully`, func() { - caption := "testString" - typeVar := "image" - url := "testString" - _model, err := partnerCenterSellService.NewCatalogProductMediaItem(caption, typeVar, url) - Expect(_model).ToNot(BeNil()) - Expect(err).To(BeNil()) - }) - It(`Invoke NewCreateCatalogDeploymentOptions successfully`, func() { - // Construct an instance of the CatalogProductProvider model - catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) - Expect(catalogProductProviderModel).ToNot(BeNil()) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") - Expect(catalogProductProviderModel.Name).To(Equal(core.StringPtr("testString"))) - Expect(catalogProductProviderModel.Email).To(Equal(core.StringPtr("testString"))) - - // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model - globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) - Expect(globalCatalogOverviewUiTranslatedContentModel).ToNot(BeNil()) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") - Expect(globalCatalogOverviewUiTranslatedContentModel.DisplayName).To(Equal(core.StringPtr("testString"))) - Expect(globalCatalogOverviewUiTranslatedContentModel.Description).To(Equal(core.StringPtr("testString"))) - Expect(globalCatalogOverviewUiTranslatedContentModel.LongDescription).To(Equal(core.StringPtr("testString"))) - - // Construct an instance of the GlobalCatalogOverviewUI model - globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) - Expect(globalCatalogOverviewUiModel).ToNot(BeNil()) - globalCatalogOverviewUiModel.En = globalCatalogOverviewUiTranslatedContentModel - Expect(globalCatalogOverviewUiModel.En).To(Equal(globalCatalogOverviewUiTranslatedContentModel)) + // Construct an instance of the GlobalCatalogOverviewUI model + globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) + Expect(globalCatalogOverviewUiModel).ToNot(BeNil()) + globalCatalogOverviewUiModel.En = globalCatalogOverviewUiTranslatedContentModel + Expect(globalCatalogOverviewUiModel.En).To(Equal(globalCatalogOverviewUiTranslatedContentModel)) // Construct an instance of the CatalogHighlightItem model catalogHighlightItemModel := new(partnercentersellv1.CatalogHighlightItem) @@ -11634,8 +11843,10 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogMetadataUiStringsContentModel).ToNot(BeNil()) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") Expect(globalCatalogMetadataUiStringsContentModel.Bullets).To(Equal([]partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel})) Expect(globalCatalogMetadataUiStringsContentModel.Media).To(Equal([]partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel})) + Expect(globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard).To(Equal(core.StringPtr("testString"))) // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -11647,9 +11858,19 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) Expect(globalCatalogMetadataUiUrlsModel).ToNot(BeNil()) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") Expect(globalCatalogMetadataUiUrlsModel.DocURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.ApidocsURL).To(Equal(core.StringPtr("testString"))) Expect(globalCatalogMetadataUiUrlsModel.TermsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.InstructionsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.CatalogDetailsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.CustomCreatePageURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.Dashboard).To(Equal(core.StringPtr("testString"))) // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -11668,8 +11889,34 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 GlobalCatalogMetadataDeploymentBroker model + globalCatalogMetadataDeploymentBrokerModel := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + Expect(globalCatalogMetadataDeploymentBrokerModel).ToNot(BeNil()) + globalCatalogMetadataDeploymentBrokerModel.Name = core.StringPtr("brokerunique1234") + globalCatalogMetadataDeploymentBrokerModel.Guid = core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2") + Expect(globalCatalogMetadataDeploymentBrokerModel.Name).To(Equal(core.StringPtr("brokerunique1234"))) + Expect(globalCatalogMetadataDeploymentBrokerModel.Guid).To(Equal(core.StringPtr("crn%3Av1%3Astaging%3Apublic%3Aresource-controller%3A%3Aa%2F4a5c3c51b97a446fbb1d0e1ef089823b%3A%3Aresource-broker%3A5fb34e97-74f6-47a6-900c-07eed308d3c2"))) + + // Construct an instance of the GlobalCatalogMetadataDeployment model + globalCatalogMetadataDeploymentModel := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + Expect(globalCatalogMetadataDeploymentModel).ToNot(BeNil()) + globalCatalogMetadataDeploymentModel.Broker = globalCatalogMetadataDeploymentBrokerModel + globalCatalogMetadataDeploymentModel.Location = core.StringPtr("eu-gb") + globalCatalogMetadataDeploymentModel.LocationURL = core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb") + globalCatalogMetadataDeploymentModel.TargetCrn = core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb") + Expect(globalCatalogMetadataDeploymentModel.Broker).To(Equal(globalCatalogMetadataDeploymentBrokerModel)) + Expect(globalCatalogMetadataDeploymentModel.Location).To(Equal(core.StringPtr("eu-gb"))) + Expect(globalCatalogMetadataDeploymentModel.LocationURL).To(Equal(core.StringPtr("https://globalcatalog.test.cloud.ibm.com/api/v1/eu-gb"))) + Expect(globalCatalogMetadataDeploymentModel.TargetCrn).To(Equal(core.StringPtr("crn:v1:staging:public::eu-gb:::environment:staging-eu-gb"))) // Construct an instance of the GlobalCatalogDeploymentMetadata model globalCatalogDeploymentMetadataModel := new(partnercentersellv1.GlobalCatalogDeploymentMetadata) @@ -11677,29 +11924,31 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogDeploymentMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogDeploymentMetadataModel.Ui = globalCatalogMetadataUiModel globalCatalogDeploymentMetadataModel.Service = globalCatalogMetadataServiceModel + 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.Deployment).To(Equal(globalCatalogMetadataDeploymentModel)) // Construct an instance of the CreateCatalogDeploymentOptions model productID := "testString" catalogProductID := "testString" catalogPlanID := "testString" - createCatalogDeploymentOptionsName := "testString" + createCatalogDeploymentOptionsName := "deployment-eu-de" createCatalogDeploymentOptionsActive := true - createCatalogDeploymentOptionsDisabled := true + createCatalogDeploymentOptionsDisabled := false createCatalogDeploymentOptionsKind := "deployment" - createCatalogDeploymentOptionsTags := []string{"testString"} + createCatalogDeploymentOptionsTags := []string{"eu-gb"} var createCatalogDeploymentOptionsObjectProvider *partnercentersellv1.CatalogProductProvider = nil createCatalogDeploymentOptionsModel := partnerCenterSellService.NewCreateCatalogDeploymentOptions(productID, catalogProductID, catalogPlanID, createCatalogDeploymentOptionsName, createCatalogDeploymentOptionsActive, createCatalogDeploymentOptionsDisabled, createCatalogDeploymentOptionsKind, createCatalogDeploymentOptionsTags, createCatalogDeploymentOptionsObjectProvider) createCatalogDeploymentOptionsModel.SetProductID("testString") createCatalogDeploymentOptionsModel.SetCatalogProductID("testString") createCatalogDeploymentOptionsModel.SetCatalogPlanID("testString") - createCatalogDeploymentOptionsModel.SetName("testString") + createCatalogDeploymentOptionsModel.SetName("deployment-eu-de") createCatalogDeploymentOptionsModel.SetActive(true) - createCatalogDeploymentOptionsModel.SetDisabled(true) + createCatalogDeploymentOptionsModel.SetDisabled(false) createCatalogDeploymentOptionsModel.SetKind("deployment") - createCatalogDeploymentOptionsModel.SetTags([]string{"testString"}) + createCatalogDeploymentOptionsModel.SetTags([]string{"eu-gb"}) createCatalogDeploymentOptionsModel.SetObjectProvider(catalogProductProviderModel) createCatalogDeploymentOptionsModel.SetID("testString") createCatalogDeploymentOptionsModel.SetOverviewUi(globalCatalogOverviewUiModel) @@ -11710,11 +11959,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(createCatalogDeploymentOptionsModel.ProductID).To(Equal(core.StringPtr("testString"))) Expect(createCatalogDeploymentOptionsModel.CatalogProductID).To(Equal(core.StringPtr("testString"))) Expect(createCatalogDeploymentOptionsModel.CatalogPlanID).To(Equal(core.StringPtr("testString"))) - Expect(createCatalogDeploymentOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(createCatalogDeploymentOptionsModel.Name).To(Equal(core.StringPtr("deployment-eu-de"))) Expect(createCatalogDeploymentOptionsModel.Active).To(Equal(core.BoolPtr(true))) - Expect(createCatalogDeploymentOptionsModel.Disabled).To(Equal(core.BoolPtr(true))) + Expect(createCatalogDeploymentOptionsModel.Disabled).To(Equal(core.BoolPtr(false))) Expect(createCatalogDeploymentOptionsModel.Kind).To(Equal(core.StringPtr("deployment"))) - Expect(createCatalogDeploymentOptionsModel.Tags).To(Equal([]string{"testString"})) + Expect(createCatalogDeploymentOptionsModel.Tags).To(Equal([]string{"eu-gb"})) Expect(createCatalogDeploymentOptionsModel.ObjectProvider).To(Equal(catalogProductProviderModel)) Expect(createCatalogDeploymentOptionsModel.ID).To(Equal(core.StringPtr("testString"))) Expect(createCatalogDeploymentOptionsModel.OverviewUi).To(Equal(globalCatalogOverviewUiModel)) @@ -11726,20 +11975,20 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) Expect(catalogProductProviderModel).ToNot(BeNil()) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") - Expect(catalogProductProviderModel.Name).To(Equal(core.StringPtr("testString"))) - Expect(catalogProductProviderModel.Email).To(Equal(core.StringPtr("testString"))) + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") + Expect(catalogProductProviderModel.Name).To(Equal(core.StringPtr("IBM"))) + Expect(catalogProductProviderModel.Email).To(Equal(core.StringPtr("name.name@ibm.com"))) // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) Expect(globalCatalogOverviewUiTranslatedContentModel).ToNot(BeNil()) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") - Expect(globalCatalogOverviewUiTranslatedContentModel.DisplayName).To(Equal(core.StringPtr("testString"))) - Expect(globalCatalogOverviewUiTranslatedContentModel.Description).To(Equal(core.StringPtr("testString"))) - Expect(globalCatalogOverviewUiTranslatedContentModel.LongDescription).To(Equal(core.StringPtr("testString"))) + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My plan") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My plan description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My plan long description.") + Expect(globalCatalogOverviewUiTranslatedContentModel.DisplayName).To(Equal(core.StringPtr("My plan"))) + Expect(globalCatalogOverviewUiTranslatedContentModel.Description).To(Equal(core.StringPtr("My plan description."))) + Expect(globalCatalogOverviewUiTranslatedContentModel.LongDescription).To(Equal(core.StringPtr("My plan long description."))) // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -11778,8 +12027,10 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogMetadataUiStringsContentModel).ToNot(BeNil()) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") Expect(globalCatalogMetadataUiStringsContentModel.Bullets).To(Equal([]partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel})) Expect(globalCatalogMetadataUiStringsContentModel.Media).To(Equal([]partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel})) + Expect(globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard).To(Equal(core.StringPtr("testString"))) // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -11791,9 +12042,19 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) Expect(globalCatalogMetadataUiUrlsModel).ToNot(BeNil()) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") Expect(globalCatalogMetadataUiUrlsModel.DocURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.ApidocsURL).To(Equal(core.StringPtr("testString"))) Expect(globalCatalogMetadataUiUrlsModel.TermsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.InstructionsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.CatalogDetailsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.CustomCreatePageURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.Dashboard).To(Equal(core.StringPtr("testString"))) // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -11807,41 +12068,67 @@ 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 GlobalCatalogMetadataPricing model globalCatalogMetadataPricingModel := new(partnercentersellv1.GlobalCatalogMetadataPricing) Expect(globalCatalogMetadataPricingModel).ToNot(BeNil()) - globalCatalogMetadataPricingModel.Type = core.StringPtr("free") - globalCatalogMetadataPricingModel.Origin = core.StringPtr("global_catalog") - Expect(globalCatalogMetadataPricingModel.Type).To(Equal(core.StringPtr("free"))) - Expect(globalCatalogMetadataPricingModel.Origin).To(Equal(core.StringPtr("global_catalog"))) + globalCatalogMetadataPricingModel.Type = core.StringPtr("paid") + globalCatalogMetadataPricingModel.Origin = core.StringPtr("pricing_catalog") + Expect(globalCatalogMetadataPricingModel.Type).To(Equal(core.StringPtr("paid"))) + Expect(globalCatalogMetadataPricingModel.Origin).To(Equal(core.StringPtr("pricing_catalog"))) + + // Construct an instance of the GlobalCatalogPlanMetadataPlan model + globalCatalogPlanMetadataPlanModel := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + Expect(globalCatalogPlanMetadataPlanModel).ToNot(BeNil()) + globalCatalogPlanMetadataPlanModel.AllowInternalUsers = core.BoolPtr(true) + globalCatalogPlanMetadataPlanModel.Bindable = core.BoolPtr(true) + Expect(globalCatalogPlanMetadataPlanModel.AllowInternalUsers).To(Equal(core.BoolPtr(true))) + Expect(globalCatalogPlanMetadataPlanModel.Bindable).To(Equal(core.BoolPtr(true))) // Construct an instance of the GlobalCatalogPlanMetadata model globalCatalogPlanMetadataModel := new(partnercentersellv1.GlobalCatalogPlanMetadata) Expect(globalCatalogPlanMetadataModel).ToNot(BeNil()) globalCatalogPlanMetadataModel.RcCompatible = core.BoolPtr(true) globalCatalogPlanMetadataModel.Ui = globalCatalogMetadataUiModel + globalCatalogPlanMetadataModel.Service = globalCatalogMetadataServiceModel 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.Pricing).To(Equal(globalCatalogMetadataPricingModel)) + Expect(globalCatalogPlanMetadataModel.Plan).To(Equal(globalCatalogPlanMetadataPlanModel)) // Construct an instance of the CreateCatalogPlanOptions model productID := "testString" catalogProductID := "testString" - createCatalogPlanOptionsName := "testString" + createCatalogPlanOptionsName := "free-plan2" createCatalogPlanOptionsActive := true - createCatalogPlanOptionsDisabled := true + createCatalogPlanOptionsDisabled := false createCatalogPlanOptionsKind := "plan" - createCatalogPlanOptionsTags := []string{"testString"} + createCatalogPlanOptionsTags := []string{"ibm_created"} var createCatalogPlanOptionsObjectProvider *partnercentersellv1.CatalogProductProvider = nil createCatalogPlanOptionsModel := partnerCenterSellService.NewCreateCatalogPlanOptions(productID, catalogProductID, createCatalogPlanOptionsName, createCatalogPlanOptionsActive, createCatalogPlanOptionsDisabled, createCatalogPlanOptionsKind, createCatalogPlanOptionsTags, createCatalogPlanOptionsObjectProvider) createCatalogPlanOptionsModel.SetProductID("testString") createCatalogPlanOptionsModel.SetCatalogProductID("testString") - createCatalogPlanOptionsModel.SetName("testString") + createCatalogPlanOptionsModel.SetName("free-plan2") createCatalogPlanOptionsModel.SetActive(true) - createCatalogPlanOptionsModel.SetDisabled(true) + createCatalogPlanOptionsModel.SetDisabled(false) createCatalogPlanOptionsModel.SetKind("plan") - createCatalogPlanOptionsModel.SetTags([]string{"testString"}) + createCatalogPlanOptionsModel.SetTags([]string{"ibm_created"}) createCatalogPlanOptionsModel.SetObjectProvider(catalogProductProviderModel) createCatalogPlanOptionsModel.SetID("testString") createCatalogPlanOptionsModel.SetOverviewUi(globalCatalogOverviewUiModel) @@ -11851,11 +12138,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(createCatalogPlanOptionsModel).ToNot(BeNil()) Expect(createCatalogPlanOptionsModel.ProductID).To(Equal(core.StringPtr("testString"))) Expect(createCatalogPlanOptionsModel.CatalogProductID).To(Equal(core.StringPtr("testString"))) - Expect(createCatalogPlanOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(createCatalogPlanOptionsModel.Name).To(Equal(core.StringPtr("free-plan2"))) Expect(createCatalogPlanOptionsModel.Active).To(Equal(core.BoolPtr(true))) - Expect(createCatalogPlanOptionsModel.Disabled).To(Equal(core.BoolPtr(true))) + Expect(createCatalogPlanOptionsModel.Disabled).To(Equal(core.BoolPtr(false))) Expect(createCatalogPlanOptionsModel.Kind).To(Equal(core.StringPtr("plan"))) - Expect(createCatalogPlanOptionsModel.Tags).To(Equal([]string{"testString"})) + Expect(createCatalogPlanOptionsModel.Tags).To(Equal([]string{"ibm_created"})) Expect(createCatalogPlanOptionsModel.ObjectProvider).To(Equal(catalogProductProviderModel)) Expect(createCatalogPlanOptionsModel.ID).To(Equal(core.StringPtr("testString"))) Expect(createCatalogPlanOptionsModel.OverviewUi).To(Equal(globalCatalogOverviewUiModel)) @@ -11867,20 +12154,20 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CatalogProductProvider model catalogProductProviderModel := new(partnercentersellv1.CatalogProductProvider) Expect(catalogProductProviderModel).ToNot(BeNil()) - catalogProductProviderModel.Name = core.StringPtr("testString") - catalogProductProviderModel.Email = core.StringPtr("testString") - Expect(catalogProductProviderModel.Name).To(Equal(core.StringPtr("testString"))) - Expect(catalogProductProviderModel.Email).To(Equal(core.StringPtr("testString"))) + catalogProductProviderModel.Name = core.StringPtr("IBM") + catalogProductProviderModel.Email = core.StringPtr("name.name@ibm.com") + Expect(catalogProductProviderModel.Name).To(Equal(core.StringPtr("IBM"))) + Expect(catalogProductProviderModel.Email).To(Equal(core.StringPtr("name.name@ibm.com"))) // Construct an instance of the GlobalCatalogOverviewUITranslatedContent model globalCatalogOverviewUiTranslatedContentModel := new(partnercentersellv1.GlobalCatalogOverviewUITranslatedContent) Expect(globalCatalogOverviewUiTranslatedContentModel).ToNot(BeNil()) - globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("testString") - globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("testString") - Expect(globalCatalogOverviewUiTranslatedContentModel.DisplayName).To(Equal(core.StringPtr("testString"))) - Expect(globalCatalogOverviewUiTranslatedContentModel.Description).To(Equal(core.StringPtr("testString"))) - Expect(globalCatalogOverviewUiTranslatedContentModel.LongDescription).To(Equal(core.StringPtr("testString"))) + globalCatalogOverviewUiTranslatedContentModel.DisplayName = core.StringPtr("My product display name.") + globalCatalogOverviewUiTranslatedContentModel.Description = core.StringPtr("My product description.") + globalCatalogOverviewUiTranslatedContentModel.LongDescription = core.StringPtr("My product description long description.") + Expect(globalCatalogOverviewUiTranslatedContentModel.DisplayName).To(Equal(core.StringPtr("My product display name."))) + Expect(globalCatalogOverviewUiTranslatedContentModel.Description).To(Equal(core.StringPtr("My product description."))) + Expect(globalCatalogOverviewUiTranslatedContentModel.LongDescription).To(Equal(core.StringPtr("My product description long description."))) // Construct an instance of the GlobalCatalogOverviewUI model globalCatalogOverviewUiModel := new(partnercentersellv1.GlobalCatalogOverviewUI) @@ -11925,8 +12212,10 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(globalCatalogMetadataUiStringsContentModel).ToNot(BeNil()) globalCatalogMetadataUiStringsContentModel.Bullets = []partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel} globalCatalogMetadataUiStringsContentModel.Media = []partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel} + globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard = core.StringPtr("testString") Expect(globalCatalogMetadataUiStringsContentModel.Bullets).To(Equal([]partnercentersellv1.CatalogHighlightItem{*catalogHighlightItemModel})) Expect(globalCatalogMetadataUiStringsContentModel.Media).To(Equal([]partnercentersellv1.CatalogProductMediaItem{*catalogProductMediaItemModel})) + Expect(globalCatalogMetadataUiStringsContentModel.EmbeddableDashboard).To(Equal(core.StringPtr("testString"))) // Construct an instance of the GlobalCatalogMetadataUIStrings model globalCatalogMetadataUiStringsModel := new(partnercentersellv1.GlobalCatalogMetadataUIStrings) @@ -11938,9 +12227,19 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogMetadataUiUrlsModel := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) Expect(globalCatalogMetadataUiUrlsModel).ToNot(BeNil()) globalCatalogMetadataUiUrlsModel.DocURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.ApidocsURL = core.StringPtr("testString") globalCatalogMetadataUiUrlsModel.TermsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.InstructionsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CatalogDetailsURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.CustomCreatePageURL = core.StringPtr("testString") + globalCatalogMetadataUiUrlsModel.Dashboard = core.StringPtr("testString") Expect(globalCatalogMetadataUiUrlsModel.DocURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.ApidocsURL).To(Equal(core.StringPtr("testString"))) Expect(globalCatalogMetadataUiUrlsModel.TermsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.InstructionsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.CatalogDetailsURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.CustomCreatePageURL).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogMetadataUiUrlsModel.Dashboard).To(Equal(core.StringPtr("testString"))) // Construct an instance of the GlobalCatalogMetadataUI model globalCatalogMetadataUiModel := new(partnercentersellv1.GlobalCatalogMetadataUI) @@ -11959,8 +12258,14 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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 SupportTimeInterval model supportTimeIntervalModel := new(partnercentersellv1.SupportTimeInterval) @@ -12040,11 +12345,31 @@ var _ = Describe(`PartnerCenterSellV1`, func() { globalCatalogProductMetadataOtherPcModel.Support = globalCatalogProductMetadataOtherPcSupportModel Expect(globalCatalogProductMetadataOtherPcModel.Support).To(Equal(globalCatalogProductMetadataOtherPcSupportModel)) + // Construct an instance of the GlobalCatalogProductMetadataOtherCompositeChild model + globalCatalogProductMetadataOtherCompositeChildModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + Expect(globalCatalogProductMetadataOtherCompositeChildModel).ToNot(BeNil()) + globalCatalogProductMetadataOtherCompositeChildModel.Kind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeChildModel.Name = core.StringPtr("testString") + Expect(globalCatalogProductMetadataOtherCompositeChildModel.Kind).To(Equal(core.StringPtr("service"))) + Expect(globalCatalogProductMetadataOtherCompositeChildModel.Name).To(Equal(core.StringPtr("testString"))) + + // Construct an instance of the GlobalCatalogProductMetadataOtherComposite model + globalCatalogProductMetadataOtherCompositeModel := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + Expect(globalCatalogProductMetadataOtherCompositeModel).ToNot(BeNil()) + globalCatalogProductMetadataOtherCompositeModel.CompositeKind = core.StringPtr("service") + globalCatalogProductMetadataOtherCompositeModel.CompositeTag = core.StringPtr("testString") + globalCatalogProductMetadataOtherCompositeModel.Children = []partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel} + Expect(globalCatalogProductMetadataOtherCompositeModel.CompositeKind).To(Equal(core.StringPtr("service"))) + Expect(globalCatalogProductMetadataOtherCompositeModel.CompositeTag).To(Equal(core.StringPtr("testString"))) + Expect(globalCatalogProductMetadataOtherCompositeModel.Children).To(Equal([]partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild{*globalCatalogProductMetadataOtherCompositeChildModel})) + // Construct an instance of the GlobalCatalogProductMetadataOther model globalCatalogProductMetadataOtherModel := new(partnercentersellv1.GlobalCatalogProductMetadataOther) Expect(globalCatalogProductMetadataOtherModel).ToNot(BeNil()) globalCatalogProductMetadataOtherModel.PC = globalCatalogProductMetadataOtherPcModel + globalCatalogProductMetadataOtherModel.Composite = globalCatalogProductMetadataOtherCompositeModel Expect(globalCatalogProductMetadataOtherModel.PC).To(Equal(globalCatalogProductMetadataOtherPcModel)) + Expect(globalCatalogProductMetadataOtherModel.Composite).To(Equal(globalCatalogProductMetadataOtherCompositeModel)) // Construct an instance of the GlobalCatalogProductMetadata model globalCatalogProductMetadataModel := new(partnercentersellv1.GlobalCatalogProductMetadata) @@ -12060,19 +12385,19 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateCatalogProductOptions model productID := "testString" - createCatalogProductOptionsName := "testString" + createCatalogProductOptionsName := "1p-service-08-06" createCatalogProductOptionsActive := true - createCatalogProductOptionsDisabled := true + createCatalogProductOptionsDisabled := false createCatalogProductOptionsKind := "service" - createCatalogProductOptionsTags := []string{"testString"} + createCatalogProductOptionsTags := []string{"keyword", "support_ibm"} var createCatalogProductOptionsObjectProvider *partnercentersellv1.CatalogProductProvider = nil createCatalogProductOptionsModel := partnerCenterSellService.NewCreateCatalogProductOptions(productID, createCatalogProductOptionsName, createCatalogProductOptionsActive, createCatalogProductOptionsDisabled, createCatalogProductOptionsKind, createCatalogProductOptionsTags, createCatalogProductOptionsObjectProvider) createCatalogProductOptionsModel.SetProductID("testString") - createCatalogProductOptionsModel.SetName("testString") + createCatalogProductOptionsModel.SetName("1p-service-08-06") createCatalogProductOptionsModel.SetActive(true) - createCatalogProductOptionsModel.SetDisabled(true) + createCatalogProductOptionsModel.SetDisabled(false) createCatalogProductOptionsModel.SetKind("service") - createCatalogProductOptionsModel.SetTags([]string{"testString"}) + createCatalogProductOptionsModel.SetTags([]string{"keyword", "support_ibm"}) createCatalogProductOptionsModel.SetObjectProvider(catalogProductProviderModel) createCatalogProductOptionsModel.SetID("testString") createCatalogProductOptionsModel.SetOverviewUi(globalCatalogOverviewUiModel) @@ -12082,11 +12407,11 @@ var _ = Describe(`PartnerCenterSellV1`, func() { createCatalogProductOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createCatalogProductOptionsModel).ToNot(BeNil()) Expect(createCatalogProductOptionsModel.ProductID).To(Equal(core.StringPtr("testString"))) - Expect(createCatalogProductOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(createCatalogProductOptionsModel.Name).To(Equal(core.StringPtr("1p-service-08-06"))) Expect(createCatalogProductOptionsModel.Active).To(Equal(core.BoolPtr(true))) - Expect(createCatalogProductOptionsModel.Disabled).To(Equal(core.BoolPtr(true))) + Expect(createCatalogProductOptionsModel.Disabled).To(Equal(core.BoolPtr(false))) Expect(createCatalogProductOptionsModel.Kind).To(Equal(core.StringPtr("service"))) - Expect(createCatalogProductOptionsModel.Tags).To(Equal([]string{"testString"})) + Expect(createCatalogProductOptionsModel.Tags).To(Equal([]string{"keyword", "support_ibm"})) Expect(createCatalogProductOptionsModel.ObjectProvider).To(Equal(catalogProductProviderModel)) Expect(createCatalogProductOptionsModel.ID).To(Equal(core.StringPtr("testString"))) Expect(createCatalogProductOptionsModel.OverviewUi).To(Equal(globalCatalogOverviewUiModel)) @@ -12327,10 +12652,10 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the SupportedRoleOptions model supportedRoleOptionsModel := new(partnercentersellv1.SupportedRoleOptions) Expect(supportedRoleOptionsModel).ToNot(BeNil()) - supportedRoleOptionsModel.AccessPolicy = map[string]string{"key1": "testString"} + supportedRoleOptionsModel.AccessPolicy = core.BoolPtr(true) supportedRoleOptionsModel.PolicyType = []string{"access"} supportedRoleOptionsModel.AccountType = core.StringPtr("enterprise") - Expect(supportedRoleOptionsModel.AccessPolicy).To(Equal(map[string]string{"key1": "testString"})) + Expect(supportedRoleOptionsModel.AccessPolicy).To(Equal(core.BoolPtr(true))) Expect(supportedRoleOptionsModel.PolicyType).To(Equal([]string{"access"})) Expect(supportedRoleOptionsModel.AccountType).To(Equal(core.StringPtr("enterprise"))) @@ -12370,7 +12695,8 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the CreateIamRegistrationOptions model productID := "testString" - createIamRegistrationOptionsModel := partnerCenterSellService.NewCreateIamRegistrationOptions(productID) + createIamRegistrationOptionsName := "testString" + createIamRegistrationOptionsModel := partnerCenterSellService.NewCreateIamRegistrationOptions(productID, createIamRegistrationOptionsName) createIamRegistrationOptionsModel.SetProductID("testString") createIamRegistrationOptionsModel.SetName("testString") createIamRegistrationOptionsModel.SetEnabled(true) @@ -12409,10 +12735,10 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) Expect(primaryContactModel).ToNot(BeNil()) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") - Expect(primaryContactModel.Name).To(Equal(core.StringPtr("testString"))) - Expect(primaryContactModel.Email).To(Equal(core.StringPtr("testString"))) + primaryContactModel.Name = core.StringPtr("name") + primaryContactModel.Email = core.StringPtr("name.name@ibm.com") + Expect(primaryContactModel.Name).To(Equal(core.StringPtr("name"))) + Expect(primaryContactModel.Email).To(Equal(core.StringPtr("name.name@ibm.com"))) // Construct an instance of the OnboardingProductSupportEscalationContactItems model onboardingProductSupportEscalationContactItemsModel := new(partnercentersellv1.OnboardingProductSupportEscalationContactItems) @@ -12431,10 +12757,10 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(onboardingProductSupportModel.EscalationContacts).To(Equal([]partnercentersellv1.OnboardingProductSupportEscalationContactItems{*onboardingProductSupportEscalationContactItemsModel})) // Construct an instance of the CreateOnboardingProductOptions model - createOnboardingProductOptionsType := "software" + createOnboardingProductOptionsType := "service" var createOnboardingProductOptionsPrimaryContact *partnercentersellv1.PrimaryContact = nil createOnboardingProductOptionsModel := partnerCenterSellService.NewCreateOnboardingProductOptions(createOnboardingProductOptionsType, createOnboardingProductOptionsPrimaryContact) - createOnboardingProductOptionsModel.SetType("software") + createOnboardingProductOptionsModel.SetType("service") createOnboardingProductOptionsModel.SetPrimaryContact(primaryContactModel) createOnboardingProductOptionsModel.SetEccnNumber("testString") createOnboardingProductOptionsModel.SetEroClass("testString") @@ -12443,7 +12769,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { createOnboardingProductOptionsModel.SetSupport(onboardingProductSupportModel) createOnboardingProductOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createOnboardingProductOptionsModel).ToNot(BeNil()) - Expect(createOnboardingProductOptionsModel.Type).To(Equal(core.StringPtr("software"))) + Expect(createOnboardingProductOptionsModel.Type).To(Equal(core.StringPtr("service"))) Expect(createOnboardingProductOptionsModel.PrimaryContact).To(Equal(primaryContactModel)) Expect(createOnboardingProductOptionsModel.EccnNumber).To(Equal(core.StringPtr("testString"))) Expect(createOnboardingProductOptionsModel.EroClass).To(Equal(core.StringPtr("testString"))) @@ -12456,25 +12782,25 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the PrimaryContact model primaryContactModel := new(partnercentersellv1.PrimaryContact) Expect(primaryContactModel).ToNot(BeNil()) - primaryContactModel.Name = core.StringPtr("testString") - primaryContactModel.Email = core.StringPtr("testString") - Expect(primaryContactModel.Name).To(Equal(core.StringPtr("testString"))) - Expect(primaryContactModel.Email).To(Equal(core.StringPtr("testString"))) + primaryContactModel.Name = core.StringPtr("Company Representative") + primaryContactModel.Email = core.StringPtr("companyrep@email.com") + Expect(primaryContactModel.Name).To(Equal(core.StringPtr("Company Representative"))) + Expect(primaryContactModel.Email).To(Equal(core.StringPtr("companyrep@email.com"))) // Construct an instance of the CreateRegistrationOptions model - createRegistrationOptionsAccountID := "testString" - createRegistrationOptionsCompanyName := "testString" + createRegistrationOptionsAccountID := "4a5c3c51b97a446fbb1d0e1ef089823b" + createRegistrationOptionsCompanyName := "Beautiful Company" var createRegistrationOptionsPrimaryContact *partnercentersellv1.PrimaryContact = nil createRegistrationOptionsModel := partnerCenterSellService.NewCreateRegistrationOptions(createRegistrationOptionsAccountID, createRegistrationOptionsCompanyName, createRegistrationOptionsPrimaryContact) - createRegistrationOptionsModel.SetAccountID("testString") - createRegistrationOptionsModel.SetCompanyName("testString") + createRegistrationOptionsModel.SetAccountID("4a5c3c51b97a446fbb1d0e1ef089823b") + createRegistrationOptionsModel.SetCompanyName("Beautiful Company") createRegistrationOptionsModel.SetPrimaryContact(primaryContactModel) createRegistrationOptionsModel.SetDefaultPrivateCatalogID("testString") createRegistrationOptionsModel.SetProviderAccessGroup("testString") createRegistrationOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createRegistrationOptionsModel).ToNot(BeNil()) - Expect(createRegistrationOptionsModel.AccountID).To(Equal(core.StringPtr("testString"))) - Expect(createRegistrationOptionsModel.CompanyName).To(Equal(core.StringPtr("testString"))) + Expect(createRegistrationOptionsModel.AccountID).To(Equal(core.StringPtr("4a5c3c51b97a446fbb1d0e1ef089823b"))) + Expect(createRegistrationOptionsModel.CompanyName).To(Equal(core.StringPtr("Beautiful Company"))) Expect(createRegistrationOptionsModel.PrimaryContact).To(Equal(primaryContactModel)) Expect(createRegistrationOptionsModel.DefaultPrivateCatalogID).To(Equal(core.StringPtr("testString"))) Expect(createRegistrationOptionsModel.ProviderAccessGroup).To(Equal(core.StringPtr("testString"))) @@ -12482,38 +12808,36 @@ var _ = Describe(`PartnerCenterSellV1`, func() { }) It(`Invoke NewCreateResourceBrokerOptions successfully`, func() { // Construct an instance of the CreateResourceBrokerOptions model - createResourceBrokerOptionsAuthUsername := "testString" - createResourceBrokerOptionsAuthPassword := "testString" - createResourceBrokerOptionsAuthScheme := "testString" - createResourceBrokerOptionsName := "testString" - createResourceBrokerOptionsBrokerURL := "testString" + createResourceBrokerOptionsAuthScheme := "bearer" + createResourceBrokerOptionsName := "brokername" + createResourceBrokerOptionsBrokerURL := "https://broker-url-for-my-service.com" createResourceBrokerOptionsType := "provision_through" - createResourceBrokerOptionsModel := partnerCenterSellService.NewCreateResourceBrokerOptions(createResourceBrokerOptionsAuthUsername, createResourceBrokerOptionsAuthPassword, createResourceBrokerOptionsAuthScheme, createResourceBrokerOptionsName, createResourceBrokerOptionsBrokerURL, createResourceBrokerOptionsType) - createResourceBrokerOptionsModel.SetAuthUsername("testString") - createResourceBrokerOptionsModel.SetAuthPassword("testString") - createResourceBrokerOptionsModel.SetAuthScheme("testString") - createResourceBrokerOptionsModel.SetName("testString") - createResourceBrokerOptionsModel.SetBrokerURL("testString") + createResourceBrokerOptionsModel := partnerCenterSellService.NewCreateResourceBrokerOptions(createResourceBrokerOptionsAuthScheme, createResourceBrokerOptionsName, createResourceBrokerOptionsBrokerURL, createResourceBrokerOptionsType) + createResourceBrokerOptionsModel.SetAuthScheme("bearer") + createResourceBrokerOptionsModel.SetName("brokername") + createResourceBrokerOptionsModel.SetBrokerURL("https://broker-url-for-my-service.com") createResourceBrokerOptionsModel.SetType("provision_through") - createResourceBrokerOptionsModel.SetResourceGroupCrn("testString") - createResourceBrokerOptionsModel.SetState("removed") - createResourceBrokerOptionsModel.SetAllowContextUpdates(true) - createResourceBrokerOptionsModel.SetCatalogType("testString") - createResourceBrokerOptionsModel.SetRegion("testString") + createResourceBrokerOptionsModel.SetAuthUsername("apikey") + createResourceBrokerOptionsModel.SetAuthPassword("testString") + createResourceBrokerOptionsModel.SetResourceGroupCrn("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f") + createResourceBrokerOptionsModel.SetState("active") + createResourceBrokerOptionsModel.SetAllowContextUpdates(false) + createResourceBrokerOptionsModel.SetCatalogType("service") + createResourceBrokerOptionsModel.SetRegion("global") createResourceBrokerOptionsModel.SetEnv("testString") createResourceBrokerOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createResourceBrokerOptionsModel).ToNot(BeNil()) - Expect(createResourceBrokerOptionsModel.AuthUsername).To(Equal(core.StringPtr("testString"))) - Expect(createResourceBrokerOptionsModel.AuthPassword).To(Equal(core.StringPtr("testString"))) - Expect(createResourceBrokerOptionsModel.AuthScheme).To(Equal(core.StringPtr("testString"))) - Expect(createResourceBrokerOptionsModel.Name).To(Equal(core.StringPtr("testString"))) - Expect(createResourceBrokerOptionsModel.BrokerURL).To(Equal(core.StringPtr("testString"))) + Expect(createResourceBrokerOptionsModel.AuthScheme).To(Equal(core.StringPtr("bearer"))) + Expect(createResourceBrokerOptionsModel.Name).To(Equal(core.StringPtr("brokername"))) + Expect(createResourceBrokerOptionsModel.BrokerURL).To(Equal(core.StringPtr("https://broker-url-for-my-service.com"))) Expect(createResourceBrokerOptionsModel.Type).To(Equal(core.StringPtr("provision_through"))) - Expect(createResourceBrokerOptionsModel.ResourceGroupCrn).To(Equal(core.StringPtr("testString"))) - Expect(createResourceBrokerOptionsModel.State).To(Equal(core.StringPtr("removed"))) - Expect(createResourceBrokerOptionsModel.AllowContextUpdates).To(Equal(core.BoolPtr(true))) - Expect(createResourceBrokerOptionsModel.CatalogType).To(Equal(core.StringPtr("testString"))) - Expect(createResourceBrokerOptionsModel.Region).To(Equal(core.StringPtr("testString"))) + Expect(createResourceBrokerOptionsModel.AuthUsername).To(Equal(core.StringPtr("apikey"))) + Expect(createResourceBrokerOptionsModel.AuthPassword).To(Equal(core.StringPtr("testString"))) + Expect(createResourceBrokerOptionsModel.ResourceGroupCrn).To(Equal(core.StringPtr("crn:v1:bluemix:public:resource-controller::a/4a5c3c51b97a446fbb1d0e1ef089823b::resource-group:4fae20bd538a4a738475350dfdc1596f"))) + Expect(createResourceBrokerOptionsModel.State).To(Equal(core.StringPtr("active"))) + Expect(createResourceBrokerOptionsModel.AllowContextUpdates).To(Equal(core.BoolPtr(false))) + Expect(createResourceBrokerOptionsModel.CatalogType).To(Equal(core.StringPtr("service"))) + Expect(createResourceBrokerOptionsModel.Region).To(Equal(core.StringPtr("global"))) Expect(createResourceBrokerOptionsModel.Env).To(Equal(core.StringPtr("testString"))) Expect(createResourceBrokerOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) @@ -12620,16 +12944,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(deleteResourceBrokerOptionsModel.RemoveFromAccount).To(Equal(core.BoolPtr(true))) Expect(deleteResourceBrokerOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) - It(`Invoke NewGetBadgeOptions successfully`, func() { - // Construct an instance of the GetBadgeOptions model - badgeID := CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673") - getBadgeOptionsModel := partnerCenterSellService.NewGetBadgeOptions(badgeID) - getBadgeOptionsModel.SetBadgeID(CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673")) - getBadgeOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) - Expect(getBadgeOptionsModel).ToNot(BeNil()) - Expect(getBadgeOptionsModel.BadgeID).To(Equal(CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673"))) - Expect(getBadgeOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) - }) It(`Invoke NewGetCatalogDeploymentOptions successfully`, func() { // Construct an instance of the GetCatalogDeploymentOptions model productID := "testString" @@ -12741,17 +13055,6 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(getResourceBrokerOptionsModel.Env).To(Equal(core.StringPtr("testString"))) Expect(getResourceBrokerOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) - It(`Invoke NewListBadgesOptions successfully`, func() { - // Construct an instance of the ListBadgesOptions model - listBadgesOptionsModel := partnerCenterSellService.NewListBadgesOptions() - listBadgesOptionsModel.SetLimit(int64(100)) - listBadgesOptionsModel.SetStart(CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673")) - listBadgesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) - Expect(listBadgesOptionsModel).ToNot(BeNil()) - Expect(listBadgesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(100)))) - Expect(listBadgesOptionsModel.Start).To(Equal(CreateMockUUID("9fab83da-98cb-4f18-a7ba-b6f0435c9673"))) - Expect(listBadgesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) - }) It(`Invoke NewListProductBadgesOptions successfully`, func() { // Construct an instance of the ListProductBadgesOptions model listProductBadgesOptionsModel := partnerCenterSellService.NewListProductBadgesOptions() @@ -12770,6 +13073,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) + It(`Invoke NewSupportedRoleOptions successfully`, func() { + accessPolicy := true + _model, err := partnerCenterSellService.NewSupportedRoleOptions(accessPolicy) + Expect(_model).ToNot(BeNil()) + Expect(err).To(BeNil()) + }) It(`Invoke NewUpdateCatalogDeploymentOptions successfully`, func() { // Construct an instance of the UpdateCatalogDeploymentOptions model productID := "testString" @@ -12898,9 +13207,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { It(`Invoke UnmarshalBrokerPatch successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.BrokerPatch) - model.AuthUsername = core.StringPtr("testString") + model.AuthUsername = core.StringPtr("apikey") model.AuthPassword = core.StringPtr("testString") - model.AuthScheme = core.StringPtr("testString") + model.AuthScheme = core.StringPtr("bearer") model.ResourceGroupCrn = core.StringPtr("testString") model.State = core.StringPtr("active") model.BrokerURL = core.StringPtr("testString") @@ -13028,6 +13337,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { model.RcCompatible = core.BoolPtr(true) model.Ui = nil model.Service = nil + model.Deployment = nil b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13065,6 +13375,46 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalGlobalCatalogMetadataDeployment successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogMetadataDeployment) + model.Broker = nil + model.Location = core.StringPtr("testString") + model.LocationURL = core.StringPtr("testString") + model.TargetCrn = 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.GlobalCatalogMetadataDeployment + err = partnercentersellv1.UnmarshalGlobalCatalogMetadataDeployment(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) + It(`Invoke UnmarshalGlobalCatalogMetadataDeploymentBroker successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogMetadataDeploymentBroker) + model.Name = core.StringPtr("testString") + model.Guid = 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.GlobalCatalogMetadataDeploymentBroker + err = partnercentersellv1.UnmarshalGlobalCatalogMetadataDeploymentBroker(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalGlobalCatalogMetadataPricing successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogMetadataPricing) @@ -13089,6 +13439,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { 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) b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13147,6 +13500,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { model := new(partnercentersellv1.GlobalCatalogMetadataUIStringsContent) model.Bullets = nil model.Media = nil + model.EmbeddableDashboard = core.StringPtr("testString") b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13165,7 +13519,12 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogMetadataUIUrls) model.DocURL = core.StringPtr("testString") + model.ApidocsURL = core.StringPtr("testString") model.TermsURL = core.StringPtr("testString") + model.InstructionsURL = core.StringPtr("testString") + model.CatalogDetailsURL = core.StringPtr("testString") + model.CustomCreatePageURL = core.StringPtr("testString") + model.Dashboard = core.StringPtr("testString") b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13223,7 +13582,9 @@ var _ = Describe(`PartnerCenterSellV1`, func() { model := new(partnercentersellv1.GlobalCatalogPlanMetadata) model.RcCompatible = core.BoolPtr(true) model.Ui = nil + model.Service = nil model.Pricing = nil + model.Plan = nil b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13238,6 +13599,25 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalGlobalCatalogPlanMetadataPlan successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogPlanMetadataPlan) + model.AllowInternalUsers = core.BoolPtr(true) + model.Bindable = 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.GlobalCatalogPlanMetadataPlan + err = partnercentersellv1.UnmarshalGlobalCatalogPlanMetadataPlan(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) @@ -13304,6 +13684,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogProductMetadataOther) model.PC = nil + model.Composite = nil b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -13318,6 +13699,45 @@ var _ = Describe(`PartnerCenterSellV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalGlobalCatalogProductMetadataOtherComposite successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogProductMetadataOtherComposite) + model.CompositeKind = core.StringPtr("service") + model.CompositeTag = core.StringPtr("testString") + model.Children = 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.GlobalCatalogProductMetadataOtherComposite + err = partnercentersellv1.UnmarshalGlobalCatalogProductMetadataOtherComposite(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) + It(`Invoke UnmarshalGlobalCatalogProductMetadataOtherCompositeChild successfully`, func() { + // Construct an instance of the model. + model := new(partnercentersellv1.GlobalCatalogProductMetadataOtherCompositeChild) + model.Kind = core.StringPtr("service") + model.Name = 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.GlobalCatalogProductMetadataOtherCompositeChild + err = partnercentersellv1.UnmarshalGlobalCatalogProductMetadataOtherCompositeChild(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalGlobalCatalogProductMetadataOtherPC successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.GlobalCatalogProductMetadataOtherPC) @@ -14051,7 +14471,7 @@ var _ = Describe(`PartnerCenterSellV1`, func() { It(`Invoke UnmarshalSupportedRoleOptions successfully`, func() { // Construct an instance of the model. model := new(partnercentersellv1.SupportedRoleOptions) - model.AccessPolicy = map[string]string{"key1": "testString"} + model.AccessPolicy = core.BoolPtr(true) model.PolicyType = []string{"access"} model.AccountType = core.StringPtr("enterprise")