Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTOCP-947: [UpgradePolicy] Fixing tag property to correct data type #45

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions upgradepolicy/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.openapi-generator-ignore
README.md
api/openapi.yaml
api_upgrade_policy_v2.go
Expand Down Expand Up @@ -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
39 changes: 13 additions & 26 deletions upgradepolicy/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -323,8 +319,7 @@ components:
scheduled_window:
$ref: '#/components/schemas/service_v2ScheduledWindow'
tags:
additionalProperties:
type: object
additionalProperties: false
type: object
window_type:
type: string
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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'
Expand All @@ -478,8 +469,7 @@ components:
scheduled_window:
$ref: '#/components/schemas/service_v2ScheduledWindow'
tags:
additionalProperties:
type: object
additionalProperties: false
type: object
window_type:
readOnly: true
Expand Down Expand Up @@ -555,8 +545,7 @@ components:
scheduled_window:
$ref: '#/components/schemas/service_v2ScheduledWindow'
tags:
additionalProperties:
type: object
additionalProperties: false
type: object
type: object
service_v2UpdateMaintenanceWindow:
Expand All @@ -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"
Expand Down Expand Up @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions upgradepolicy/docs/CreateMaintenanceWindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions upgradepolicy/docs/MaintenanceWindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions upgradepolicy/docs/UpdateBatchMaintenanceWindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions upgradepolicy/docs/UpdateMaintenanceWindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down
22 changes: 11 additions & 11 deletions upgradepolicy/model_create_maintenance_window.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions upgradepolicy/model_maintenance_window.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading