From b2b735cae2f4a8131af37c1ae338169f101815eb Mon Sep 17 00:00:00 2001 From: rangelil Date: Fri, 30 Aug 2024 15:20:34 +0200 Subject: [PATCH] regenerate terraform --- projectv1/project_v1.go | 244 ++++++++++++++++------- projectv1/project_v1_examples_test.go | 2 + projectv1/project_v1_integration_test.go | 22 +- projectv1/project_v1_test.go | 209 +++++++++++++++---- 4 files changed, 370 insertions(+), 107 deletions(-) diff --git a/projectv1/project_v1.go b/projectv1/project_v1.go index e350075..8680de1 100644 --- a/projectv1/project_v1.go +++ b/projectv1/project_v1.go @@ -15,7 +15,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.92.1-44330004-20240620-143510 + * IBM OpenAPI SDK Code Generator Version: 3.94.1-71478489-20240820-161623 */ // Package projectv1 : Operations and models for the ProjectV1 service @@ -2790,7 +2790,7 @@ type ApproveOptions struct { // nonempty comment. Comment *string `json:"comment,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -2909,7 +2909,7 @@ type CreateConfigOptions struct { // template](/docs/schematics?topic=schematics-sch-create-wks). Schematics *SchematicsWorkspace `json:"schematics,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -2953,7 +2953,7 @@ type CreateProjectEnvironmentOptions struct { // The environment definition. Definition *EnvironmentDefinitionRequiredProperties `json:"definition" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3002,7 +3002,7 @@ type CreateProjectOptions struct { // environment array is specified in the request payload. Environments []EnvironmentPrototype `json:"environments,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3072,7 +3072,7 @@ type CreateStackDefinitionOptions struct { // The definition block for a stack definition. StackDefinition *StackDefinitionBlockPrototype `json:"stack_definition" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3159,7 +3159,7 @@ type DeleteConfigOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3200,7 +3200,7 @@ type DeleteConfigVersionOptions struct { // The configuration version. Version *int64 `json:"version" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3245,7 +3245,7 @@ type DeleteProjectEnvironmentOptions struct { // The environment ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3280,7 +3280,7 @@ type DeleteProjectOptions struct { // The unique project ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3311,7 +3311,7 @@ type DeployConfigOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3688,7 +3688,7 @@ type ExportStackDefinitionOptions struct { // The payload for the private catalog export request. Settings StackDefinitionExportRequestIntf `json:"settings" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3737,7 +3737,7 @@ type ForceApproveOptions struct { // nonempty comment. Comment *string `json:"comment" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3782,7 +3782,7 @@ type GetConfigOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3823,7 +3823,7 @@ type GetConfigVersionOptions struct { // The configuration version. Version *int64 `json:"version" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3868,7 +3868,7 @@ type GetProjectEnvironmentOptions struct { // The environment ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3903,7 +3903,7 @@ type GetProjectOptions struct { // The unique project ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -3934,7 +3934,7 @@ type GetStackDefinitionOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -4163,7 +4163,7 @@ type ListConfigResourcesOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -4201,7 +4201,7 @@ type ListConfigVersionsOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -4244,7 +4244,7 @@ type ListConfigsOptions struct { // last page. Limit *int64 `json:"limit,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -4292,7 +4292,7 @@ type ListProjectEnvironmentsOptions struct { // last page. Limit *int64 `json:"limit,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -4337,7 +4337,7 @@ type ListProjectsOptions struct { // last page. Limit *int64 `json:"limit,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -6621,6 +6621,69 @@ func UnmarshalProjectDefinitionReference(m map[string]json.RawMessage, result in return } +// ProjectDefinitionStore : The details required to custom store project configs. +type ProjectDefinitionStore struct { + // The type of store used for the project. + Type *string `json:"type" validate:"required"` + + // A URL. + URL *string `json:"url" validate:"required"` + + // The IBM Cloud API Key. It can be either raw or pulled from the catalog via a `CRN` or `JSON` blob. + Token *string `json:"token,omitempty"` + + // The directory where project configs are stored. + ConfigDirectory *string `json:"config_directory,omitempty"` +} + +// Constants associated with the ProjectDefinitionStore.Type property. +// The type of store used for the project. +const ( + ProjectDefinitionStore_Type_Gh = "gh" + ProjectDefinitionStore_Type_Ghe = "ghe" + ProjectDefinitionStore_Type_Gitlab = "gitlab" +) + +// NewProjectDefinitionStore : Instantiate ProjectDefinitionStore (Generic Model Constructor) +func (*ProjectV1) NewProjectDefinitionStore(typeVar string, url string) (_model *ProjectDefinitionStore, err error) { + _model = &ProjectDefinitionStore{ + Type: core.StringPtr(typeVar), + URL: core.StringPtr(url), + } + err = core.ValidateStruct(_model, "required parameters") + if err != nil { + err = core.SDKErrorf(err, "", "model-missing-required", common.GetComponentInfo()) + } + return +} + +// UnmarshalProjectDefinitionStore unmarshals an instance of ProjectDefinitionStore from the specified map of raw messages. +func UnmarshalProjectDefinitionStore(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(ProjectDefinitionStore) + err = core.UnmarshalPrimitive(m, "type", &obj.Type) + if err != nil { + err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "url", &obj.URL) + if err != nil { + err = core.SDKErrorf(err, "", "url-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "token", &obj.Token) + if err != nil { + err = core.SDKErrorf(err, "", "token-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "config_directory", &obj.ConfigDirectory) + if err != nil { + err = core.SDKErrorf(err, "", "config_directory-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // ProjectDefinitionSummary : The definition of the project. type ProjectDefinitionSummary struct { // The name of the project. It's unique within the account across regions. @@ -6769,6 +6832,9 @@ type ProjectPatchDefinitionBlock struct { // A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your // configurations to your deployed resources to detect any difference. MonitoringEnabled *bool `json:"monitoring_enabled,omitempty"` + + // The details required to custom store project configs. + Store *ProjectDefinitionStore `json:"store,omitempty"` } // UnmarshalProjectPatchDefinitionBlock unmarshals an instance of ProjectPatchDefinitionBlock from the specified map of raw messages. @@ -6799,6 +6865,11 @@ func UnmarshalProjectPatchDefinitionBlock(m map[string]json.RawMessage, result i err = core.SDKErrorf(err, "", "monitoring_enabled-error", common.GetComponentInfo()) return } + err = core.UnmarshalModel(m, "store", &obj.Store, UnmarshalProjectDefinitionStore) + if err != nil { + err = core.SDKErrorf(err, "", "store-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -6815,6 +6886,9 @@ type ProjectPrototypeDefinition struct { // without providing a description. Description *string `json:"description,omitempty"` + // The details required to custom store project configs. + Store *ProjectDefinitionStore `json:"store,omitempty"` + // A boolean flag to enable auto deploy. AutoDeploy *bool `json:"auto_deploy,omitempty"` @@ -6853,6 +6927,11 @@ func UnmarshalProjectPrototypeDefinition(m map[string]json.RawMessage, result in err = core.SDKErrorf(err, "", "description-error", common.GetComponentInfo()) return } + err = core.UnmarshalModel(m, "store", &obj.Store, UnmarshalProjectDefinitionStore) + if err != nil { + err = core.SDKErrorf(err, "", "store-error", common.GetComponentInfo()) + return + } err = core.UnmarshalPrimitive(m, "auto_deploy", &obj.AutoDeploy) if err != nil { err = core.SDKErrorf(err, "", "auto_deploy-error", common.GetComponentInfo()) @@ -7224,26 +7303,16 @@ type StackDefinition struct { // format as specified by RFC 3339. ModifiedAt *strfmt.DateTime `json:"modified_at" validate:"required"` - // The state for the stack definition. - State *string `json:"state" validate:"required"` - - // The configuration reference. + // The stack parent configiguration to which the stack definition belongs. Configuration *StackDefinitionMetadataConfiguration `json:"configuration" validate:"required"` - // A URL. + // The resource path to retrieve the stack definition. Href *string `json:"href" validate:"required"` // The definition block for a stack definition. StackDefinition *StackDefinitionBlock `json:"stack_definition" validate:"required"` } -// Constants associated with the StackDefinition.State property. -// The state for the stack definition. -const ( - StackDefinition_State_Draft = "draft" - StackDefinition_State_Published = "published" -) - // UnmarshalStackDefinition unmarshals an instance of StackDefinition from the specified map of raw messages. func UnmarshalStackDefinition(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(StackDefinition) @@ -7262,11 +7331,6 @@ func UnmarshalStackDefinition(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "modified_at-error", common.GetComponentInfo()) return } - err = core.UnmarshalPrimitive(m, "state", &obj.State) - if err != nil { - err = core.SDKErrorf(err, "", "state-error", common.GetComponentInfo()) - return - } err = core.UnmarshalModel(m, "configuration", &obj.Configuration, UnmarshalStackDefinitionMetadataConfiguration) if err != nil { err = core.SDKErrorf(err, "", "configuration-error", common.GetComponentInfo()) @@ -7290,13 +7354,13 @@ func UnmarshalStackDefinition(m map[string]json.RawMessage, result interface{}) type StackDefinitionBlock struct { // Defines the inputs that users need to configure at the stack level. These inputs are included in the catalog entry // when the deployable architecture stack is exported to a private catalog. - Inputs []StackDefinitionInputVariable `json:"inputs,omitempty"` + Inputs []StackDefinitionInputVariable `json:"inputs" validate:"required"` // The outputs associated with this stack definition. - Outputs []StackDefinitionOutputVariable `json:"outputs,omitempty"` + Outputs []StackDefinitionOutputVariable `json:"outputs" validate:"required"` // The member deployabe architectures that are included in your stack. - Members []StackDefinitionMember `json:"members,omitempty"` + Members []StackDefinitionMember `json:"members" validate:"required"` } // UnmarshalStackDefinitionBlock unmarshals an instance of StackDefinitionBlock from the specified map of raw messages. @@ -7359,7 +7423,8 @@ type StackDefinitionExportRequest struct { // The semver value of this new version of the product. TargetVersion *string `json:"target_version,omitempty"` - // The variation of this new version of the product. + // The variation of the current software being onboarded. Only valid if the Product kind is module or solution. See + // `flavor` in [Catalog's import offering](/apidocs/resource-catalog/private-catalog#import-offering). Variation *string `json:"variation,omitempty"` // The product label. @@ -7419,19 +7484,32 @@ func UnmarshalStackDefinitionExportRequest(m map[string]json.RawMessage, result // StackDefinitionExportResponse : The payload for the stack definition export response. type StackDefinitionExportResponse struct { // The catalog ID to publish. - CatalogID *string `json:"catalog_id,omitempty"` + CatalogID *string `json:"catalog_id" validate:"required"` + + // The semver value of this new version of the product. + TargetVersion *string `json:"target_version,omitempty"` + + // The variation of the current software being onboarded. Only valid if the Product kind is module or solution. See + // `flavor` in [Catalog's import offering](/apidocs/resource-catalog/private-catalog#import-offering). + Variation *string `json:"variation,omitempty"` // The product ID to publish. - ProductID *string `json:"product_id,omitempty"` + ProductID *string `json:"product_id" validate:"required"` // The version locator of the created deployable architecture. - VersionLocator *string `json:"version_locator,omitempty"` + VersionLocator *string `json:"version_locator" validate:"required"` - // The product target kind value. + // The type of catalog entry, typically terraform. Kind *string `json:"kind,omitempty"` - // The product format kind value. + // Content kind, e.g., stack, helm, vm image. Format *string `json:"format,omitempty"` + + // The product label. + Label *string `json:"label,omitempty"` + + // Tags associated with the catalog product. + Tags []string `json:"tags,omitempty"` } // UnmarshalStackDefinitionExportResponse unmarshals an instance of StackDefinitionExportResponse from the specified map of raw messages. @@ -7442,6 +7520,16 @@ func UnmarshalStackDefinitionExportResponse(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "catalog_id-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "target_version", &obj.TargetVersion) + if err != nil { + err = core.SDKErrorf(err, "", "target_version-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "variation", &obj.Variation) + if err != nil { + err = core.SDKErrorf(err, "", "variation-error", common.GetComponentInfo()) + return + } err = core.UnmarshalPrimitive(m, "product_id", &obj.ProductID) if err != nil { err = core.SDKErrorf(err, "", "product_id-error", common.GetComponentInfo()) @@ -7462,6 +7550,16 @@ func UnmarshalStackDefinitionExportResponse(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "format-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, "tags", &obj.Tags) + if err != nil { + err = core.SDKErrorf(err, "", "tags-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -7475,16 +7573,16 @@ type StackDefinitionInputVariable struct { Type *string `json:"type" validate:"required"` // The description of the variable. - Description *string `json:"description,omitempty"` + Description *string `json:"description" validate:"required"` // This property can be any value - a string, number, boolean, array, or object. Default interface{} `json:"default" validate:"required"` // A boolean value to denote if the property is required. - Required *bool `json:"required,omitempty"` + Required *bool `json:"required" validate:"required"` // A boolean value to denote whether the property is hidden, as in not exposed to the user. - Hidden *bool `json:"hidden,omitempty"` + Hidden *bool `json:"hidden" validate:"required"` } // Constants associated with the StackDefinitionInputVariable.Type property. @@ -7501,11 +7599,14 @@ const ( ) // NewStackDefinitionInputVariable : Instantiate StackDefinitionInputVariable (Generic Model Constructor) -func (*ProjectV1) NewStackDefinitionInputVariable(name string, typeVar string, defaultVar interface{}) (_model *StackDefinitionInputVariable, err error) { +func (*ProjectV1) NewStackDefinitionInputVariable(name string, typeVar string, description string, defaultVar interface{}, required bool, hidden bool) (_model *StackDefinitionInputVariable, err error) { _model = &StackDefinitionInputVariable{ Name: core.StringPtr(name), Type: core.StringPtr(typeVar), + Description: core.StringPtr(description), Default: defaultVar, + Required: core.BoolPtr(required), + Hidden: core.BoolPtr(hidden), } err = core.ValidateStruct(_model, "required parameters") if err != nil { @@ -7611,12 +7712,12 @@ func UnmarshalStackDefinitionMemberInput(m map[string]json.RawMessage, result in return } -// StackDefinitionMetadataConfiguration : The configuration reference. +// StackDefinitionMetadataConfiguration : The stack parent configiguration to which the stack definition belongs. type StackDefinitionMetadataConfiguration struct { - // The unique ID. + // The unique ID of the stack parent configuration. ID *string `json:"id" validate:"required"` - // A URL. + // The resource path to retrieve the stack parent configuration. Href *string `json:"href" validate:"required"` // The definition of the config reference. @@ -7708,7 +7809,7 @@ type SyncConfigOptions struct { // template](/docs/schematics?topic=schematics-sch-create-wks). Schematics *SchematicsWorkspace `json:"schematics,omitempty"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -7745,13 +7846,14 @@ func (options *SyncConfigOptions) SetHeaders(param map[string]string) *SyncConfi } // TerraformLogAnalyzerErrorMessage : The error message that is parsed by the Terraform log analyzer. +// This type supports additional properties of type interface{}. type TerraformLogAnalyzerErrorMessage struct { - // Allows users to set arbitrary properties + // Allows users to set arbitrary properties of type interface{}. additionalProperties map[string]interface{} } -// SetProperty allows the user to set an arbitrary property on an instance of TerraformLogAnalyzerErrorMessage +// SetProperty allows the user to set an arbitrary property on an instance of TerraformLogAnalyzerErrorMessage. func (o *TerraformLogAnalyzerErrorMessage) SetProperty(key string, value interface{}) { if o.additionalProperties == nil { o.additionalProperties = make(map[string]interface{}) @@ -7759,7 +7861,7 @@ func (o *TerraformLogAnalyzerErrorMessage) SetProperty(key string, value interfa o.additionalProperties[key] = value } -// SetProperties allows the user to set a map of arbitrary properties on an instance of TerraformLogAnalyzerErrorMessage +// SetProperties allows the user to set a map of arbitrary properties on an instance of TerraformLogAnalyzerErrorMessage. func (o *TerraformLogAnalyzerErrorMessage) SetProperties(m map[string]interface{}) { o.additionalProperties = make(map[string]interface{}) for k, v := range m { @@ -7767,12 +7869,12 @@ func (o *TerraformLogAnalyzerErrorMessage) SetProperties(m map[string]interface{ } } -// GetProperty allows the user to retrieve an arbitrary property from an instance of TerraformLogAnalyzerErrorMessage +// GetProperty allows the user to retrieve an arbitrary property from an instance of TerraformLogAnalyzerErrorMessage. func (o *TerraformLogAnalyzerErrorMessage) GetProperty(key string) interface{} { return o.additionalProperties[key] } -// GetProperties allows the user to retrieve the map of arbitrary properties from an instance of TerraformLogAnalyzerErrorMessage +// GetProperties allows the user to retrieve the map of arbitrary properties from an instance of TerraformLogAnalyzerErrorMessage. func (o *TerraformLogAnalyzerErrorMessage) GetProperties() map[string]interface{} { return o.additionalProperties } @@ -7850,7 +7952,7 @@ type UndeployConfigOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -7890,7 +7992,7 @@ type UpdateConfigOptions struct { Definition ProjectConfigDefinitionPatchIntf `json:"definition" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -7938,7 +8040,7 @@ type UpdateProjectEnvironmentOptions struct { // The environment definition that is used for updates. Definition *EnvironmentDefinitionPropertiesPatch `json:"definition" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -7983,7 +8085,7 @@ type UpdateProjectOptions struct { // The definition of the project. Definition *ProjectPatchDefinitionBlock `json:"definition" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -8024,7 +8126,7 @@ type UpdateStackDefinitionOptions struct { // The definition block for a stack definition. StackDefinition *StackDefinitionBlockPrototype `json:"stack_definition" validate:"required"` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -8069,7 +8171,7 @@ type ValidateConfigOptions struct { // The unique configuration ID. ID *string `json:"id" validate:"required,ne="` - // Allows users to set headers on API requests + // Allows users to set headers on API requests. Headers map[string]string } @@ -8994,7 +9096,8 @@ type StackDefinitionExportRequestStackDefinitionExportCatalogRequest struct { // The semver value of this new version of the product. TargetVersion *string `json:"target_version,omitempty"` - // The variation of this new version of the product. + // The variation of the current software being onboarded. Only valid if the Product kind is module or solution. See + // `flavor` in [Catalog's import offering](/apidocs/resource-catalog/private-catalog#import-offering). Variation *string `json:"variation,omitempty"` // The product label. @@ -9062,7 +9165,8 @@ type StackDefinitionExportRequestStackDefinitionExportProductRequest struct { // The semver value of this new version of the product. TargetVersion *string `json:"target_version" validate:"required"` - // The variation of this new version of the product. + // The variation of the current software being onboarded. Only valid if the Product kind is module or solution. See + // `flavor` in [Catalog's import offering](/apidocs/resource-catalog/private-catalog#import-offering). Variation *string `json:"variation,omitempty"` // The product ID to publish. diff --git a/projectv1/project_v1_examples_test.go b/projectv1/project_v1_examples_test.go index 9dd6230..6aa1ffc 100644 --- a/projectv1/project_v1_examples_test.go +++ b/projectv1/project_v1_examples_test.go @@ -624,6 +624,7 @@ var _ = Describe(`ProjectV1 Examples Tests`, func() { stackDefinitionInputVariableModel := &projectv1.StackDefinitionInputVariable{ Name: core.StringPtr("region"), Type: core.StringPtr("string"), + Description: core.StringPtr("The IBM Cloud location where a resource is deployed."), Default: core.StringPtr("us-south"), Required: core.BoolPtr(true), Hidden: core.BoolPtr(false), @@ -687,6 +688,7 @@ var _ = Describe(`ProjectV1 Examples Tests`, func() { stackDefinitionInputVariableModel := &projectv1.StackDefinitionInputVariable{ Name: core.StringPtr("region"), Type: core.StringPtr("string"), + Description: core.StringPtr("The IBM Cloud location where a resource is deployed."), Default: core.StringPtr("eu-gb"), Required: core.BoolPtr(true), Hidden: core.BoolPtr(false), diff --git a/projectv1/project_v1_integration_test.go b/projectv1/project_v1_integration_test.go index 77b451f..361ac61 100644 --- a/projectv1/project_v1_integration_test.go +++ b/projectv1/project_v1_integration_test.go @@ -100,10 +100,18 @@ var _ = Describe(`ProjectV1 Integration Tests`, func() { shouldSkipTest() }) It(`CreateProject(createProjectOptions *CreateProjectOptions)`, func() { + projectDefinitionStoreModel := &projectv1.ProjectDefinitionStore{ + Type: core.StringPtr("gh"), + URL: core.StringPtr("testString"), + Token: core.StringPtr("testString"), + ConfigDirectory: core.StringPtr("testString"), + } + projectPrototypeDefinitionModel := &projectv1.ProjectPrototypeDefinition{ Name: core.StringPtr("acme-microservice"), DestroyOnDelete: core.BoolPtr(true), Description: core.StringPtr("A microservice to deploy on top of ACME infrastructure."), + Store: projectDefinitionStoreModel, AutoDeploy: core.BoolPtr(false), MonitoringEnabled: core.BoolPtr(false), } @@ -305,12 +313,20 @@ var _ = Describe(`ProjectV1 Integration Tests`, func() { shouldSkipTest() }) It(`UpdateProject(updateProjectOptions *UpdateProjectOptions)`, func() { + projectDefinitionStoreModel := &projectv1.ProjectDefinitionStore{ + Type: core.StringPtr("gh"), + URL: core.StringPtr("testString"), + Token: core.StringPtr("testString"), + ConfigDirectory: core.StringPtr("testString"), + } + projectPatchDefinitionBlockModel := &projectv1.ProjectPatchDefinitionBlock{ Name: core.StringPtr("acme-microservice"), DestroyOnDelete: core.BoolPtr(true), AutoDeploy: core.BoolPtr(true), Description: core.StringPtr("A microservice to deploy on top of ACME infrastructure."), MonitoringEnabled: core.BoolPtr(true), + Store: projectDefinitionStoreModel, } updateProjectOptions := &projectv1.UpdateProjectOptions{ @@ -742,7 +758,7 @@ var _ = Describe(`ProjectV1 Integration Tests`, func() { stackDefinitionInputVariableModel := &projectv1.StackDefinitionInputVariable{ Name: core.StringPtr("region"), Type: core.StringPtr("string"), - Description: core.StringPtr("testString"), + Description: core.StringPtr("The IBM Cloud location where a resource is deployed."), Default: core.StringPtr("us-south"), Required: core.BoolPtr(true), Hidden: core.BoolPtr(false), @@ -796,7 +812,7 @@ var _ = Describe(`ProjectV1 Integration Tests`, func() { stackDefinitionInputVariableModel := &projectv1.StackDefinitionInputVariable{ Name: core.StringPtr("region"), Type: core.StringPtr("string"), - Description: core.StringPtr("testString"), + Description: core.StringPtr("The IBM Cloud location where a resource is deployed."), Default: core.StringPtr("eu-gb"), Required: core.BoolPtr(true), Hidden: core.BoolPtr(false), @@ -835,7 +851,7 @@ var _ = Describe(`ProjectV1 Integration Tests`, func() { TargetVersion: core.StringPtr("testString"), Variation: core.StringPtr("testString"), Label: core.StringPtr("Stack Deployable Architecture"), - Tags: []string{"testString"}, + Tags: []string{}, } exportStackDefinitionOptions := &projectv1.ExportStackDefinitionOptions{ diff --git a/projectv1/project_v1_test.go b/projectv1/project_v1_test.go index 78cf8d4..4a324fe 100644 --- a/projectv1/project_v1_test.go +++ b/projectv1/project_v1_test.go @@ -188,11 +188,19 @@ var _ = Describe(`ProjectV1`, func() { Expect(serviceErr).To(BeNil()) Expect(projectService).ToNot(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPrototypeDefinition model projectPrototypeDefinitionModel := new(projectv1.ProjectPrototypeDefinition) projectPrototypeDefinitionModel.Name = core.StringPtr("acme-microservice") projectPrototypeDefinitionModel.DestroyOnDelete = core.BoolPtr(true) projectPrototypeDefinitionModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") + projectPrototypeDefinitionModel.Store = projectDefinitionStoreModel projectPrototypeDefinitionModel.AutoDeploy = core.BoolPtr(false) projectPrototypeDefinitionModel.MonitoringEnabled = core.BoolPtr(false) @@ -313,11 +321,19 @@ var _ = Describe(`ProjectV1`, func() { Expect(projectService).ToNot(BeNil()) projectService.EnableRetries(0, 0) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPrototypeDefinition model projectPrototypeDefinitionModel := new(projectv1.ProjectPrototypeDefinition) projectPrototypeDefinitionModel.Name = core.StringPtr("acme-microservice") projectPrototypeDefinitionModel.DestroyOnDelete = core.BoolPtr(true) projectPrototypeDefinitionModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") + projectPrototypeDefinitionModel.Store = projectDefinitionStoreModel projectPrototypeDefinitionModel.AutoDeploy = core.BoolPtr(false) projectPrototypeDefinitionModel.MonitoringEnabled = core.BoolPtr(false) @@ -446,11 +462,19 @@ var _ = Describe(`ProjectV1`, func() { Expect(response).To(BeNil()) Expect(result).To(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPrototypeDefinition model projectPrototypeDefinitionModel := new(projectv1.ProjectPrototypeDefinition) projectPrototypeDefinitionModel.Name = core.StringPtr("acme-microservice") projectPrototypeDefinitionModel.DestroyOnDelete = core.BoolPtr(true) projectPrototypeDefinitionModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") + projectPrototypeDefinitionModel.Store = projectDefinitionStoreModel projectPrototypeDefinitionModel.AutoDeploy = core.BoolPtr(false) projectPrototypeDefinitionModel.MonitoringEnabled = core.BoolPtr(false) @@ -524,11 +548,19 @@ var _ = Describe(`ProjectV1`, func() { Expect(serviceErr).To(BeNil()) Expect(projectService).ToNot(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPrototypeDefinition model projectPrototypeDefinitionModel := new(projectv1.ProjectPrototypeDefinition) projectPrototypeDefinitionModel.Name = core.StringPtr("acme-microservice") projectPrototypeDefinitionModel.DestroyOnDelete = core.BoolPtr(true) projectPrototypeDefinitionModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") + projectPrototypeDefinitionModel.Store = projectDefinitionStoreModel projectPrototypeDefinitionModel.AutoDeploy = core.BoolPtr(false) projectPrototypeDefinitionModel.MonitoringEnabled = core.BoolPtr(false) @@ -623,11 +655,19 @@ var _ = Describe(`ProjectV1`, func() { Expect(serviceErr).To(BeNil()) Expect(projectService).ToNot(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPrototypeDefinition model projectPrototypeDefinitionModel := new(projectv1.ProjectPrototypeDefinition) projectPrototypeDefinitionModel.Name = core.StringPtr("acme-microservice") projectPrototypeDefinitionModel.DestroyOnDelete = core.BoolPtr(true) projectPrototypeDefinitionModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") + projectPrototypeDefinitionModel.Store = projectDefinitionStoreModel projectPrototypeDefinitionModel.AutoDeploy = core.BoolPtr(false) projectPrototypeDefinitionModel.MonitoringEnabled = core.BoolPtr(false) @@ -1249,6 +1289,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(serviceErr).To(BeNil()) Expect(projectService).ToNot(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPatchDefinitionBlock model projectPatchDefinitionBlockModel := new(projectv1.ProjectPatchDefinitionBlock) projectPatchDefinitionBlockModel.Name = core.StringPtr("acme-microservice") @@ -1256,6 +1303,7 @@ var _ = Describe(`ProjectV1`, func() { projectPatchDefinitionBlockModel.AutoDeploy = core.BoolPtr(true) projectPatchDefinitionBlockModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") projectPatchDefinitionBlockModel.MonitoringEnabled = core.BoolPtr(true) + projectPatchDefinitionBlockModel.Store = projectDefinitionStoreModel // Construct an instance of the UpdateProjectOptions model updateProjectOptionsModel := new(projectv1.UpdateProjectOptions) @@ -1325,6 +1373,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(projectService).ToNot(BeNil()) projectService.EnableRetries(0, 0) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPatchDefinitionBlock model projectPatchDefinitionBlockModel := new(projectv1.ProjectPatchDefinitionBlock) projectPatchDefinitionBlockModel.Name = core.StringPtr("acme-microservice") @@ -1332,6 +1387,7 @@ var _ = Describe(`ProjectV1`, func() { projectPatchDefinitionBlockModel.AutoDeploy = core.BoolPtr(true) projectPatchDefinitionBlockModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") projectPatchDefinitionBlockModel.MonitoringEnabled = core.BoolPtr(true) + projectPatchDefinitionBlockModel.Store = projectDefinitionStoreModel // Construct an instance of the UpdateProjectOptions model updateProjectOptionsModel := new(projectv1.UpdateProjectOptions) @@ -1409,6 +1465,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(response).To(BeNil()) Expect(result).To(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPatchDefinitionBlock model projectPatchDefinitionBlockModel := new(projectv1.ProjectPatchDefinitionBlock) projectPatchDefinitionBlockModel.Name = core.StringPtr("acme-microservice") @@ -1416,6 +1479,7 @@ var _ = Describe(`ProjectV1`, func() { projectPatchDefinitionBlockModel.AutoDeploy = core.BoolPtr(true) projectPatchDefinitionBlockModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") projectPatchDefinitionBlockModel.MonitoringEnabled = core.BoolPtr(true) + projectPatchDefinitionBlockModel.Store = projectDefinitionStoreModel // Construct an instance of the UpdateProjectOptions model updateProjectOptionsModel := new(projectv1.UpdateProjectOptions) @@ -1438,6 +1502,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(serviceErr).To(BeNil()) Expect(projectService).ToNot(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPatchDefinitionBlock model projectPatchDefinitionBlockModel := new(projectv1.ProjectPatchDefinitionBlock) projectPatchDefinitionBlockModel.Name = core.StringPtr("acme-microservice") @@ -1445,6 +1516,7 @@ var _ = Describe(`ProjectV1`, func() { projectPatchDefinitionBlockModel.AutoDeploy = core.BoolPtr(true) projectPatchDefinitionBlockModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") projectPatchDefinitionBlockModel.MonitoringEnabled = core.BoolPtr(true) + projectPatchDefinitionBlockModel.Store = projectDefinitionStoreModel // Construct an instance of the UpdateProjectOptions model updateProjectOptionsModel := new(projectv1.UpdateProjectOptions) @@ -1488,6 +1560,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(serviceErr).To(BeNil()) Expect(projectService).ToNot(BeNil()) + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + // Construct an instance of the ProjectPatchDefinitionBlock model projectPatchDefinitionBlockModel := new(projectv1.ProjectPatchDefinitionBlock) projectPatchDefinitionBlockModel.Name = core.StringPtr("acme-microservice") @@ -1495,6 +1574,7 @@ var _ = Describe(`ProjectV1`, func() { projectPatchDefinitionBlockModel.AutoDeploy = core.BoolPtr(true) projectPatchDefinitionBlockModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") projectPatchDefinitionBlockModel.MonitoringEnabled = core.BoolPtr(true) + projectPatchDefinitionBlockModel.Store = projectDefinitionStoreModel // Construct an instance of the UpdateProjectOptions model updateProjectOptionsModel := new(projectv1.UpdateProjectOptions) @@ -6253,7 +6333,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "us-south" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6325,7 +6405,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "state": "draft", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": true, "hidden": true}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": false, "hidden": false}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) })) }) It(`Invoke CreateStackDefinition successfully with retries`, func() { @@ -6341,7 +6421,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "us-south" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6416,7 +6496,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "state": "draft", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": true, "hidden": true}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": false, "hidden": false}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) })) }) It(`Invoke CreateStackDefinition successfully`, func() { @@ -6437,7 +6517,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "us-south" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6478,7 +6558,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "us-south" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6540,7 +6620,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "us-south" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6638,7 +6718,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "state": "draft", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": true, "hidden": true}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": false, "hidden": false}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) })) }) It(`Invoke GetStackDefinition successfully with retries`, func() { @@ -6693,7 +6773,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "state": "draft", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": true, "hidden": true}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": false, "hidden": false}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) })) }) It(`Invoke GetStackDefinition successfully`, func() { @@ -6819,7 +6899,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "eu-gb" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6891,7 +6971,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "state": "draft", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": true, "hidden": true}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": false, "hidden": false}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) })) }) It(`Invoke UpdateStackDefinition successfully with retries`, func() { @@ -6907,7 +6987,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "eu-gb" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -6982,7 +7062,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "state": "draft", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": true, "hidden": true}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "created_at": "2019-01-01T12:00:00.000Z", "modified_at": "2019-01-01T12:00:00.000Z", "configuration": {"id": "ID", "href": "Href", "definition": {"name": "Name"}}, "href": "Href", "stack_definition": {"inputs": [{"name": "Name", "type": "array", "description": "Description", "default": "anyValue", "required": false, "hidden": false}], "outputs": [{"name": "Name", "value": "anyValue"}], "members": [{"name": "Name", "version_locator": "VersionLocator", "inputs": [{"name": "Name", "value": "anyValue"}]}]}}`) })) }) It(`Invoke UpdateStackDefinition successfully`, func() { @@ -7003,7 +7083,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "eu-gb" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -7044,7 +7124,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "eu-gb" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -7106,7 +7186,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionInputVariableModel := new(projectv1.StackDefinitionInputVariable) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "eu-gb" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) @@ -7170,7 +7250,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionExportRequestModel.TargetVersion = core.StringPtr("testString") stackDefinitionExportRequestModel.Variation = core.StringPtr("testString") stackDefinitionExportRequestModel.Label = core.StringPtr("Stack Deployable Architecture") - stackDefinitionExportRequestModel.Tags = []string{"testString"} + stackDefinitionExportRequestModel.Tags = []string{} // Construct an instance of the ExportStackDefinitionOptions model exportStackDefinitionOptionsModel := new(projectv1.ExportStackDefinitionOptions) @@ -7229,7 +7309,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"catalog_id": "CatalogID", "product_id": "ProductID", "version_locator": "VersionLocator", "kind": "Kind", "format": "Format"}`) + fmt.Fprintf(res, "%s", `{"catalog_id": "CatalogID", "target_version": "TargetVersion", "variation": "Variation", "product_id": "ProductID", "version_locator": "VersionLocator", "kind": "Kind", "format": "Format", "label": "Label", "tags": ["Tags"]}`) })) }) It(`Invoke ExportStackDefinition successfully with retries`, func() { @@ -7247,7 +7327,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionExportRequestModel.TargetVersion = core.StringPtr("testString") stackDefinitionExportRequestModel.Variation = core.StringPtr("testString") stackDefinitionExportRequestModel.Label = core.StringPtr("Stack Deployable Architecture") - stackDefinitionExportRequestModel.Tags = []string{"testString"} + stackDefinitionExportRequestModel.Tags = []string{} // Construct an instance of the ExportStackDefinitionOptions model exportStackDefinitionOptionsModel := new(projectv1.ExportStackDefinitionOptions) @@ -7309,7 +7389,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"catalog_id": "CatalogID", "product_id": "ProductID", "version_locator": "VersionLocator", "kind": "Kind", "format": "Format"}`) + fmt.Fprintf(res, "%s", `{"catalog_id": "CatalogID", "target_version": "TargetVersion", "variation": "Variation", "product_id": "ProductID", "version_locator": "VersionLocator", "kind": "Kind", "format": "Format", "label": "Label", "tags": ["Tags"]}`) })) }) It(`Invoke ExportStackDefinition successfully`, func() { @@ -7332,7 +7412,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionExportRequestModel.TargetVersion = core.StringPtr("testString") stackDefinitionExportRequestModel.Variation = core.StringPtr("testString") stackDefinitionExportRequestModel.Label = core.StringPtr("Stack Deployable Architecture") - stackDefinitionExportRequestModel.Tags = []string{"testString"} + stackDefinitionExportRequestModel.Tags = []string{} // Construct an instance of the ExportStackDefinitionOptions model exportStackDefinitionOptionsModel := new(projectv1.ExportStackDefinitionOptions) @@ -7362,7 +7442,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionExportRequestModel.TargetVersion = core.StringPtr("testString") stackDefinitionExportRequestModel.Variation = core.StringPtr("testString") stackDefinitionExportRequestModel.Label = core.StringPtr("Stack Deployable Architecture") - stackDefinitionExportRequestModel.Tags = []string{"testString"} + stackDefinitionExportRequestModel.Tags = []string{} // Construct an instance of the ExportStackDefinitionOptions model exportStackDefinitionOptionsModel := new(projectv1.ExportStackDefinitionOptions) @@ -7413,7 +7493,7 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionExportRequestModel.TargetVersion = core.StringPtr("testString") stackDefinitionExportRequestModel.Variation = core.StringPtr("testString") stackDefinitionExportRequestModel.Label = core.StringPtr("Stack Deployable Architecture") - stackDefinitionExportRequestModel.Tags = []string{"testString"} + stackDefinitionExportRequestModel.Tags = []string{} // Construct an instance of the ExportStackDefinitionOptions model exportStackDefinitionOptionsModel := new(projectv1.ExportStackDefinitionOptions) @@ -8234,17 +8314,31 @@ var _ = Describe(`ProjectV1`, func() { Expect(createProjectEnvironmentOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewCreateProjectOptions successfully`, func() { + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + Expect(projectDefinitionStoreModel).ToNot(BeNil()) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + Expect(projectDefinitionStoreModel.Type).To(Equal(core.StringPtr("gh"))) + Expect(projectDefinitionStoreModel.URL).To(Equal(core.StringPtr("testString"))) + Expect(projectDefinitionStoreModel.Token).To(Equal(core.StringPtr("testString"))) + Expect(projectDefinitionStoreModel.ConfigDirectory).To(Equal(core.StringPtr("testString"))) + // Construct an instance of the ProjectPrototypeDefinition model projectPrototypeDefinitionModel := new(projectv1.ProjectPrototypeDefinition) Expect(projectPrototypeDefinitionModel).ToNot(BeNil()) projectPrototypeDefinitionModel.Name = core.StringPtr("acme-microservice") projectPrototypeDefinitionModel.DestroyOnDelete = core.BoolPtr(true) projectPrototypeDefinitionModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") + projectPrototypeDefinitionModel.Store = projectDefinitionStoreModel projectPrototypeDefinitionModel.AutoDeploy = core.BoolPtr(false) projectPrototypeDefinitionModel.MonitoringEnabled = core.BoolPtr(false) Expect(projectPrototypeDefinitionModel.Name).To(Equal(core.StringPtr("acme-microservice"))) Expect(projectPrototypeDefinitionModel.DestroyOnDelete).To(Equal(core.BoolPtr(true))) Expect(projectPrototypeDefinitionModel.Description).To(Equal(core.StringPtr("A microservice to deploy on top of ACME infrastructure."))) + Expect(projectPrototypeDefinitionModel.Store).To(Equal(projectDefinitionStoreModel)) Expect(projectPrototypeDefinitionModel.AutoDeploy).To(Equal(core.BoolPtr(false))) Expect(projectPrototypeDefinitionModel.MonitoringEnabled).To(Equal(core.BoolPtr(false))) @@ -8351,13 +8445,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(stackDefinitionInputVariableModel).ToNot(BeNil()) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "us-south" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) Expect(stackDefinitionInputVariableModel.Name).To(Equal(core.StringPtr("region"))) Expect(stackDefinitionInputVariableModel.Type).To(Equal(core.StringPtr("string"))) - Expect(stackDefinitionInputVariableModel.Description).To(Equal(core.StringPtr("testString"))) + Expect(stackDefinitionInputVariableModel.Description).To(Equal(core.StringPtr("The IBM Cloud location where a resource is deployed."))) Expect(stackDefinitionInputVariableModel.Default).To(Equal("us-south")) Expect(stackDefinitionInputVariableModel.Required).To(Equal(core.BoolPtr(true))) Expect(stackDefinitionInputVariableModel.Hidden).To(Equal(core.BoolPtr(false))) @@ -8477,12 +8571,12 @@ var _ = Describe(`ProjectV1`, func() { stackDefinitionExportRequestModel.TargetVersion = core.StringPtr("testString") stackDefinitionExportRequestModel.Variation = core.StringPtr("testString") stackDefinitionExportRequestModel.Label = core.StringPtr("testString") - stackDefinitionExportRequestModel.Tags = []string{"testString"} + stackDefinitionExportRequestModel.Tags = []string{} Expect(stackDefinitionExportRequestModel.CatalogID).To(Equal(core.StringPtr("testString"))) Expect(stackDefinitionExportRequestModel.TargetVersion).To(Equal(core.StringPtr("testString"))) Expect(stackDefinitionExportRequestModel.Variation).To(Equal(core.StringPtr("testString"))) Expect(stackDefinitionExportRequestModel.Label).To(Equal(core.StringPtr("testString"))) - Expect(stackDefinitionExportRequestModel.Tags).To(Equal([]string{"testString"})) + Expect(stackDefinitionExportRequestModel.Tags).To(Equal([]string{})) // Construct an instance of the ExportStackDefinitionOptions model projectID := "testString" @@ -8650,6 +8744,13 @@ var _ = Describe(`ProjectV1`, func() { _, err := projectService.NewProjectConfigPrototype(definition) Expect(err).ToNot(BeNil()) }) + It(`Invoke NewProjectDefinitionStore successfully`, func() { + typeVar := "gh" + url := "testString" + _model, err := projectService.NewProjectDefinitionStore(typeVar, url) + Expect(_model).ToNot(BeNil()) + Expect(err).To(BeNil()) + }) It(`Invoke NewProjectPrototypeDefinition successfully`, func() { name := "testString" _model, err := projectService.NewProjectPrototypeDefinition(name) @@ -8666,8 +8767,11 @@ var _ = Describe(`ProjectV1`, func() { It(`Invoke NewStackDefinitionInputVariable successfully`, func() { name := "testString" typeVar := "array" + description := "testString" defaultVar := "testString" - _model, err := projectService.NewStackDefinitionInputVariable(name, typeVar, defaultVar) + required := false + hidden := false + _model, err := projectService.NewStackDefinitionInputVariable(name, typeVar, description, defaultVar, required, hidden) Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) @@ -8827,6 +8931,18 @@ var _ = Describe(`ProjectV1`, func() { Expect(updateProjectEnvironmentOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewUpdateProjectOptions successfully`, func() { + // Construct an instance of the ProjectDefinitionStore model + projectDefinitionStoreModel := new(projectv1.ProjectDefinitionStore) + Expect(projectDefinitionStoreModel).ToNot(BeNil()) + projectDefinitionStoreModel.Type = core.StringPtr("gh") + projectDefinitionStoreModel.URL = core.StringPtr("testString") + projectDefinitionStoreModel.Token = core.StringPtr("testString") + projectDefinitionStoreModel.ConfigDirectory = core.StringPtr("testString") + Expect(projectDefinitionStoreModel.Type).To(Equal(core.StringPtr("gh"))) + Expect(projectDefinitionStoreModel.URL).To(Equal(core.StringPtr("testString"))) + Expect(projectDefinitionStoreModel.Token).To(Equal(core.StringPtr("testString"))) + Expect(projectDefinitionStoreModel.ConfigDirectory).To(Equal(core.StringPtr("testString"))) + // Construct an instance of the ProjectPatchDefinitionBlock model projectPatchDefinitionBlockModel := new(projectv1.ProjectPatchDefinitionBlock) Expect(projectPatchDefinitionBlockModel).ToNot(BeNil()) @@ -8835,11 +8951,13 @@ var _ = Describe(`ProjectV1`, func() { projectPatchDefinitionBlockModel.AutoDeploy = core.BoolPtr(true) projectPatchDefinitionBlockModel.Description = core.StringPtr("A microservice to deploy on top of ACME infrastructure.") projectPatchDefinitionBlockModel.MonitoringEnabled = core.BoolPtr(true) + projectPatchDefinitionBlockModel.Store = projectDefinitionStoreModel Expect(projectPatchDefinitionBlockModel.Name).To(Equal(core.StringPtr("acme-microservice"))) Expect(projectPatchDefinitionBlockModel.DestroyOnDelete).To(Equal(core.BoolPtr(true))) Expect(projectPatchDefinitionBlockModel.AutoDeploy).To(Equal(core.BoolPtr(true))) Expect(projectPatchDefinitionBlockModel.Description).To(Equal(core.StringPtr("A microservice to deploy on top of ACME infrastructure."))) Expect(projectPatchDefinitionBlockModel.MonitoringEnabled).To(Equal(core.BoolPtr(true))) + Expect(projectPatchDefinitionBlockModel.Store).To(Equal(projectDefinitionStoreModel)) // Construct an instance of the UpdateProjectOptions model id := "testString" @@ -8859,13 +8977,13 @@ var _ = Describe(`ProjectV1`, func() { Expect(stackDefinitionInputVariableModel).ToNot(BeNil()) stackDefinitionInputVariableModel.Name = core.StringPtr("region") stackDefinitionInputVariableModel.Type = core.StringPtr("string") - stackDefinitionInputVariableModel.Description = core.StringPtr("testString") + stackDefinitionInputVariableModel.Description = core.StringPtr("The IBM Cloud location where a resource is deployed.") stackDefinitionInputVariableModel.Default = "eu-gb" stackDefinitionInputVariableModel.Required = core.BoolPtr(true) stackDefinitionInputVariableModel.Hidden = core.BoolPtr(false) Expect(stackDefinitionInputVariableModel.Name).To(Equal(core.StringPtr("region"))) Expect(stackDefinitionInputVariableModel.Type).To(Equal(core.StringPtr("string"))) - Expect(stackDefinitionInputVariableModel.Description).To(Equal(core.StringPtr("testString"))) + Expect(stackDefinitionInputVariableModel.Description).To(Equal(core.StringPtr("The IBM Cloud location where a resource is deployed."))) Expect(stackDefinitionInputVariableModel.Default).To(Equal("eu-gb")) Expect(stackDefinitionInputVariableModel.Required).To(Equal(core.BoolPtr(true))) Expect(stackDefinitionInputVariableModel.Hidden).To(Equal(core.BoolPtr(false))) @@ -9127,6 +9245,27 @@ var _ = Describe(`ProjectV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalProjectDefinitionStore successfully`, func() { + // Construct an instance of the model. + model := new(projectv1.ProjectDefinitionStore) + model.Type = core.StringPtr("gh") + model.URL = core.StringPtr("testString") + model.Token = core.StringPtr("testString") + model.ConfigDirectory = 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 *projectv1.ProjectDefinitionStore + err = projectv1.UnmarshalProjectDefinitionStore(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalProjectPatchDefinitionBlock successfully`, func() { // Construct an instance of the model. model := new(projectv1.ProjectPatchDefinitionBlock) @@ -9135,6 +9274,7 @@ var _ = Describe(`ProjectV1`, func() { model.AutoDeploy = core.BoolPtr(true) model.Description = core.StringPtr("testString") model.MonitoringEnabled = core.BoolPtr(true) + model.Store = nil b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -9155,6 +9295,7 @@ var _ = Describe(`ProjectV1`, func() { model.Name = core.StringPtr("testString") model.DestroyOnDelete = core.BoolPtr(true) model.Description = core.StringPtr("testString") + model.Store = nil model.AutoDeploy = core.BoolPtr(false) model.MonitoringEnabled = core.BoolPtr(false) @@ -9234,7 +9375,7 @@ var _ = Describe(`ProjectV1`, func() { model.TargetVersion = core.StringPtr("testString") model.Variation = core.StringPtr("testString") model.Label = core.StringPtr("testString") - model.Tags = []string{"testString"} + model.Tags = []string{} model.ProductID = core.StringPtr("testString") b, err := json.Marshal(model) @@ -9257,8 +9398,8 @@ var _ = Describe(`ProjectV1`, func() { model.Type = core.StringPtr("array") model.Description = core.StringPtr("testString") model.Default = "testString" - model.Required = core.BoolPtr(true) - model.Hidden = core.BoolPtr(true) + model.Required = core.BoolPtr(false) + model.Hidden = core.BoolPtr(false) b, err := json.Marshal(model) Expect(err).To(BeNil()) @@ -9449,7 +9590,7 @@ var _ = Describe(`ProjectV1`, func() { model.TargetVersion = core.StringPtr("testString") model.Variation = core.StringPtr("testString") model.Label = core.StringPtr("testString") - model.Tags = []string{"testString"} + model.Tags = []string{} b, err := json.Marshal(model) Expect(err).To(BeNil())