diff --git a/projectv1/project_v1.go b/projectv1/project_v1.go index f3d94771..1851ba55 100644 --- a/projectv1/project_v1.go +++ b/projectv1/project_v1.go @@ -15,7 +15,7 @@ */ /* - * IBM OpenAPI SDK Code Generator Version: 3.67.0-df2073a1-20230222-221157 + * IBM OpenAPI SDK Code Generator Version: 3.66.0-d6c2d7e0-20230215-221247 */ // Package projectv1 : Operations and models for the ProjectV1 service @@ -30,12 +30,12 @@ import ( "time" "github.com/IBM/go-sdk-core/v5/core" - common "github.com/damianovesperini/platform-services-go-sdk/common" + common "github.com/IBM/platform-services-go-sdk/common" "github.com/go-openapi/strfmt" ) // ProjectV1 : This document is the **REST API specification** for the Projects Service. The Projects service provides -// the capability to manage infrastructure as code in IBM Cloud. +// the capability to manage Infrastructure as Code in IBM Cloud. // // API Version: 1.0.0 type ProjectV1 struct { @@ -43,7 +43,7 @@ type ProjectV1 struct { } // DefaultServiceURL is the default URL to make service requests to. -const DefaultServiceURL = "https://projects.api.test.cloud.ibm.com" +const DefaultServiceURL = "https://projects.api.cloud.ibm.com" // DefaultServiceName is the default key used to find external configuration information. const DefaultServiceName = "project" @@ -304,7 +304,7 @@ func (project *ProjectV1) ListProjectsWithContext(ctx context.Context, listProje } // GetProject : Get project by ID -// Get a project definition document by the ID. +// Get a project instance by ID. func (project *ProjectV1) GetProject(getProjectOptions *GetProjectOptions) (result *Project, response *core.DetailedResponse, err error) { return project.GetProjectWithContext(context.Background(), getProjectOptions) } @@ -577,7 +577,7 @@ func (project *ProjectV1) CreateConfigWithContext(ctx context.Context, createCon } // ListConfigs : List all project configurations -// Lists all of the project configurations for a specific project. +// The collection of configurations that are returned. func (project *ProjectV1) ListConfigs(listConfigsOptions *ListConfigsOptions) (result *ProjectConfigCollection, response *core.DetailedResponse, err error) { return project.ListConfigsWithContext(context.Background(), listConfigsOptions) } @@ -595,7 +595,6 @@ func (project *ProjectV1) ListConfigsWithContext(ctx context.Context, listConfig pathParamsMap := map[string]string{ "id": *listConfigsOptions.ID, - "projectId": *listConfigsOptions.ProjectID, } builder := core.NewRequestBuilder(core.GET) @@ -785,7 +784,7 @@ func (project *ProjectV1) UpdateConfigWithContext(ctx context.Context, updateCon // DeleteConfig : Delete a configuration in a project by ID // Delete a configuration in a project. Deleting the configuration will also destroy all the resources deployed by the -// configuration. +// configuration if the query parameter destroy is specified. func (project *ProjectV1) DeleteConfig(deleteConfigOptions *DeleteConfigOptions) (result *ProjectConfigDelete, response *core.DetailedResponse, err error) { return project.DeleteConfigWithContext(context.Background(), deleteConfigOptions) } @@ -1137,7 +1136,8 @@ func (project *ProjectV1) CheckConfigWithContext(ctx context.Context, checkConfi } // InstallConfig : Deploy a configuration -// Deploy a project's configuration. It is an asynchronous operation that can be tracked using the project status API. +// Deploy a project's configuration. It's an asynchronous operation that can be tracked using the get project +// configuration API with full metadata. func (project *ProjectV1) InstallConfig(installConfigOptions *InstallConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) { return project.InstallConfigWithContext(context.Background(), installConfigOptions) } @@ -1203,7 +1203,7 @@ func (project *ProjectV1) InstallConfigWithContext(ctx context.Context, installC // UninstallConfig : Destroy configuration resources // Destroy a project's configuration resources. The operation destroys all the resources that are deployed with the -// specific configuration. You can track it by using the project status API. +// specific configuration. You can track it by using the get project configuration API with full metadata. func (project *ProjectV1) UninstallConfig(uninstallConfigOptions *UninstallConfigOptions) (response *core.DetailedResponse, err error) { return project.UninstallConfigWithContext(context.Background(), uninstallConfigOptions) } @@ -4051,9 +4051,6 @@ type ListConfigsOptions struct { // The flag to determine if full metadata should be returned. Complete *bool `json:"complete,omitempty"` - // The project ID. - ProjectID *string `json:"projectId,omitempty"` - // Allows users to set headers on API requests Headers map[string]string } @@ -4091,12 +4088,6 @@ func (_options *ListConfigsOptions) SetComplete(complete bool) *ListConfigsOptio return _options } -// SetProjectID : Allow user to set ProjectID -func (_options *ListConfigsOptions) SetProjectID(projectID string) *ListConfigsOptions { - _options.ProjectID = core.StringPtr(projectID) - return _options -} - // SetHeaders : Allow user to set Headers func (options *ListConfigsOptions) SetHeaders(param map[string]string) *ListConfigsOptions { options.Headers = param @@ -4572,7 +4563,7 @@ type OutputValue struct { Description *string `json:"description,omitempty"` // The output value. - Value []string `json:"value,omitempty"` + Value []interface{} `json:"value,omitempty"` } // UnmarshalOutputValue unmarshals an instance of OutputValue from the specified map of raw messages. diff --git a/projectv1/project_v1_test.go b/projectv1/project_v1_test.go index 84e522f4..b64e083b 100644 --- a/projectv1/project_v1_test.go +++ b/projectv1/project_v1_test.go @@ -27,7 +27,7 @@ import ( "time" "github.com/IBM/go-sdk-core/v5/core" - "github.com/damianovesperini/platform-services-go-sdk/projectv1" + "github.com/IBM/platform-services-go-sdk/projectv1" "github.com/go-openapi/strfmt" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -269,7 +269,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) })) }) It(`Invoke CreateProject successfully with retries`, func() { @@ -364,7 +364,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) })) }) It(`Invoke CreateProject successfully`, func() { @@ -912,7 +912,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) })) }) It(`Invoke GetProject successfully with retries`, func() { @@ -970,7 +970,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) })) }) It(`Invoke GetProject successfully`, func() { @@ -1158,7 +1158,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) })) }) It(`Invoke UpdateProject successfully with retries`, func() { @@ -1236,7 +1236,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) + fmt.Fprintf(res, "%s", `{"name": "Name", "description": "Description", "id": "ID", "crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}], "metadata": {"crn": "crn:v1:staging:public:project:global:a/4e1c48fcf8ac33c0a2441e4139f189ae:bf40ad13-b107-446a-8286-c6d576183bb1::", "created_at": "2019-01-01T12:00:00.000Z", "cumulative_needs_attention_view": [{"event": "Event", "event_id": "EventID", "config_id": "ConfigID", "config_version": 13}], "cumulative_needs_attention_view_err": "CumulativeNeedsAttentionViewErr", "location": "Location", "resource_group": "ResourceGroup", "state": "State", "event_notifications_crn": "EventNotificationsCrn"}}`) })) }) It(`Invoke UpdateProject successfully`, func() { @@ -1521,7 +1521,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke CreateConfig successfully with retries`, func() { @@ -1607,7 +1607,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke CreateConfig successfully`, func() { @@ -1779,7 +1779,6 @@ var _ = Describe(`ProjectV1`, func() { // Construct an instance of the ListConfigsOptions model listConfigsOptionsModel := new(projectv1.ListConfigsOptions) listConfigsOptionsModel.ID = core.StringPtr("testString") - listConfigsOptionsModel.ProjectID = core.StringPtr("testString") listConfigsOptionsModel.Version = core.StringPtr("active") listConfigsOptionsModel.Complete = core.BoolPtr(false) listConfigsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -1820,7 +1819,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}]}`) + fmt.Fprintf(res, "%s", `{"configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}]}`) })) }) It(`Invoke ListConfigs successfully with retries`, func() { @@ -1835,7 +1834,6 @@ var _ = Describe(`ProjectV1`, func() { // Construct an instance of the ListConfigsOptions model listConfigsOptionsModel := new(projectv1.ListConfigsOptions) listConfigsOptionsModel.ID = core.StringPtr("testString") - listConfigsOptionsModel.ProjectID = core.StringPtr("testString") listConfigsOptionsModel.Version = core.StringPtr("active") listConfigsOptionsModel.Complete = core.BoolPtr(false) listConfigsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -1879,7 +1877,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}]}`) + fmt.Fprintf(res, "%s", `{"configs": [{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}]}`) })) }) It(`Invoke ListConfigs successfully`, func() { @@ -1899,7 +1897,6 @@ var _ = Describe(`ProjectV1`, func() { // Construct an instance of the ListConfigsOptions model listConfigsOptionsModel := new(projectv1.ListConfigsOptions) listConfigsOptionsModel.ID = core.StringPtr("testString") - listConfigsOptionsModel.ProjectID = core.StringPtr("testString") listConfigsOptionsModel.Version = core.StringPtr("active") listConfigsOptionsModel.Complete = core.BoolPtr(false) listConfigsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -1922,7 +1919,6 @@ var _ = Describe(`ProjectV1`, func() { // Construct an instance of the ListConfigsOptions model listConfigsOptionsModel := new(projectv1.ListConfigsOptions) listConfigsOptionsModel.ID = core.StringPtr("testString") - listConfigsOptionsModel.ProjectID = core.StringPtr("testString") listConfigsOptionsModel.Version = core.StringPtr("active") listConfigsOptionsModel.Complete = core.BoolPtr(false) listConfigsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -1966,7 +1962,6 @@ var _ = Describe(`ProjectV1`, func() { // Construct an instance of the ListConfigsOptions model listConfigsOptionsModel := new(projectv1.ListConfigsOptions) listConfigsOptionsModel.ID = core.StringPtr("testString") - listConfigsOptionsModel.ProjectID = core.StringPtr("testString") listConfigsOptionsModel.Version = core.StringPtr("active") listConfigsOptionsModel.Complete = core.BoolPtr(false) listConfigsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -2053,7 +2048,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke GetConfig successfully with retries`, func() { @@ -2112,7 +2107,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke GetConfig successfully`, func() { @@ -2307,7 +2302,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke UpdateConfig successfully with retries`, func() { @@ -2388,7 +2383,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke UpdateConfig successfully`, func() { @@ -3047,7 +3042,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke ForceApprove successfully with retries`, func() { @@ -3121,7 +3116,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke ForceApprove successfully`, func() { @@ -3309,7 +3304,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke Approve successfully with retries`, func() { @@ -3383,7 +3378,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke Approve successfully`, func() { @@ -3562,7 +3557,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke CheckConfig successfully with retries`, func() { @@ -3624,7 +3619,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke CheckConfig successfully`, func() { @@ -3798,7 +3793,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke InstallConfig successfully with retries`, func() { @@ -3855,7 +3850,7 @@ var _ = Describe(`ProjectV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["Value"]}], "setting": [{"name": "Name", "value": "Value"}]}`) + fmt.Fprintf(res, "%s", `{"id": "ID", "name": "Name", "labels": ["Labels"], "description": "Description", "locator_id": "LocatorID", "type": "terraform_template", "input": [{"name": "Name", "type": "array", "required": true}], "output": [{"name": "Name", "description": "Description", "value": ["anyValue"]}], "setting": [{"name": "Name", "value": "Value"}]}`) })) }) It(`Invoke InstallConfig successfully`, func() { @@ -8634,13 +8629,11 @@ var _ = Describe(`ProjectV1`, func() { listConfigsOptionsModel.SetID("testString") listConfigsOptionsModel.SetVersion("active") listConfigsOptionsModel.SetComplete(false) - listConfigsOptionsModel.SetProjectID("testString") listConfigsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listConfigsOptionsModel).ToNot(BeNil()) Expect(listConfigsOptionsModel.ID).To(Equal(core.StringPtr("testString"))) Expect(listConfigsOptionsModel.Version).To(Equal(core.StringPtr("active"))) Expect(listConfigsOptionsModel.Complete).To(Equal(core.BoolPtr(false))) - Expect(listConfigsOptionsModel.ProjectID).To(Equal(core.StringPtr("testString"))) Expect(listConfigsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListProjectsOptions successfully`, func() { @@ -8745,7 +8738,7 @@ var _ = Describe(`ProjectV1`, func() { outputValueModel := new(projectv1.OutputValue) outputValueModel.Name = core.StringPtr("testString") outputValueModel.Description = core.StringPtr("testString") - outputValueModel.Value = []string{"testString"} + outputValueModel.Value = []interface{}{"testString"} // Construct an instance of the ProjectConfigSettingCollection model projectConfigSettingCollectionModel := new(projectv1.ProjectConfigSettingCollection) @@ -8847,7 +8840,7 @@ var _ = Describe(`ProjectV1`, func() { outputValueModel := new(projectv1.OutputValue) outputValueModel.Name = core.StringPtr("testString") outputValueModel.Description = core.StringPtr("testString") - outputValueModel.Value = []string{"testString"} + outputValueModel.Value = []interface{}{"testString"} // Construct an instance of the ProjectConfigSettingCollection model projectConfigSettingCollectionModel := new(projectv1.ProjectConfigSettingCollection)