diff --git a/upgradepolicy/.openapi-generator/FILES b/upgradepolicy/.openapi-generator/FILES index 94b37cf..164cb73 100644 --- a/upgradepolicy/.openapi-generator/FILES +++ b/upgradepolicy/.openapi-generator/FILES @@ -1,4 +1,3 @@ -.openapi-generator-ignore README.md api/openapi.yaml api_upgrade_policy_v2.go @@ -48,5 +47,4 @@ model_update_batch_maintenance_window.go model_update_maintenance_window.go model_update_maintenance_window_request.go model_update_maintenance_window_response.go -test/api_upgrade_policy_v2_test.go utils.go diff --git a/upgradepolicy/api/openapi.yaml b/upgradepolicy/api/openapi.yaml index 3b0420f..c12e2f1 100644 --- a/upgradepolicy/api/openapi.yaml +++ b/upgradepolicy/api/openapi.yaml @@ -240,8 +240,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" - scheduled_window: duration: 0 start_time: 6 @@ -257,8 +256,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" properties: result: $ref: '#/components/schemas/service_v2BatchMaintenanceWindowResult' @@ -284,8 +282,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" - scheduled_window: duration: 0 start_time: 6 @@ -301,8 +298,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" properties: created_ids: items: @@ -323,8 +319,7 @@ components: scheduled_window: $ref: '#/components/schemas/service_v2ScheduledWindow' tags: - additionalProperties: - type: object + additionalProperties: false type: object window_type: type: string @@ -401,8 +396,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" properties: result: $ref: '#/components/schemas/service_v2MaintenanceWindow' @@ -425,8 +419,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" - scheduled_window: duration: 0 start_time: 6 @@ -442,8 +435,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" properties: result: items: @@ -467,8 +459,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" properties: deferred_window: $ref: '#/components/schemas/service_v2DeferredWindow' @@ -478,8 +469,7 @@ components: scheduled_window: $ref: '#/components/schemas/service_v2ScheduledWindow' tags: - additionalProperties: - type: object + additionalProperties: false type: object window_type: readOnly: true @@ -555,8 +545,7 @@ components: scheduled_window: $ref: '#/components/schemas/service_v2ScheduledWindow' tags: - additionalProperties: - type: object + additionalProperties: false type: object type: object service_v2UpdateMaintenanceWindow: @@ -569,8 +558,7 @@ components: scheduled_window: $ref: '#/components/schemas/service_v2ScheduledWindow' tags: - additionalProperties: - type: object + additionalProperties: false type: object title: "Update maintenance window structure which includes schedule window,\ \ defer window and tags" @@ -602,8 +590,7 @@ components: end_time: 2000-01-23T04:56:07.000+00:00 created_at: 2000-01-23T04:56:07.000+00:00 enabled: true - tags: - key: "{}" + tags: "{}" properties: result: $ref: '#/components/schemas/service_v2MaintenanceWindow' diff --git a/upgradepolicy/docs/CreateMaintenanceWindow.md b/upgradepolicy/docs/CreateMaintenanceWindow.md index 3444f64..a6a48e9 100644 --- a/upgradepolicy/docs/CreateMaintenanceWindow.md +++ b/upgradepolicy/docs/CreateMaintenanceWindow.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **DeferredWindow** | Pointer to [**DeferredWindow**](DeferredWindow.md) | | [optional] **Id** | Pointer to **string** | | [optional] [readonly] **ScheduledWindow** | Pointer to [**ScheduledWindow**](ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Tags** | Pointer to **map[string]interface{}** | | [optional] **WindowType** | Pointer to **string** | | [optional] ## Methods @@ -106,20 +106,20 @@ HasScheduledWindow returns a boolean if a field has been set. ### GetTags -`func (o *CreateMaintenanceWindow) GetTags() map[string]map[string]interface{}` +`func (o *CreateMaintenanceWindow) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *CreateMaintenanceWindow) GetTagsOk() (*map[string]map[string]interface{}, bool)` +`func (o *CreateMaintenanceWindow) GetTagsOk() (*map[string]interface{}, bool)` GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTags -`func (o *CreateMaintenanceWindow) SetTags(v map[string]map[string]interface{})` +`func (o *CreateMaintenanceWindow) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. diff --git a/upgradepolicy/docs/MaintenanceWindow.md b/upgradepolicy/docs/MaintenanceWindow.md index a83a0ab..fcae075 100644 --- a/upgradepolicy/docs/MaintenanceWindow.md +++ b/upgradepolicy/docs/MaintenanceWindow.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **DeferredWindow** | Pointer to [**DeferredWindow**](DeferredWindow.md) | | [optional] **Id** | Pointer to **string** | | [optional] [readonly] **ScheduledWindow** | Pointer to [**ScheduledWindow**](ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Tags** | Pointer to **map[string]interface{}** | | [optional] **WindowType** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -106,20 +106,20 @@ HasScheduledWindow returns a boolean if a field has been set. ### GetTags -`func (o *MaintenanceWindow) GetTags() map[string]map[string]interface{}` +`func (o *MaintenanceWindow) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *MaintenanceWindow) GetTagsOk() (*map[string]map[string]interface{}, bool)` +`func (o *MaintenanceWindow) GetTagsOk() (*map[string]interface{}, bool)` GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTags -`func (o *MaintenanceWindow) SetTags(v map[string]map[string]interface{})` +`func (o *MaintenanceWindow) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. diff --git a/upgradepolicy/docs/UpdateBatchMaintenanceWindow.md b/upgradepolicy/docs/UpdateBatchMaintenanceWindow.md index ebbe8c4..df0f2ef 100644 --- a/upgradepolicy/docs/UpdateBatchMaintenanceWindow.md +++ b/upgradepolicy/docs/UpdateBatchMaintenanceWindow.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **DeferredWindow** | Pointer to [**DeferredWindow**](DeferredWindow.md) | | [optional] **MwId** | Pointer to **string** | | [optional] **ScheduledWindow** | Pointer to [**ScheduledWindow**](ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Tags** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -105,20 +105,20 @@ HasScheduledWindow returns a boolean if a field has been set. ### GetTags -`func (o *UpdateBatchMaintenanceWindow) GetTags() map[string]map[string]interface{}` +`func (o *UpdateBatchMaintenanceWindow) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *UpdateBatchMaintenanceWindow) GetTagsOk() (*map[string]map[string]interface{}, bool)` +`func (o *UpdateBatchMaintenanceWindow) GetTagsOk() (*map[string]interface{}, bool)` GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTags -`func (o *UpdateBatchMaintenanceWindow) SetTags(v map[string]map[string]interface{})` +`func (o *UpdateBatchMaintenanceWindow) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. diff --git a/upgradepolicy/docs/UpdateMaintenanceWindow.md b/upgradepolicy/docs/UpdateMaintenanceWindow.md index ce25eaa..cf60a82 100644 --- a/upgradepolicy/docs/UpdateMaintenanceWindow.md +++ b/upgradepolicy/docs/UpdateMaintenanceWindow.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **DeferredWindow** | Pointer to [**DeferredWindow**](DeferredWindow.md) | | [optional] **Id** | Pointer to **string** | | [optional] [readonly] **ScheduledWindow** | Pointer to [**ScheduledWindow**](ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] +**Tags** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -105,20 +105,20 @@ HasScheduledWindow returns a boolean if a field has been set. ### GetTags -`func (o *UpdateMaintenanceWindow) GetTags() map[string]map[string]interface{}` +`func (o *UpdateMaintenanceWindow) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *UpdateMaintenanceWindow) GetTagsOk() (*map[string]map[string]interface{}, bool)` +`func (o *UpdateMaintenanceWindow) GetTagsOk() (*map[string]interface{}, bool)` GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTags -`func (o *UpdateMaintenanceWindow) SetTags(v map[string]map[string]interface{})` +`func (o *UpdateMaintenanceWindow) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. diff --git a/upgradepolicy/model_create_maintenance_window.go b/upgradepolicy/model_create_maintenance_window.go index c6c359c..c080a49 100644 --- a/upgradepolicy/model_create_maintenance_window.go +++ b/upgradepolicy/model_create_maintenance_window.go @@ -19,11 +19,11 @@ var _ MappedNullable = &CreateMaintenanceWindow{} // CreateMaintenanceWindow struct for CreateMaintenanceWindow type CreateMaintenanceWindow struct { - DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` - Id *string `json:"id,omitempty"` - ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` - WindowType *string `json:"window_type,omitempty"` + DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` + Id *string `json:"id,omitempty"` + ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + WindowType *string `json:"window_type,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,9 +143,9 @@ func (o *CreateMaintenanceWindow) SetScheduledWindow(v ScheduledWindow) { } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *CreateMaintenanceWindow) GetTags() map[string]map[string]interface{} { +func (o *CreateMaintenanceWindow) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} + var ret map[string]interface{} return ret } return o.Tags @@ -153,9 +153,9 @@ func (o *CreateMaintenanceWindow) GetTags() map[string]map[string]interface{} { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateMaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { +func (o *CreateMaintenanceWindow) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false + return map[string]interface{}{}, false } return o.Tags, true } @@ -169,8 +169,8 @@ func (o *CreateMaintenanceWindow) HasTags() bool { return false } -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *CreateMaintenanceWindow) SetTags(v map[string]map[string]interface{}) { +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *CreateMaintenanceWindow) SetTags(v map[string]interface{}) { o.Tags = v } diff --git a/upgradepolicy/model_maintenance_window.go b/upgradepolicy/model_maintenance_window.go index ed77f3e..e2c01e0 100644 --- a/upgradepolicy/model_maintenance_window.go +++ b/upgradepolicy/model_maintenance_window.go @@ -19,11 +19,11 @@ var _ MappedNullable = &MaintenanceWindow{} // MaintenanceWindow struct for MaintenanceWindow type MaintenanceWindow struct { - DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` - Id *string `json:"id,omitempty"` - ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` - WindowType *string `json:"window_type,omitempty"` + DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` + Id *string `json:"id,omitempty"` + ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` + WindowType *string `json:"window_type,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,9 +143,9 @@ func (o *MaintenanceWindow) SetScheduledWindow(v ScheduledWindow) { } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *MaintenanceWindow) GetTags() map[string]map[string]interface{} { +func (o *MaintenanceWindow) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} + var ret map[string]interface{} return ret } return o.Tags @@ -153,9 +153,9 @@ func (o *MaintenanceWindow) GetTags() map[string]map[string]interface{} { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { +func (o *MaintenanceWindow) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false + return map[string]interface{}{}, false } return o.Tags, true } @@ -169,8 +169,8 @@ func (o *MaintenanceWindow) HasTags() bool { return false } -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *MaintenanceWindow) SetTags(v map[string]map[string]interface{}) { +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *MaintenanceWindow) SetTags(v map[string]interface{}) { o.Tags = v } diff --git a/upgradepolicy/model_update_batch_maintenance_window.go b/upgradepolicy/model_update_batch_maintenance_window.go index 9ff87b3..ab58981 100644 --- a/upgradepolicy/model_update_batch_maintenance_window.go +++ b/upgradepolicy/model_update_batch_maintenance_window.go @@ -19,10 +19,10 @@ var _ MappedNullable = &UpdateBatchMaintenanceWindow{} // UpdateBatchMaintenanceWindow struct for UpdateBatchMaintenanceWindow type UpdateBatchMaintenanceWindow struct { - DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` - MwId *string `json:"mw_id,omitempty"` - ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` + DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` + MwId *string `json:"mw_id,omitempty"` + ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -142,9 +142,9 @@ func (o *UpdateBatchMaintenanceWindow) SetScheduledWindow(v ScheduledWindow) { } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *UpdateBatchMaintenanceWindow) GetTags() map[string]map[string]interface{} { +func (o *UpdateBatchMaintenanceWindow) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} + var ret map[string]interface{} return ret } return o.Tags @@ -152,9 +152,9 @@ func (o *UpdateBatchMaintenanceWindow) GetTags() map[string]map[string]interface // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateBatchMaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { +func (o *UpdateBatchMaintenanceWindow) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false + return map[string]interface{}{}, false } return o.Tags, true } @@ -168,8 +168,8 @@ func (o *UpdateBatchMaintenanceWindow) HasTags() bool { return false } -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *UpdateBatchMaintenanceWindow) SetTags(v map[string]map[string]interface{}) { +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *UpdateBatchMaintenanceWindow) SetTags(v map[string]interface{}) { o.Tags = v } diff --git a/upgradepolicy/model_update_maintenance_window.go b/upgradepolicy/model_update_maintenance_window.go index 3f86381..2219684 100644 --- a/upgradepolicy/model_update_maintenance_window.go +++ b/upgradepolicy/model_update_maintenance_window.go @@ -19,10 +19,10 @@ var _ MappedNullable = &UpdateMaintenanceWindow{} // UpdateMaintenanceWindow struct for UpdateMaintenanceWindow type UpdateMaintenanceWindow struct { - DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` - Id *string `json:"id,omitempty"` - ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` + DeferredWindow *DeferredWindow `json:"deferred_window,omitempty"` + Id *string `json:"id,omitempty"` + ScheduledWindow *ScheduledWindow `json:"scheduled_window,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -142,9 +142,9 @@ func (o *UpdateMaintenanceWindow) SetScheduledWindow(v ScheduledWindow) { } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *UpdateMaintenanceWindow) GetTags() map[string]map[string]interface{} { +func (o *UpdateMaintenanceWindow) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} + var ret map[string]interface{} return ret } return o.Tags @@ -152,9 +152,9 @@ func (o *UpdateMaintenanceWindow) GetTags() map[string]map[string]interface{} { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UpdateMaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { +func (o *UpdateMaintenanceWindow) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false + return map[string]interface{}{}, false } return o.Tags, true } @@ -168,8 +168,8 @@ func (o *UpdateMaintenanceWindow) HasTags() bool { return false } -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *UpdateMaintenanceWindow) SetTags(v map[string]map[string]interface{}) { +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *UpdateMaintenanceWindow) SetTags(v map[string]interface{}) { o.Tags = v }