diff --git a/client/client.go b/client/client.go index 12e2ab9..a25a087 100644 --- a/client/client.go +++ b/client/client.go @@ -11,6 +11,7 @@ import ( "github.com/infobloxopen/bloxone-go-client/ipam" "github.com/infobloxopen/bloxone-go-client/keys" "github.com/infobloxopen/bloxone-go-client/option" + "github.com/infobloxopen/bloxone-go-client/upgradepolicy" ) // APIClient is an aggregation of different BloxOne API clients. @@ -24,6 +25,7 @@ type APIClient struct { DNSForwardingProxyAPI *dfp.APIClient FWAPI *fw.APIClient AnycastAPI *anycast.APIClient + UpgradePolicyClientAPI *upgradepolicy.APIClient } // NewAPIClient creates a new BloxOne API Client. @@ -38,6 +40,7 @@ type APIClient struct { // - DNSForwardingProxyAPI // - FWAPI // - AnycastAPI +// - UpgradePolicyClientAPI // // The client can be configured with a variadic option. The following options are available: // - WithClientName(string) sets the name of the client using the SDK. @@ -57,5 +60,6 @@ func NewAPIClient(options ...option.ClientOption) *APIClient { DNSForwardingProxyAPI: dfp.NewAPIClient(options...), FWAPI: fw.NewAPIClient(options...), AnycastAPI: anycast.NewAPIClient(options...), + UpgradePolicyClientAPI: upgradepolicy.NewAPIClient(options...), } } diff --git a/upgradepolicy/.openapi-generator/FILES b/upgradepolicy/.openapi-generator/FILES index 164cb73..94b37cf 100644 --- a/upgradepolicy/.openapi-generator/FILES +++ b/upgradepolicy/.openapi-generator/FILES @@ -1,3 +1,4 @@ +.openapi-generator-ignore README.md api/openapi.yaml api_upgrade_policy_v2.go @@ -47,4 +48,5 @@ 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/README.md b/upgradepolicy/README.md index 6c30c2f..27702d8 100644 --- a/upgradepolicy/README.md +++ b/upgradepolicy/README.md @@ -81,7 +81,7 @@ This will add the tags `tag1=value1` and `tag2=value2` to all API requests that ## Documentation for API Endpoints -All URIs are relative to *http://localhost/api/upgrade_policy* +All URIs are relative to *http://csp.infoblox.com/api/upgrade_policy* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- diff --git a/upgradepolicy/api/openapi.yaml b/upgradepolicy/api/openapi.yaml index 18813bb..3b0420f 100644 --- a/upgradepolicy/api/openapi.yaml +++ b/upgradepolicy/api/openapi.yaml @@ -12,7 +12,8 @@ info: title: Schedule Software/Config Updates version: v2 servers: -- url: /api/upgrade_policy/ +- url: http://csp.infoblox.com/api/upgrade_policy/ +- url: https://csp.infoblox.com/api/upgrade_policy/ security: - ApiKeyAuth: [] paths: diff --git a/upgradepolicy/docs/ServiceV2ApplyConfigNowRequest.md b/upgradepolicy/docs/ServiceV2ApplyConfigNowRequest.md deleted file mode 100644 index df796c6..0000000 --- a/upgradepolicy/docs/ServiceV2ApplyConfigNowRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2ApplyConfigNowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Payload** | Pointer to [**[]ServiceV2OnpremDetails**](ServiceV2OnpremDetails.md) | | [optional] - -## Methods - -### NewServiceV2ApplyConfigNowRequest - -`func NewServiceV2ApplyConfigNowRequest() *ServiceV2ApplyConfigNowRequest` - -NewServiceV2ApplyConfigNowRequest instantiates a new ServiceV2ApplyConfigNowRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2ApplyConfigNowRequestWithDefaults - -`func NewServiceV2ApplyConfigNowRequestWithDefaults() *ServiceV2ApplyConfigNowRequest` - -NewServiceV2ApplyConfigNowRequestWithDefaults instantiates a new ServiceV2ApplyConfigNowRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPayload - -`func (o *ServiceV2ApplyConfigNowRequest) GetPayload() []ServiceV2OnpremDetails` - -GetPayload returns the Payload field if non-nil, zero value otherwise. - -### GetPayloadOk - -`func (o *ServiceV2ApplyConfigNowRequest) GetPayloadOk() (*[]ServiceV2OnpremDetails, bool)` - -GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayload - -`func (o *ServiceV2ApplyConfigNowRequest) SetPayload(v []ServiceV2OnpremDetails)` - -SetPayload sets Payload field to given value. - -### HasPayload - -`func (o *ServiceV2ApplyConfigNowRequest) HasPayload() bool` - -HasPayload returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2ApplyConfigNowResponse.md b/upgradepolicy/docs/ServiceV2ApplyConfigNowResponse.md deleted file mode 100644 index 76d8a30..0000000 --- a/upgradepolicy/docs/ServiceV2ApplyConfigNowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2ApplyConfigNowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | Pointer to [**[]ServiceV2ApplyConfigNowStatus**](ServiceV2ApplyConfigNowStatus.md) | | [optional] - -## Methods - -### NewServiceV2ApplyConfigNowResponse - -`func NewServiceV2ApplyConfigNowResponse() *ServiceV2ApplyConfigNowResponse` - -NewServiceV2ApplyConfigNowResponse instantiates a new ServiceV2ApplyConfigNowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2ApplyConfigNowResponseWithDefaults - -`func NewServiceV2ApplyConfigNowResponseWithDefaults() *ServiceV2ApplyConfigNowResponse` - -NewServiceV2ApplyConfigNowResponseWithDefaults instantiates a new ServiceV2ApplyConfigNowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetResult - -`func (o *ServiceV2ApplyConfigNowResponse) GetResult() []ServiceV2ApplyConfigNowStatus` - -GetResult returns the Result field if non-nil, zero value otherwise. - -### GetResultOk - -`func (o *ServiceV2ApplyConfigNowResponse) GetResultOk() (*[]ServiceV2ApplyConfigNowStatus, bool)` - -GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResult - -`func (o *ServiceV2ApplyConfigNowResponse) SetResult(v []ServiceV2ApplyConfigNowStatus)` - -SetResult sets Result field to given value. - -### HasResult - -`func (o *ServiceV2ApplyConfigNowResponse) HasResult() bool` - -HasResult returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2ApplyConfigNowStatus.md b/upgradepolicy/docs/ServiceV2ApplyConfigNowStatus.md deleted file mode 100644 index 13e2603..0000000 --- a/upgradepolicy/docs/ServiceV2ApplyConfigNowStatus.md +++ /dev/null @@ -1,108 +0,0 @@ -# ServiceV2ApplyConfigNowStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Hostid** | Pointer to **string** | | [optional] -**Ophid** | Pointer to **string** | | [optional] -**StatusCode** | Pointer to [**ServiceV2StatusCode**](ServiceV2StatusCode.md) | | [optional] [default to SERVICEV2STATUSCODE_SUCCESS] - -## Methods - -### NewServiceV2ApplyConfigNowStatus - -`func NewServiceV2ApplyConfigNowStatus() *ServiceV2ApplyConfigNowStatus` - -NewServiceV2ApplyConfigNowStatus instantiates a new ServiceV2ApplyConfigNowStatus object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2ApplyConfigNowStatusWithDefaults - -`func NewServiceV2ApplyConfigNowStatusWithDefaults() *ServiceV2ApplyConfigNowStatus` - -NewServiceV2ApplyConfigNowStatusWithDefaults instantiates a new ServiceV2ApplyConfigNowStatus object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetHostid - -`func (o *ServiceV2ApplyConfigNowStatus) GetHostid() string` - -GetHostid returns the Hostid field if non-nil, zero value otherwise. - -### GetHostidOk - -`func (o *ServiceV2ApplyConfigNowStatus) GetHostidOk() (*string, bool)` - -GetHostidOk returns a tuple with the Hostid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHostid - -`func (o *ServiceV2ApplyConfigNowStatus) SetHostid(v string)` - -SetHostid sets Hostid field to given value. - -### HasHostid - -`func (o *ServiceV2ApplyConfigNowStatus) HasHostid() bool` - -HasHostid returns a boolean if a field has been set. - -### GetOphid - -`func (o *ServiceV2ApplyConfigNowStatus) GetOphid() string` - -GetOphid returns the Ophid field if non-nil, zero value otherwise. - -### GetOphidOk - -`func (o *ServiceV2ApplyConfigNowStatus) GetOphidOk() (*string, bool)` - -GetOphidOk returns a tuple with the Ophid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOphid - -`func (o *ServiceV2ApplyConfigNowStatus) SetOphid(v string)` - -SetOphid sets Ophid field to given value. - -### HasOphid - -`func (o *ServiceV2ApplyConfigNowStatus) HasOphid() bool` - -HasOphid returns a boolean if a field has been set. - -### GetStatusCode - -`func (o *ServiceV2ApplyConfigNowStatus) GetStatusCode() ServiceV2StatusCode` - -GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. - -### GetStatusCodeOk - -`func (o *ServiceV2ApplyConfigNowStatus) GetStatusCodeOk() (*ServiceV2StatusCode, bool)` - -GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusCode - -`func (o *ServiceV2ApplyConfigNowStatus) SetStatusCode(v ServiceV2StatusCode)` - -SetStatusCode sets StatusCode field to given value. - -### HasStatusCode - -`func (o *ServiceV2ApplyConfigNowStatus) HasStatusCode() bool` - -HasStatusCode returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindow.md b/upgradepolicy/docs/ServiceV2BatchMaintenanceWindow.md deleted file mode 100644 index e154d39..0000000 --- a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindow.md +++ /dev/null @@ -1,108 +0,0 @@ -# ServiceV2BatchMaintenanceWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreateMws** | Pointer to [**[]ServiceV2CreateMaintenanceWindow**](ServiceV2CreateMaintenanceWindow.md) | | [optional] -**DeleteMws** | Pointer to **[]string** | | [optional] -**UpdateMws** | Pointer to [**[]ServiceV2UpdateBatchMaintenanceWindow**](ServiceV2UpdateBatchMaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2BatchMaintenanceWindow - -`func NewServiceV2BatchMaintenanceWindow() *ServiceV2BatchMaintenanceWindow` - -NewServiceV2BatchMaintenanceWindow instantiates a new ServiceV2BatchMaintenanceWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2BatchMaintenanceWindowWithDefaults - -`func NewServiceV2BatchMaintenanceWindowWithDefaults() *ServiceV2BatchMaintenanceWindow` - -NewServiceV2BatchMaintenanceWindowWithDefaults instantiates a new ServiceV2BatchMaintenanceWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreateMws - -`func (o *ServiceV2BatchMaintenanceWindow) GetCreateMws() []ServiceV2CreateMaintenanceWindow` - -GetCreateMws returns the CreateMws field if non-nil, zero value otherwise. - -### GetCreateMwsOk - -`func (o *ServiceV2BatchMaintenanceWindow) GetCreateMwsOk() (*[]ServiceV2CreateMaintenanceWindow, bool)` - -GetCreateMwsOk returns a tuple with the CreateMws field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreateMws - -`func (o *ServiceV2BatchMaintenanceWindow) SetCreateMws(v []ServiceV2CreateMaintenanceWindow)` - -SetCreateMws sets CreateMws field to given value. - -### HasCreateMws - -`func (o *ServiceV2BatchMaintenanceWindow) HasCreateMws() bool` - -HasCreateMws returns a boolean if a field has been set. - -### GetDeleteMws - -`func (o *ServiceV2BatchMaintenanceWindow) GetDeleteMws() []string` - -GetDeleteMws returns the DeleteMws field if non-nil, zero value otherwise. - -### GetDeleteMwsOk - -`func (o *ServiceV2BatchMaintenanceWindow) GetDeleteMwsOk() (*[]string, bool)` - -GetDeleteMwsOk returns a tuple with the DeleteMws field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeleteMws - -`func (o *ServiceV2BatchMaintenanceWindow) SetDeleteMws(v []string)` - -SetDeleteMws sets DeleteMws field to given value. - -### HasDeleteMws - -`func (o *ServiceV2BatchMaintenanceWindow) HasDeleteMws() bool` - -HasDeleteMws returns a boolean if a field has been set. - -### GetUpdateMws - -`func (o *ServiceV2BatchMaintenanceWindow) GetUpdateMws() []ServiceV2UpdateBatchMaintenanceWindow` - -GetUpdateMws returns the UpdateMws field if non-nil, zero value otherwise. - -### GetUpdateMwsOk - -`func (o *ServiceV2BatchMaintenanceWindow) GetUpdateMwsOk() (*[]ServiceV2UpdateBatchMaintenanceWindow, bool)` - -GetUpdateMwsOk returns a tuple with the UpdateMws field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdateMws - -`func (o *ServiceV2BatchMaintenanceWindow) SetUpdateMws(v []ServiceV2UpdateBatchMaintenanceWindow)` - -SetUpdateMws sets UpdateMws field to given value. - -### HasUpdateMws - -`func (o *ServiceV2BatchMaintenanceWindow) HasUpdateMws() bool` - -HasUpdateMws returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowRequest.md b/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowRequest.md deleted file mode 100644 index 7453992..0000000 --- a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2BatchMaintenanceWindowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Payload** | Pointer to [**ServiceV2BatchMaintenanceWindow**](ServiceV2BatchMaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2BatchMaintenanceWindowRequest - -`func NewServiceV2BatchMaintenanceWindowRequest() *ServiceV2BatchMaintenanceWindowRequest` - -NewServiceV2BatchMaintenanceWindowRequest instantiates a new ServiceV2BatchMaintenanceWindowRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2BatchMaintenanceWindowRequestWithDefaults - -`func NewServiceV2BatchMaintenanceWindowRequestWithDefaults() *ServiceV2BatchMaintenanceWindowRequest` - -NewServiceV2BatchMaintenanceWindowRequestWithDefaults instantiates a new ServiceV2BatchMaintenanceWindowRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPayload - -`func (o *ServiceV2BatchMaintenanceWindowRequest) GetPayload() ServiceV2BatchMaintenanceWindow` - -GetPayload returns the Payload field if non-nil, zero value otherwise. - -### GetPayloadOk - -`func (o *ServiceV2BatchMaintenanceWindowRequest) GetPayloadOk() (*ServiceV2BatchMaintenanceWindow, bool)` - -GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayload - -`func (o *ServiceV2BatchMaintenanceWindowRequest) SetPayload(v ServiceV2BatchMaintenanceWindow)` - -SetPayload sets Payload field to given value. - -### HasPayload - -`func (o *ServiceV2BatchMaintenanceWindowRequest) HasPayload() bool` - -HasPayload returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowResponse.md b/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowResponse.md deleted file mode 100644 index d4935fa..0000000 --- a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2BatchMaintenanceWindowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | Pointer to [**ServiceV2BatchMaintenanceWindowResult**](ServiceV2BatchMaintenanceWindowResult.md) | | [optional] - -## Methods - -### NewServiceV2BatchMaintenanceWindowResponse - -`func NewServiceV2BatchMaintenanceWindowResponse() *ServiceV2BatchMaintenanceWindowResponse` - -NewServiceV2BatchMaintenanceWindowResponse instantiates a new ServiceV2BatchMaintenanceWindowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2BatchMaintenanceWindowResponseWithDefaults - -`func NewServiceV2BatchMaintenanceWindowResponseWithDefaults() *ServiceV2BatchMaintenanceWindowResponse` - -NewServiceV2BatchMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2BatchMaintenanceWindowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetResult - -`func (o *ServiceV2BatchMaintenanceWindowResponse) GetResult() ServiceV2BatchMaintenanceWindowResult` - -GetResult returns the Result field if non-nil, zero value otherwise. - -### GetResultOk - -`func (o *ServiceV2BatchMaintenanceWindowResponse) GetResultOk() (*ServiceV2BatchMaintenanceWindowResult, bool)` - -GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResult - -`func (o *ServiceV2BatchMaintenanceWindowResponse) SetResult(v ServiceV2BatchMaintenanceWindowResult)` - -SetResult sets Result field to given value. - -### HasResult - -`func (o *ServiceV2BatchMaintenanceWindowResponse) HasResult() bool` - -HasResult returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowResult.md b/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowResult.md deleted file mode 100644 index c27992a..0000000 --- a/upgradepolicy/docs/ServiceV2BatchMaintenanceWindowResult.md +++ /dev/null @@ -1,82 +0,0 @@ -# ServiceV2BatchMaintenanceWindowResult - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedIds** | Pointer to **[]string** | | [optional] -**UpdatedMws** | Pointer to [**[]ServiceV2MaintenanceWindow**](ServiceV2MaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2BatchMaintenanceWindowResult - -`func NewServiceV2BatchMaintenanceWindowResult() *ServiceV2BatchMaintenanceWindowResult` - -NewServiceV2BatchMaintenanceWindowResult instantiates a new ServiceV2BatchMaintenanceWindowResult object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2BatchMaintenanceWindowResultWithDefaults - -`func NewServiceV2BatchMaintenanceWindowResultWithDefaults() *ServiceV2BatchMaintenanceWindowResult` - -NewServiceV2BatchMaintenanceWindowResultWithDefaults instantiates a new ServiceV2BatchMaintenanceWindowResult object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedIds - -`func (o *ServiceV2BatchMaintenanceWindowResult) GetCreatedIds() []string` - -GetCreatedIds returns the CreatedIds field if non-nil, zero value otherwise. - -### GetCreatedIdsOk - -`func (o *ServiceV2BatchMaintenanceWindowResult) GetCreatedIdsOk() (*[]string, bool)` - -GetCreatedIdsOk returns a tuple with the CreatedIds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedIds - -`func (o *ServiceV2BatchMaintenanceWindowResult) SetCreatedIds(v []string)` - -SetCreatedIds sets CreatedIds field to given value. - -### HasCreatedIds - -`func (o *ServiceV2BatchMaintenanceWindowResult) HasCreatedIds() bool` - -HasCreatedIds returns a boolean if a field has been set. - -### GetUpdatedMws - -`func (o *ServiceV2BatchMaintenanceWindowResult) GetUpdatedMws() []ServiceV2MaintenanceWindow` - -GetUpdatedMws returns the UpdatedMws field if non-nil, zero value otherwise. - -### GetUpdatedMwsOk - -`func (o *ServiceV2BatchMaintenanceWindowResult) GetUpdatedMwsOk() (*[]ServiceV2MaintenanceWindow, bool)` - -GetUpdatedMwsOk returns a tuple with the UpdatedMws field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedMws - -`func (o *ServiceV2BatchMaintenanceWindowResult) SetUpdatedMws(v []ServiceV2MaintenanceWindow)` - -SetUpdatedMws sets UpdatedMws field to given value. - -### HasUpdatedMws - -`func (o *ServiceV2BatchMaintenanceWindowResult) HasUpdatedMws() bool` - -HasUpdatedMws returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2CreateMaintenanceWindow.md b/upgradepolicy/docs/ServiceV2CreateMaintenanceWindow.md deleted file mode 100644 index 9cd1859..0000000 --- a/upgradepolicy/docs/ServiceV2CreateMaintenanceWindow.md +++ /dev/null @@ -1,160 +0,0 @@ -# ServiceV2CreateMaintenanceWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DeferredWindow** | Pointer to [**ServiceV2DeferredWindow**](ServiceV2DeferredWindow.md) | | [optional] -**Id** | Pointer to **string** | | [optional] [readonly] -**ScheduledWindow** | Pointer to [**ServiceV2ScheduledWindow**](ServiceV2ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] -**WindowType** | Pointer to **string** | | [optional] - -## Methods - -### NewServiceV2CreateMaintenanceWindow - -`func NewServiceV2CreateMaintenanceWindow() *ServiceV2CreateMaintenanceWindow` - -NewServiceV2CreateMaintenanceWindow instantiates a new ServiceV2CreateMaintenanceWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2CreateMaintenanceWindowWithDefaults - -`func NewServiceV2CreateMaintenanceWindowWithDefaults() *ServiceV2CreateMaintenanceWindow` - -NewServiceV2CreateMaintenanceWindowWithDefaults instantiates a new ServiceV2CreateMaintenanceWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDeferredWindow - -`func (o *ServiceV2CreateMaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow` - -GetDeferredWindow returns the DeferredWindow field if non-nil, zero value otherwise. - -### GetDeferredWindowOk - -`func (o *ServiceV2CreateMaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool)` - -GetDeferredWindowOk returns a tuple with the DeferredWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeferredWindow - -`func (o *ServiceV2CreateMaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow)` - -SetDeferredWindow sets DeferredWindow field to given value. - -### HasDeferredWindow - -`func (o *ServiceV2CreateMaintenanceWindow) HasDeferredWindow() bool` - -HasDeferredWindow returns a boolean if a field has been set. - -### GetId - -`func (o *ServiceV2CreateMaintenanceWindow) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceV2CreateMaintenanceWindow) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ServiceV2CreateMaintenanceWindow) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceV2CreateMaintenanceWindow) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetScheduledWindow - -`func (o *ServiceV2CreateMaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow` - -GetScheduledWindow returns the ScheduledWindow field if non-nil, zero value otherwise. - -### GetScheduledWindowOk - -`func (o *ServiceV2CreateMaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool)` - -GetScheduledWindowOk returns a tuple with the ScheduledWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScheduledWindow - -`func (o *ServiceV2CreateMaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow)` - -SetScheduledWindow sets ScheduledWindow field to given value. - -### HasScheduledWindow - -`func (o *ServiceV2CreateMaintenanceWindow) HasScheduledWindow() bool` - -HasScheduledWindow returns a boolean if a field has been set. - -### GetTags - -`func (o *ServiceV2CreateMaintenanceWindow) GetTags() map[string]map[string]interface{}` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ServiceV2CreateMaintenanceWindow) GetTagsOk() (*map[string]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 *ServiceV2CreateMaintenanceWindow) SetTags(v map[string]map[string]interface{})` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ServiceV2CreateMaintenanceWindow) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetWindowType - -`func (o *ServiceV2CreateMaintenanceWindow) GetWindowType() string` - -GetWindowType returns the WindowType field if non-nil, zero value otherwise. - -### GetWindowTypeOk - -`func (o *ServiceV2CreateMaintenanceWindow) GetWindowTypeOk() (*string, bool)` - -GetWindowTypeOk returns a tuple with the WindowType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWindowType - -`func (o *ServiceV2CreateMaintenanceWindow) SetWindowType(v string)` - -SetWindowType sets WindowType field to given value. - -### HasWindowType - -`func (o *ServiceV2CreateMaintenanceWindow) HasWindowType() bool` - -HasWindowType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2CreateMaintenanceWindowRequest.md b/upgradepolicy/docs/ServiceV2CreateMaintenanceWindowRequest.md deleted file mode 100644 index d087c1b..0000000 --- a/upgradepolicy/docs/ServiceV2CreateMaintenanceWindowRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2CreateMaintenanceWindowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Payload** | Pointer to [**ServiceV2CreateMaintenanceWindow**](ServiceV2CreateMaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2CreateMaintenanceWindowRequest - -`func NewServiceV2CreateMaintenanceWindowRequest() *ServiceV2CreateMaintenanceWindowRequest` - -NewServiceV2CreateMaintenanceWindowRequest instantiates a new ServiceV2CreateMaintenanceWindowRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2CreateMaintenanceWindowRequestWithDefaults - -`func NewServiceV2CreateMaintenanceWindowRequestWithDefaults() *ServiceV2CreateMaintenanceWindowRequest` - -NewServiceV2CreateMaintenanceWindowRequestWithDefaults instantiates a new ServiceV2CreateMaintenanceWindowRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPayload - -`func (o *ServiceV2CreateMaintenanceWindowRequest) GetPayload() ServiceV2CreateMaintenanceWindow` - -GetPayload returns the Payload field if non-nil, zero value otherwise. - -### GetPayloadOk - -`func (o *ServiceV2CreateMaintenanceWindowRequest) GetPayloadOk() (*ServiceV2CreateMaintenanceWindow, bool)` - -GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayload - -`func (o *ServiceV2CreateMaintenanceWindowRequest) SetPayload(v ServiceV2CreateMaintenanceWindow)` - -SetPayload sets Payload field to given value. - -### HasPayload - -`func (o *ServiceV2CreateMaintenanceWindowRequest) HasPayload() bool` - -HasPayload returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2CreateMaintenanceWindowResponse.md b/upgradepolicy/docs/ServiceV2CreateMaintenanceWindowResponse.md deleted file mode 100644 index 319522d..0000000 --- a/upgradepolicy/docs/ServiceV2CreateMaintenanceWindowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2CreateMaintenanceWindowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | | [optional] [readonly] - -## Methods - -### NewServiceV2CreateMaintenanceWindowResponse - -`func NewServiceV2CreateMaintenanceWindowResponse() *ServiceV2CreateMaintenanceWindowResponse` - -NewServiceV2CreateMaintenanceWindowResponse instantiates a new ServiceV2CreateMaintenanceWindowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2CreateMaintenanceWindowResponseWithDefaults - -`func NewServiceV2CreateMaintenanceWindowResponseWithDefaults() *ServiceV2CreateMaintenanceWindowResponse` - -NewServiceV2CreateMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2CreateMaintenanceWindowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *ServiceV2CreateMaintenanceWindowResponse) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceV2CreateMaintenanceWindowResponse) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ServiceV2CreateMaintenanceWindowResponse) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceV2CreateMaintenanceWindowResponse) HasId() bool` - -HasId returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2DeferredWindow.md b/upgradepolicy/docs/ServiceV2DeferredWindow.md deleted file mode 100644 index 35ba5c8..0000000 --- a/upgradepolicy/docs/ServiceV2DeferredWindow.md +++ /dev/null @@ -1,160 +0,0 @@ -# ServiceV2DeferredWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] -**Enabled** | Pointer to **bool** | | [optional] -**EndTime** | Pointer to **time.Time** | | [optional] -**StartTime** | Pointer to **time.Time** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] - -## Methods - -### NewServiceV2DeferredWindow - -`func NewServiceV2DeferredWindow() *ServiceV2DeferredWindow` - -NewServiceV2DeferredWindow instantiates a new ServiceV2DeferredWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2DeferredWindowWithDefaults - -`func NewServiceV2DeferredWindowWithDefaults() *ServiceV2DeferredWindow` - -NewServiceV2DeferredWindowWithDefaults instantiates a new ServiceV2DeferredWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *ServiceV2DeferredWindow) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ServiceV2DeferredWindow) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ServiceV2DeferredWindow) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ServiceV2DeferredWindow) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetEnabled - -`func (o *ServiceV2DeferredWindow) GetEnabled() bool` - -GetEnabled returns the Enabled field if non-nil, zero value otherwise. - -### GetEnabledOk - -`func (o *ServiceV2DeferredWindow) GetEnabledOk() (*bool, bool)` - -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnabled - -`func (o *ServiceV2DeferredWindow) SetEnabled(v bool)` - -SetEnabled sets Enabled field to given value. - -### HasEnabled - -`func (o *ServiceV2DeferredWindow) HasEnabled() bool` - -HasEnabled returns a boolean if a field has been set. - -### GetEndTime - -`func (o *ServiceV2DeferredWindow) GetEndTime() time.Time` - -GetEndTime returns the EndTime field if non-nil, zero value otherwise. - -### GetEndTimeOk - -`func (o *ServiceV2DeferredWindow) GetEndTimeOk() (*time.Time, bool)` - -GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEndTime - -`func (o *ServiceV2DeferredWindow) SetEndTime(v time.Time)` - -SetEndTime sets EndTime field to given value. - -### HasEndTime - -`func (o *ServiceV2DeferredWindow) HasEndTime() bool` - -HasEndTime returns a boolean if a field has been set. - -### GetStartTime - -`func (o *ServiceV2DeferredWindow) GetStartTime() time.Time` - -GetStartTime returns the StartTime field if non-nil, zero value otherwise. - -### GetStartTimeOk - -`func (o *ServiceV2DeferredWindow) GetStartTimeOk() (*time.Time, bool)` - -GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartTime - -`func (o *ServiceV2DeferredWindow) SetStartTime(v time.Time)` - -SetStartTime sets StartTime field to given value. - -### HasStartTime - -`func (o *ServiceV2DeferredWindow) HasStartTime() bool` - -HasStartTime returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *ServiceV2DeferredWindow) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *ServiceV2DeferredWindow) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *ServiceV2DeferredWindow) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *ServiceV2DeferredWindow) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2DeleteMaintenanceWindowResponse.md b/upgradepolicy/docs/ServiceV2DeleteMaintenanceWindowResponse.md deleted file mode 100644 index 18b3eb6..0000000 --- a/upgradepolicy/docs/ServiceV2DeleteMaintenanceWindowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2DeleteMaintenanceWindowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**WindowType** | Pointer to **string** | | [optional] - -## Methods - -### NewServiceV2DeleteMaintenanceWindowResponse - -`func NewServiceV2DeleteMaintenanceWindowResponse() *ServiceV2DeleteMaintenanceWindowResponse` - -NewServiceV2DeleteMaintenanceWindowResponse instantiates a new ServiceV2DeleteMaintenanceWindowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2DeleteMaintenanceWindowResponseWithDefaults - -`func NewServiceV2DeleteMaintenanceWindowResponseWithDefaults() *ServiceV2DeleteMaintenanceWindowResponse` - -NewServiceV2DeleteMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2DeleteMaintenanceWindowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetWindowType - -`func (o *ServiceV2DeleteMaintenanceWindowResponse) GetWindowType() string` - -GetWindowType returns the WindowType field if non-nil, zero value otherwise. - -### GetWindowTypeOk - -`func (o *ServiceV2DeleteMaintenanceWindowResponse) GetWindowTypeOk() (*string, bool)` - -GetWindowTypeOk returns a tuple with the WindowType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWindowType - -`func (o *ServiceV2DeleteMaintenanceWindowResponse) SetWindowType(v string)` - -SetWindowType sets WindowType field to given value. - -### HasWindowType - -`func (o *ServiceV2DeleteMaintenanceWindowResponse) HasWindowType() bool` - -HasWindowType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2GetMaintenanceWindowResponse.md b/upgradepolicy/docs/ServiceV2GetMaintenanceWindowResponse.md deleted file mode 100644 index 9f0bc2b..0000000 --- a/upgradepolicy/docs/ServiceV2GetMaintenanceWindowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2GetMaintenanceWindowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | Pointer to [**ServiceV2MaintenanceWindow**](ServiceV2MaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2GetMaintenanceWindowResponse - -`func NewServiceV2GetMaintenanceWindowResponse() *ServiceV2GetMaintenanceWindowResponse` - -NewServiceV2GetMaintenanceWindowResponse instantiates a new ServiceV2GetMaintenanceWindowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2GetMaintenanceWindowResponseWithDefaults - -`func NewServiceV2GetMaintenanceWindowResponseWithDefaults() *ServiceV2GetMaintenanceWindowResponse` - -NewServiceV2GetMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2GetMaintenanceWindowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetResult - -`func (o *ServiceV2GetMaintenanceWindowResponse) GetResult() ServiceV2MaintenanceWindow` - -GetResult returns the Result field if non-nil, zero value otherwise. - -### GetResultOk - -`func (o *ServiceV2GetMaintenanceWindowResponse) GetResultOk() (*ServiceV2MaintenanceWindow, bool)` - -GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResult - -`func (o *ServiceV2GetMaintenanceWindowResponse) SetResult(v ServiceV2MaintenanceWindow)` - -SetResult sets Result field to given value. - -### HasResult - -`func (o *ServiceV2GetMaintenanceWindowResponse) HasResult() bool` - -HasResult returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2ListMaintenanceWindowResponse.md b/upgradepolicy/docs/ServiceV2ListMaintenanceWindowResponse.md deleted file mode 100644 index 945f492..0000000 --- a/upgradepolicy/docs/ServiceV2ListMaintenanceWindowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2ListMaintenanceWindowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | Pointer to [**[]ServiceV2MaintenanceWindow**](ServiceV2MaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2ListMaintenanceWindowResponse - -`func NewServiceV2ListMaintenanceWindowResponse() *ServiceV2ListMaintenanceWindowResponse` - -NewServiceV2ListMaintenanceWindowResponse instantiates a new ServiceV2ListMaintenanceWindowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2ListMaintenanceWindowResponseWithDefaults - -`func NewServiceV2ListMaintenanceWindowResponseWithDefaults() *ServiceV2ListMaintenanceWindowResponse` - -NewServiceV2ListMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2ListMaintenanceWindowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetResult - -`func (o *ServiceV2ListMaintenanceWindowResponse) GetResult() []ServiceV2MaintenanceWindow` - -GetResult returns the Result field if non-nil, zero value otherwise. - -### GetResultOk - -`func (o *ServiceV2ListMaintenanceWindowResponse) GetResultOk() (*[]ServiceV2MaintenanceWindow, bool)` - -GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResult - -`func (o *ServiceV2ListMaintenanceWindowResponse) SetResult(v []ServiceV2MaintenanceWindow)` - -SetResult sets Result field to given value. - -### HasResult - -`func (o *ServiceV2ListMaintenanceWindowResponse) HasResult() bool` - -HasResult returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2MaintenanceWindow.md b/upgradepolicy/docs/ServiceV2MaintenanceWindow.md deleted file mode 100644 index 1b7ccf4..0000000 --- a/upgradepolicy/docs/ServiceV2MaintenanceWindow.md +++ /dev/null @@ -1,160 +0,0 @@ -# ServiceV2MaintenanceWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DeferredWindow** | Pointer to [**ServiceV2DeferredWindow**](ServiceV2DeferredWindow.md) | | [optional] -**Id** | Pointer to **string** | | [optional] [readonly] -**ScheduledWindow** | Pointer to [**ServiceV2ScheduledWindow**](ServiceV2ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] -**WindowType** | Pointer to **string** | | [optional] [readonly] - -## Methods - -### NewServiceV2MaintenanceWindow - -`func NewServiceV2MaintenanceWindow() *ServiceV2MaintenanceWindow` - -NewServiceV2MaintenanceWindow instantiates a new ServiceV2MaintenanceWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2MaintenanceWindowWithDefaults - -`func NewServiceV2MaintenanceWindowWithDefaults() *ServiceV2MaintenanceWindow` - -NewServiceV2MaintenanceWindowWithDefaults instantiates a new ServiceV2MaintenanceWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDeferredWindow - -`func (o *ServiceV2MaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow` - -GetDeferredWindow returns the DeferredWindow field if non-nil, zero value otherwise. - -### GetDeferredWindowOk - -`func (o *ServiceV2MaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool)` - -GetDeferredWindowOk returns a tuple with the DeferredWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeferredWindow - -`func (o *ServiceV2MaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow)` - -SetDeferredWindow sets DeferredWindow field to given value. - -### HasDeferredWindow - -`func (o *ServiceV2MaintenanceWindow) HasDeferredWindow() bool` - -HasDeferredWindow returns a boolean if a field has been set. - -### GetId - -`func (o *ServiceV2MaintenanceWindow) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceV2MaintenanceWindow) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ServiceV2MaintenanceWindow) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceV2MaintenanceWindow) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetScheduledWindow - -`func (o *ServiceV2MaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow` - -GetScheduledWindow returns the ScheduledWindow field if non-nil, zero value otherwise. - -### GetScheduledWindowOk - -`func (o *ServiceV2MaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool)` - -GetScheduledWindowOk returns a tuple with the ScheduledWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScheduledWindow - -`func (o *ServiceV2MaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow)` - -SetScheduledWindow sets ScheduledWindow field to given value. - -### HasScheduledWindow - -`func (o *ServiceV2MaintenanceWindow) HasScheduledWindow() bool` - -HasScheduledWindow returns a boolean if a field has been set. - -### GetTags - -`func (o *ServiceV2MaintenanceWindow) GetTags() map[string]map[string]interface{}` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ServiceV2MaintenanceWindow) GetTagsOk() (*map[string]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 *ServiceV2MaintenanceWindow) SetTags(v map[string]map[string]interface{})` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ServiceV2MaintenanceWindow) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetWindowType - -`func (o *ServiceV2MaintenanceWindow) GetWindowType() string` - -GetWindowType returns the WindowType field if non-nil, zero value otherwise. - -### GetWindowTypeOk - -`func (o *ServiceV2MaintenanceWindow) GetWindowTypeOk() (*string, bool)` - -GetWindowTypeOk returns a tuple with the WindowType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWindowType - -`func (o *ServiceV2MaintenanceWindow) SetWindowType(v string)` - -SetWindowType sets WindowType field to given value. - -### HasWindowType - -`func (o *ServiceV2MaintenanceWindow) HasWindowType() bool` - -HasWindowType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2OnpremDetails.md b/upgradepolicy/docs/ServiceV2OnpremDetails.md deleted file mode 100644 index f9f0eff..0000000 --- a/upgradepolicy/docs/ServiceV2OnpremDetails.md +++ /dev/null @@ -1,82 +0,0 @@ -# ServiceV2OnpremDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Hostid** | Pointer to **string** | | [optional] -**Ophid** | Pointer to **string** | | [optional] - -## Methods - -### NewServiceV2OnpremDetails - -`func NewServiceV2OnpremDetails() *ServiceV2OnpremDetails` - -NewServiceV2OnpremDetails instantiates a new ServiceV2OnpremDetails object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2OnpremDetailsWithDefaults - -`func NewServiceV2OnpremDetailsWithDefaults() *ServiceV2OnpremDetails` - -NewServiceV2OnpremDetailsWithDefaults instantiates a new ServiceV2OnpremDetails object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetHostid - -`func (o *ServiceV2OnpremDetails) GetHostid() string` - -GetHostid returns the Hostid field if non-nil, zero value otherwise. - -### GetHostidOk - -`func (o *ServiceV2OnpremDetails) GetHostidOk() (*string, bool)` - -GetHostidOk returns a tuple with the Hostid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHostid - -`func (o *ServiceV2OnpremDetails) SetHostid(v string)` - -SetHostid sets Hostid field to given value. - -### HasHostid - -`func (o *ServiceV2OnpremDetails) HasHostid() bool` - -HasHostid returns a boolean if a field has been set. - -### GetOphid - -`func (o *ServiceV2OnpremDetails) GetOphid() string` - -GetOphid returns the Ophid field if non-nil, zero value otherwise. - -### GetOphidOk - -`func (o *ServiceV2OnpremDetails) GetOphidOk() (*string, bool)` - -GetOphidOk returns a tuple with the Ophid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOphid - -`func (o *ServiceV2OnpremDetails) SetOphid(v string)` - -SetOphid sets Ophid field to given value. - -### HasOphid - -`func (o *ServiceV2OnpremDetails) HasOphid() bool` - -HasOphid returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2ScheduledWindow.md b/upgradepolicy/docs/ServiceV2ScheduledWindow.md deleted file mode 100644 index eedd934..0000000 --- a/upgradepolicy/docs/ServiceV2ScheduledWindow.md +++ /dev/null @@ -1,186 +0,0 @@ -# ServiceV2ScheduledWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CreatedAt** | Pointer to **time.Time** | | [optional] [readonly] -**Duration** | Pointer to **int32** | | [optional] -**Enabled** | Pointer to **bool** | | [optional] -**StartTime** | Pointer to **int32** | | [optional] -**UpdatedAt** | Pointer to **time.Time** | | [optional] [readonly] -**Weekday** | Pointer to **int32** | | [optional] - -## Methods - -### NewServiceV2ScheduledWindow - -`func NewServiceV2ScheduledWindow() *ServiceV2ScheduledWindow` - -NewServiceV2ScheduledWindow instantiates a new ServiceV2ScheduledWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2ScheduledWindowWithDefaults - -`func NewServiceV2ScheduledWindowWithDefaults() *ServiceV2ScheduledWindow` - -NewServiceV2ScheduledWindowWithDefaults instantiates a new ServiceV2ScheduledWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCreatedAt - -`func (o *ServiceV2ScheduledWindow) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *ServiceV2ScheduledWindow) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *ServiceV2ScheduledWindow) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *ServiceV2ScheduledWindow) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDuration - -`func (o *ServiceV2ScheduledWindow) GetDuration() int32` - -GetDuration returns the Duration field if non-nil, zero value otherwise. - -### GetDurationOk - -`func (o *ServiceV2ScheduledWindow) GetDurationOk() (*int32, bool)` - -GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDuration - -`func (o *ServiceV2ScheduledWindow) SetDuration(v int32)` - -SetDuration sets Duration field to given value. - -### HasDuration - -`func (o *ServiceV2ScheduledWindow) HasDuration() bool` - -HasDuration returns a boolean if a field has been set. - -### GetEnabled - -`func (o *ServiceV2ScheduledWindow) GetEnabled() bool` - -GetEnabled returns the Enabled field if non-nil, zero value otherwise. - -### GetEnabledOk - -`func (o *ServiceV2ScheduledWindow) GetEnabledOk() (*bool, bool)` - -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnabled - -`func (o *ServiceV2ScheduledWindow) SetEnabled(v bool)` - -SetEnabled sets Enabled field to given value. - -### HasEnabled - -`func (o *ServiceV2ScheduledWindow) HasEnabled() bool` - -HasEnabled returns a boolean if a field has been set. - -### GetStartTime - -`func (o *ServiceV2ScheduledWindow) GetStartTime() int32` - -GetStartTime returns the StartTime field if non-nil, zero value otherwise. - -### GetStartTimeOk - -`func (o *ServiceV2ScheduledWindow) GetStartTimeOk() (*int32, bool)` - -GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartTime - -`func (o *ServiceV2ScheduledWindow) SetStartTime(v int32)` - -SetStartTime sets StartTime field to given value. - -### HasStartTime - -`func (o *ServiceV2ScheduledWindow) HasStartTime() bool` - -HasStartTime returns a boolean if a field has been set. - -### GetUpdatedAt - -`func (o *ServiceV2ScheduledWindow) GetUpdatedAt() time.Time` - -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. - -### GetUpdatedAtOk - -`func (o *ServiceV2ScheduledWindow) GetUpdatedAtOk() (*time.Time, bool)` - -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUpdatedAt - -`func (o *ServiceV2ScheduledWindow) SetUpdatedAt(v time.Time)` - -SetUpdatedAt sets UpdatedAt field to given value. - -### HasUpdatedAt - -`func (o *ServiceV2ScheduledWindow) HasUpdatedAt() bool` - -HasUpdatedAt returns a boolean if a field has been set. - -### GetWeekday - -`func (o *ServiceV2ScheduledWindow) GetWeekday() int32` - -GetWeekday returns the Weekday field if non-nil, zero value otherwise. - -### GetWeekdayOk - -`func (o *ServiceV2ScheduledWindow) GetWeekdayOk() (*int32, bool)` - -GetWeekdayOk returns a tuple with the Weekday field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeekday - -`func (o *ServiceV2ScheduledWindow) SetWeekday(v int32)` - -SetWeekday sets Weekday field to given value. - -### HasWeekday - -`func (o *ServiceV2ScheduledWindow) HasWeekday() bool` - -HasWeekday returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2StatusCode.md b/upgradepolicy/docs/ServiceV2StatusCode.md deleted file mode 100644 index 627af1b..0000000 --- a/upgradepolicy/docs/ServiceV2StatusCode.md +++ /dev/null @@ -1,21 +0,0 @@ -# ServiceV2StatusCode - -## Enum - - -* `SUCCESS` (value: `"SUCCESS"`) - -* `GENERAL_FAILURE` (value: `"GENERAL_FAILURE"`) - -* `HASH_FAILURE` (value: `"HASH_FAILURE"`) - -* `VALIDATION_FAILURE` (value: `"VALIDATION_FAILURE"`) - -* `COPY_FAILURE` (value: `"COPY_FAILURE"`) - -* `RELOAD_FAILIURE` (value: `"RELOAD_FAILIURE"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2UpdateBatchMaintenanceWindow.md b/upgradepolicy/docs/ServiceV2UpdateBatchMaintenanceWindow.md deleted file mode 100644 index 3a92b94..0000000 --- a/upgradepolicy/docs/ServiceV2UpdateBatchMaintenanceWindow.md +++ /dev/null @@ -1,134 +0,0 @@ -# ServiceV2UpdateBatchMaintenanceWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DeferredWindow** | Pointer to [**ServiceV2DeferredWindow**](ServiceV2DeferredWindow.md) | | [optional] -**MwId** | Pointer to **string** | | [optional] -**ScheduledWindow** | Pointer to [**ServiceV2ScheduledWindow**](ServiceV2ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] - -## Methods - -### NewServiceV2UpdateBatchMaintenanceWindow - -`func NewServiceV2UpdateBatchMaintenanceWindow() *ServiceV2UpdateBatchMaintenanceWindow` - -NewServiceV2UpdateBatchMaintenanceWindow instantiates a new ServiceV2UpdateBatchMaintenanceWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2UpdateBatchMaintenanceWindowWithDefaults - -`func NewServiceV2UpdateBatchMaintenanceWindowWithDefaults() *ServiceV2UpdateBatchMaintenanceWindow` - -NewServiceV2UpdateBatchMaintenanceWindowWithDefaults instantiates a new ServiceV2UpdateBatchMaintenanceWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDeferredWindow - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow` - -GetDeferredWindow returns the DeferredWindow field if non-nil, zero value otherwise. - -### GetDeferredWindowOk - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool)` - -GetDeferredWindowOk returns a tuple with the DeferredWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeferredWindow - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow)` - -SetDeferredWindow sets DeferredWindow field to given value. - -### HasDeferredWindow - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) HasDeferredWindow() bool` - -HasDeferredWindow returns a boolean if a field has been set. - -### GetMwId - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetMwId() string` - -GetMwId returns the MwId field if non-nil, zero value otherwise. - -### GetMwIdOk - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetMwIdOk() (*string, bool)` - -GetMwIdOk returns a tuple with the MwId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMwId - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) SetMwId(v string)` - -SetMwId sets MwId field to given value. - -### HasMwId - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) HasMwId() bool` - -HasMwId returns a boolean if a field has been set. - -### GetScheduledWindow - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow` - -GetScheduledWindow returns the ScheduledWindow field if non-nil, zero value otherwise. - -### GetScheduledWindowOk - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool)` - -GetScheduledWindowOk returns a tuple with the ScheduledWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScheduledWindow - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow)` - -SetScheduledWindow sets ScheduledWindow field to given value. - -### HasScheduledWindow - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) HasScheduledWindow() bool` - -HasScheduledWindow returns a boolean if a field has been set. - -### GetTags - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetTags() map[string]map[string]interface{}` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) GetTagsOk() (*map[string]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 *ServiceV2UpdateBatchMaintenanceWindow) SetTags(v map[string]map[string]interface{})` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ServiceV2UpdateBatchMaintenanceWindow) HasTags() bool` - -HasTags returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindow.md b/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindow.md deleted file mode 100644 index e11dbed..0000000 --- a/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindow.md +++ /dev/null @@ -1,134 +0,0 @@ -# ServiceV2UpdateMaintenanceWindow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DeferredWindow** | Pointer to [**ServiceV2DeferredWindow**](ServiceV2DeferredWindow.md) | | [optional] -**Id** | Pointer to **string** | | [optional] [readonly] -**ScheduledWindow** | Pointer to [**ServiceV2ScheduledWindow**](ServiceV2ScheduledWindow.md) | | [optional] -**Tags** | Pointer to **map[string]map[string]interface{}** | | [optional] - -## Methods - -### NewServiceV2UpdateMaintenanceWindow - -`func NewServiceV2UpdateMaintenanceWindow() *ServiceV2UpdateMaintenanceWindow` - -NewServiceV2UpdateMaintenanceWindow instantiates a new ServiceV2UpdateMaintenanceWindow object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2UpdateMaintenanceWindowWithDefaults - -`func NewServiceV2UpdateMaintenanceWindowWithDefaults() *ServiceV2UpdateMaintenanceWindow` - -NewServiceV2UpdateMaintenanceWindowWithDefaults instantiates a new ServiceV2UpdateMaintenanceWindow object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDeferredWindow - -`func (o *ServiceV2UpdateMaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow` - -GetDeferredWindow returns the DeferredWindow field if non-nil, zero value otherwise. - -### GetDeferredWindowOk - -`func (o *ServiceV2UpdateMaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool)` - -GetDeferredWindowOk returns a tuple with the DeferredWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeferredWindow - -`func (o *ServiceV2UpdateMaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow)` - -SetDeferredWindow sets DeferredWindow field to given value. - -### HasDeferredWindow - -`func (o *ServiceV2UpdateMaintenanceWindow) HasDeferredWindow() bool` - -HasDeferredWindow returns a boolean if a field has been set. - -### GetId - -`func (o *ServiceV2UpdateMaintenanceWindow) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceV2UpdateMaintenanceWindow) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ServiceV2UpdateMaintenanceWindow) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceV2UpdateMaintenanceWindow) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetScheduledWindow - -`func (o *ServiceV2UpdateMaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow` - -GetScheduledWindow returns the ScheduledWindow field if non-nil, zero value otherwise. - -### GetScheduledWindowOk - -`func (o *ServiceV2UpdateMaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool)` - -GetScheduledWindowOk returns a tuple with the ScheduledWindow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetScheduledWindow - -`func (o *ServiceV2UpdateMaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow)` - -SetScheduledWindow sets ScheduledWindow field to given value. - -### HasScheduledWindow - -`func (o *ServiceV2UpdateMaintenanceWindow) HasScheduledWindow() bool` - -HasScheduledWindow returns a boolean if a field has been set. - -### GetTags - -`func (o *ServiceV2UpdateMaintenanceWindow) GetTags() map[string]map[string]interface{}` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ServiceV2UpdateMaintenanceWindow) GetTagsOk() (*map[string]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 *ServiceV2UpdateMaintenanceWindow) SetTags(v map[string]map[string]interface{})` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ServiceV2UpdateMaintenanceWindow) HasTags() bool` - -HasTags returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindowRequest.md b/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindowRequest.md deleted file mode 100644 index e33a178..0000000 --- a/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindowRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# ServiceV2UpdateMaintenanceWindowRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | Pointer to **string** | | [optional] [readonly] -**Payload** | Pointer to [**ServiceV2UpdateMaintenanceWindow**](ServiceV2UpdateMaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2UpdateMaintenanceWindowRequest - -`func NewServiceV2UpdateMaintenanceWindowRequest() *ServiceV2UpdateMaintenanceWindowRequest` - -NewServiceV2UpdateMaintenanceWindowRequest instantiates a new ServiceV2UpdateMaintenanceWindowRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2UpdateMaintenanceWindowRequestWithDefaults - -`func NewServiceV2UpdateMaintenanceWindowRequestWithDefaults() *ServiceV2UpdateMaintenanceWindowRequest` - -NewServiceV2UpdateMaintenanceWindowRequestWithDefaults instantiates a new ServiceV2UpdateMaintenanceWindowRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetPayload - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) GetPayload() ServiceV2UpdateMaintenanceWindow` - -GetPayload returns the Payload field if non-nil, zero value otherwise. - -### GetPayloadOk - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) GetPayloadOk() (*ServiceV2UpdateMaintenanceWindow, bool)` - -GetPayloadOk returns a tuple with the Payload field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayload - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) SetPayload(v ServiceV2UpdateMaintenanceWindow)` - -SetPayload sets Payload field to given value. - -### HasPayload - -`func (o *ServiceV2UpdateMaintenanceWindowRequest) HasPayload() bool` - -HasPayload returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindowResponse.md b/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindowResponse.md deleted file mode 100644 index bb1b9a9..0000000 --- a/upgradepolicy/docs/ServiceV2UpdateMaintenanceWindowResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# ServiceV2UpdateMaintenanceWindowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Result** | Pointer to [**ServiceV2MaintenanceWindow**](ServiceV2MaintenanceWindow.md) | | [optional] - -## Methods - -### NewServiceV2UpdateMaintenanceWindowResponse - -`func NewServiceV2UpdateMaintenanceWindowResponse() *ServiceV2UpdateMaintenanceWindowResponse` - -NewServiceV2UpdateMaintenanceWindowResponse instantiates a new ServiceV2UpdateMaintenanceWindowResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewServiceV2UpdateMaintenanceWindowResponseWithDefaults - -`func NewServiceV2UpdateMaintenanceWindowResponseWithDefaults() *ServiceV2UpdateMaintenanceWindowResponse` - -NewServiceV2UpdateMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2UpdateMaintenanceWindowResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetResult - -`func (o *ServiceV2UpdateMaintenanceWindowResponse) GetResult() ServiceV2MaintenanceWindow` - -GetResult returns the Result field if non-nil, zero value otherwise. - -### GetResultOk - -`func (o *ServiceV2UpdateMaintenanceWindowResponse) GetResultOk() (*ServiceV2MaintenanceWindow, bool)` - -GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResult - -`func (o *ServiceV2UpdateMaintenanceWindowResponse) SetResult(v ServiceV2MaintenanceWindow)` - -SetResult sets Result field to given value. - -### HasResult - -`func (o *ServiceV2UpdateMaintenanceWindowResponse) HasResult() bool` - -HasResult returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/upgradepolicy/docs/UpgradePolicyV2API.md b/upgradepolicy/docs/UpgradePolicyV2API.md index c04dfe6..f2a30a3 100644 --- a/upgradepolicy/docs/UpgradePolicyV2API.md +++ b/upgradepolicy/docs/UpgradePolicyV2API.md @@ -1,6 +1,6 @@ # UpgradePolicyV2API -All URIs are relative to *http://localhost/api/upgrade_policy* +All URIs are relative to *http://csp.infoblox.com/api/upgrade_policy* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/upgradepolicy/model_service_v2_apply_config_now_request.go b/upgradepolicy/model_service_v2_apply_config_now_request.go deleted file mode 100644 index b4284a7..0000000 --- a/upgradepolicy/model_service_v2_apply_config_now_request.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2ApplyConfigNowRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2ApplyConfigNowRequest{} - -// ServiceV2ApplyConfigNowRequest struct for ServiceV2ApplyConfigNowRequest -type ServiceV2ApplyConfigNowRequest struct { - Payload []ServiceV2OnpremDetails `json:"payload,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2ApplyConfigNowRequest ServiceV2ApplyConfigNowRequest - -// NewServiceV2ApplyConfigNowRequest instantiates a new ServiceV2ApplyConfigNowRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2ApplyConfigNowRequest() *ServiceV2ApplyConfigNowRequest { - this := ServiceV2ApplyConfigNowRequest{} - return &this -} - -// NewServiceV2ApplyConfigNowRequestWithDefaults instantiates a new ServiceV2ApplyConfigNowRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2ApplyConfigNowRequestWithDefaults() *ServiceV2ApplyConfigNowRequest { - this := ServiceV2ApplyConfigNowRequest{} - return &this -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *ServiceV2ApplyConfigNowRequest) GetPayload() []ServiceV2OnpremDetails { - if o == nil || IsNil(o.Payload) { - var ret []ServiceV2OnpremDetails - return ret - } - return o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ApplyConfigNowRequest) GetPayloadOk() ([]ServiceV2OnpremDetails, bool) { - if o == nil || IsNil(o.Payload) { - return nil, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *ServiceV2ApplyConfigNowRequest) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given []ServiceV2OnpremDetails and assigns it to the Payload field. -func (o *ServiceV2ApplyConfigNowRequest) SetPayload(v []ServiceV2OnpremDetails) { - o.Payload = v -} - -func (o ServiceV2ApplyConfigNowRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2ApplyConfigNowRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Payload) { - toSerialize["payload"] = o.Payload - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2ApplyConfigNowRequest) UnmarshalJSON(data []byte) (err error) { - varServiceV2ApplyConfigNowRequest := _ServiceV2ApplyConfigNowRequest{} - - err = json.Unmarshal(data, &varServiceV2ApplyConfigNowRequest) - - if err != nil { - return err - } - - *o = ServiceV2ApplyConfigNowRequest(varServiceV2ApplyConfigNowRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "payload") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2ApplyConfigNowRequest struct { - value *ServiceV2ApplyConfigNowRequest - isSet bool -} - -func (v NullableServiceV2ApplyConfigNowRequest) Get() *ServiceV2ApplyConfigNowRequest { - return v.value -} - -func (v *NullableServiceV2ApplyConfigNowRequest) Set(val *ServiceV2ApplyConfigNowRequest) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2ApplyConfigNowRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2ApplyConfigNowRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2ApplyConfigNowRequest(val *ServiceV2ApplyConfigNowRequest) *NullableServiceV2ApplyConfigNowRequest { - return &NullableServiceV2ApplyConfigNowRequest{value: val, isSet: true} -} - -func (v NullableServiceV2ApplyConfigNowRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2ApplyConfigNowRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_apply_config_now_response.go b/upgradepolicy/model_service_v2_apply_config_now_response.go deleted file mode 100644 index fe1f73a..0000000 --- a/upgradepolicy/model_service_v2_apply_config_now_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2ApplyConfigNowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2ApplyConfigNowResponse{} - -// ServiceV2ApplyConfigNowResponse struct for ServiceV2ApplyConfigNowResponse -type ServiceV2ApplyConfigNowResponse struct { - Result []ServiceV2ApplyConfigNowStatus `json:"result,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2ApplyConfigNowResponse ServiceV2ApplyConfigNowResponse - -// NewServiceV2ApplyConfigNowResponse instantiates a new ServiceV2ApplyConfigNowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2ApplyConfigNowResponse() *ServiceV2ApplyConfigNowResponse { - this := ServiceV2ApplyConfigNowResponse{} - return &this -} - -// NewServiceV2ApplyConfigNowResponseWithDefaults instantiates a new ServiceV2ApplyConfigNowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2ApplyConfigNowResponseWithDefaults() *ServiceV2ApplyConfigNowResponse { - this := ServiceV2ApplyConfigNowResponse{} - return &this -} - -// GetResult returns the Result field value if set, zero value otherwise. -func (o *ServiceV2ApplyConfigNowResponse) GetResult() []ServiceV2ApplyConfigNowStatus { - if o == nil || IsNil(o.Result) { - var ret []ServiceV2ApplyConfigNowStatus - return ret - } - return o.Result -} - -// GetResultOk returns a tuple with the Result field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ApplyConfigNowResponse) GetResultOk() ([]ServiceV2ApplyConfigNowStatus, bool) { - if o == nil || IsNil(o.Result) { - return nil, false - } - return o.Result, true -} - -// HasResult returns a boolean if a field has been set. -func (o *ServiceV2ApplyConfigNowResponse) HasResult() bool { - if o != nil && !IsNil(o.Result) { - return true - } - - return false -} - -// SetResult gets a reference to the given []ServiceV2ApplyConfigNowStatus and assigns it to the Result field. -func (o *ServiceV2ApplyConfigNowResponse) SetResult(v []ServiceV2ApplyConfigNowStatus) { - o.Result = v -} - -func (o ServiceV2ApplyConfigNowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2ApplyConfigNowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Result) { - toSerialize["result"] = o.Result - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2ApplyConfigNowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2ApplyConfigNowResponse := _ServiceV2ApplyConfigNowResponse{} - - err = json.Unmarshal(data, &varServiceV2ApplyConfigNowResponse) - - if err != nil { - return err - } - - *o = ServiceV2ApplyConfigNowResponse(varServiceV2ApplyConfigNowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "result") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2ApplyConfigNowResponse struct { - value *ServiceV2ApplyConfigNowResponse - isSet bool -} - -func (v NullableServiceV2ApplyConfigNowResponse) Get() *ServiceV2ApplyConfigNowResponse { - return v.value -} - -func (v *NullableServiceV2ApplyConfigNowResponse) Set(val *ServiceV2ApplyConfigNowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2ApplyConfigNowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2ApplyConfigNowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2ApplyConfigNowResponse(val *ServiceV2ApplyConfigNowResponse) *NullableServiceV2ApplyConfigNowResponse { - return &NullableServiceV2ApplyConfigNowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2ApplyConfigNowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2ApplyConfigNowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_apply_config_now_status.go b/upgradepolicy/model_service_v2_apply_config_now_status.go deleted file mode 100644 index 8a91cdf..0000000 --- a/upgradepolicy/model_service_v2_apply_config_now_status.go +++ /dev/null @@ -1,231 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2ApplyConfigNowStatus type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2ApplyConfigNowStatus{} - -// ServiceV2ApplyConfigNowStatus struct for ServiceV2ApplyConfigNowStatus -type ServiceV2ApplyConfigNowStatus struct { - Hostid *string `json:"hostid,omitempty"` - Ophid *string `json:"ophid,omitempty"` - StatusCode *ServiceV2StatusCode `json:"statusCode,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2ApplyConfigNowStatus ServiceV2ApplyConfigNowStatus - -// NewServiceV2ApplyConfigNowStatus instantiates a new ServiceV2ApplyConfigNowStatus object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2ApplyConfigNowStatus() *ServiceV2ApplyConfigNowStatus { - this := ServiceV2ApplyConfigNowStatus{} - var statusCode ServiceV2StatusCode = SERVICEV2STATUSCODE_SUCCESS - this.StatusCode = &statusCode - return &this -} - -// NewServiceV2ApplyConfigNowStatusWithDefaults instantiates a new ServiceV2ApplyConfigNowStatus object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2ApplyConfigNowStatusWithDefaults() *ServiceV2ApplyConfigNowStatus { - this := ServiceV2ApplyConfigNowStatus{} - var statusCode ServiceV2StatusCode = SERVICEV2STATUSCODE_SUCCESS - this.StatusCode = &statusCode - return &this -} - -// GetHostid returns the Hostid field value if set, zero value otherwise. -func (o *ServiceV2ApplyConfigNowStatus) GetHostid() string { - if o == nil || IsNil(o.Hostid) { - var ret string - return ret - } - return *o.Hostid -} - -// GetHostidOk returns a tuple with the Hostid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ApplyConfigNowStatus) GetHostidOk() (*string, bool) { - if o == nil || IsNil(o.Hostid) { - return nil, false - } - return o.Hostid, true -} - -// HasHostid returns a boolean if a field has been set. -func (o *ServiceV2ApplyConfigNowStatus) HasHostid() bool { - if o != nil && !IsNil(o.Hostid) { - return true - } - - return false -} - -// SetHostid gets a reference to the given string and assigns it to the Hostid field. -func (o *ServiceV2ApplyConfigNowStatus) SetHostid(v string) { - o.Hostid = &v -} - -// GetOphid returns the Ophid field value if set, zero value otherwise. -func (o *ServiceV2ApplyConfigNowStatus) GetOphid() string { - if o == nil || IsNil(o.Ophid) { - var ret string - return ret - } - return *o.Ophid -} - -// GetOphidOk returns a tuple with the Ophid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ApplyConfigNowStatus) GetOphidOk() (*string, bool) { - if o == nil || IsNil(o.Ophid) { - return nil, false - } - return o.Ophid, true -} - -// HasOphid returns a boolean if a field has been set. -func (o *ServiceV2ApplyConfigNowStatus) HasOphid() bool { - if o != nil && !IsNil(o.Ophid) { - return true - } - - return false -} - -// SetOphid gets a reference to the given string and assigns it to the Ophid field. -func (o *ServiceV2ApplyConfigNowStatus) SetOphid(v string) { - o.Ophid = &v -} - -// GetStatusCode returns the StatusCode field value if set, zero value otherwise. -func (o *ServiceV2ApplyConfigNowStatus) GetStatusCode() ServiceV2StatusCode { - if o == nil || IsNil(o.StatusCode) { - var ret ServiceV2StatusCode - return ret - } - return *o.StatusCode -} - -// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ApplyConfigNowStatus) GetStatusCodeOk() (*ServiceV2StatusCode, bool) { - if o == nil || IsNil(o.StatusCode) { - return nil, false - } - return o.StatusCode, true -} - -// HasStatusCode returns a boolean if a field has been set. -func (o *ServiceV2ApplyConfigNowStatus) HasStatusCode() bool { - if o != nil && !IsNil(o.StatusCode) { - return true - } - - return false -} - -// SetStatusCode gets a reference to the given ServiceV2StatusCode and assigns it to the StatusCode field. -func (o *ServiceV2ApplyConfigNowStatus) SetStatusCode(v ServiceV2StatusCode) { - o.StatusCode = &v -} - -func (o ServiceV2ApplyConfigNowStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2ApplyConfigNowStatus) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Hostid) { - toSerialize["hostid"] = o.Hostid - } - if !IsNil(o.Ophid) { - toSerialize["ophid"] = o.Ophid - } - if !IsNil(o.StatusCode) { - toSerialize["statusCode"] = o.StatusCode - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2ApplyConfigNowStatus) UnmarshalJSON(data []byte) (err error) { - varServiceV2ApplyConfigNowStatus := _ServiceV2ApplyConfigNowStatus{} - - err = json.Unmarshal(data, &varServiceV2ApplyConfigNowStatus) - - if err != nil { - return err - } - - *o = ServiceV2ApplyConfigNowStatus(varServiceV2ApplyConfigNowStatus) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "hostid") - delete(additionalProperties, "ophid") - delete(additionalProperties, "statusCode") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2ApplyConfigNowStatus struct { - value *ServiceV2ApplyConfigNowStatus - isSet bool -} - -func (v NullableServiceV2ApplyConfigNowStatus) Get() *ServiceV2ApplyConfigNowStatus { - return v.value -} - -func (v *NullableServiceV2ApplyConfigNowStatus) Set(val *ServiceV2ApplyConfigNowStatus) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2ApplyConfigNowStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2ApplyConfigNowStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2ApplyConfigNowStatus(val *ServiceV2ApplyConfigNowStatus) *NullableServiceV2ApplyConfigNowStatus { - return &NullableServiceV2ApplyConfigNowStatus{value: val, isSet: true} -} - -func (v NullableServiceV2ApplyConfigNowStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2ApplyConfigNowStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_batch_maintenance_window.go b/upgradepolicy/model_service_v2_batch_maintenance_window.go deleted file mode 100644 index 459325f..0000000 --- a/upgradepolicy/model_service_v2_batch_maintenance_window.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2BatchMaintenanceWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2BatchMaintenanceWindow{} - -// ServiceV2BatchMaintenanceWindow struct for ServiceV2BatchMaintenanceWindow -type ServiceV2BatchMaintenanceWindow struct { - CreateMws []ServiceV2CreateMaintenanceWindow `json:"create_mws,omitempty"` - DeleteMws []string `json:"delete_mws,omitempty"` - UpdateMws []ServiceV2UpdateBatchMaintenanceWindow `json:"update_mws,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2BatchMaintenanceWindow ServiceV2BatchMaintenanceWindow - -// NewServiceV2BatchMaintenanceWindow instantiates a new ServiceV2BatchMaintenanceWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2BatchMaintenanceWindow() *ServiceV2BatchMaintenanceWindow { - this := ServiceV2BatchMaintenanceWindow{} - return &this -} - -// NewServiceV2BatchMaintenanceWindowWithDefaults instantiates a new ServiceV2BatchMaintenanceWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2BatchMaintenanceWindowWithDefaults() *ServiceV2BatchMaintenanceWindow { - this := ServiceV2BatchMaintenanceWindow{} - return &this -} - -// GetCreateMws returns the CreateMws field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindow) GetCreateMws() []ServiceV2CreateMaintenanceWindow { - if o == nil || IsNil(o.CreateMws) { - var ret []ServiceV2CreateMaintenanceWindow - return ret - } - return o.CreateMws -} - -// GetCreateMwsOk returns a tuple with the CreateMws field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindow) GetCreateMwsOk() ([]ServiceV2CreateMaintenanceWindow, bool) { - if o == nil || IsNil(o.CreateMws) { - return nil, false - } - return o.CreateMws, true -} - -// HasCreateMws returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindow) HasCreateMws() bool { - if o != nil && !IsNil(o.CreateMws) { - return true - } - - return false -} - -// SetCreateMws gets a reference to the given []ServiceV2CreateMaintenanceWindow and assigns it to the CreateMws field. -func (o *ServiceV2BatchMaintenanceWindow) SetCreateMws(v []ServiceV2CreateMaintenanceWindow) { - o.CreateMws = v -} - -// GetDeleteMws returns the DeleteMws field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindow) GetDeleteMws() []string { - if o == nil || IsNil(o.DeleteMws) { - var ret []string - return ret - } - return o.DeleteMws -} - -// GetDeleteMwsOk returns a tuple with the DeleteMws field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindow) GetDeleteMwsOk() ([]string, bool) { - if o == nil || IsNil(o.DeleteMws) { - return nil, false - } - return o.DeleteMws, true -} - -// HasDeleteMws returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindow) HasDeleteMws() bool { - if o != nil && !IsNil(o.DeleteMws) { - return true - } - - return false -} - -// SetDeleteMws gets a reference to the given []string and assigns it to the DeleteMws field. -func (o *ServiceV2BatchMaintenanceWindow) SetDeleteMws(v []string) { - o.DeleteMws = v -} - -// GetUpdateMws returns the UpdateMws field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindow) GetUpdateMws() []ServiceV2UpdateBatchMaintenanceWindow { - if o == nil || IsNil(o.UpdateMws) { - var ret []ServiceV2UpdateBatchMaintenanceWindow - return ret - } - return o.UpdateMws -} - -// GetUpdateMwsOk returns a tuple with the UpdateMws field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindow) GetUpdateMwsOk() ([]ServiceV2UpdateBatchMaintenanceWindow, bool) { - if o == nil || IsNil(o.UpdateMws) { - return nil, false - } - return o.UpdateMws, true -} - -// HasUpdateMws returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindow) HasUpdateMws() bool { - if o != nil && !IsNil(o.UpdateMws) { - return true - } - - return false -} - -// SetUpdateMws gets a reference to the given []ServiceV2UpdateBatchMaintenanceWindow and assigns it to the UpdateMws field. -func (o *ServiceV2BatchMaintenanceWindow) SetUpdateMws(v []ServiceV2UpdateBatchMaintenanceWindow) { - o.UpdateMws = v -} - -func (o ServiceV2BatchMaintenanceWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2BatchMaintenanceWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreateMws) { - toSerialize["create_mws"] = o.CreateMws - } - if !IsNil(o.DeleteMws) { - toSerialize["delete_mws"] = o.DeleteMws - } - if !IsNil(o.UpdateMws) { - toSerialize["update_mws"] = o.UpdateMws - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2BatchMaintenanceWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2BatchMaintenanceWindow := _ServiceV2BatchMaintenanceWindow{} - - err = json.Unmarshal(data, &varServiceV2BatchMaintenanceWindow) - - if err != nil { - return err - } - - *o = ServiceV2BatchMaintenanceWindow(varServiceV2BatchMaintenanceWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "create_mws") - delete(additionalProperties, "delete_mws") - delete(additionalProperties, "update_mws") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2BatchMaintenanceWindow struct { - value *ServiceV2BatchMaintenanceWindow - isSet bool -} - -func (v NullableServiceV2BatchMaintenanceWindow) Get() *ServiceV2BatchMaintenanceWindow { - return v.value -} - -func (v *NullableServiceV2BatchMaintenanceWindow) Set(val *ServiceV2BatchMaintenanceWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2BatchMaintenanceWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2BatchMaintenanceWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2BatchMaintenanceWindow(val *ServiceV2BatchMaintenanceWindow) *NullableServiceV2BatchMaintenanceWindow { - return &NullableServiceV2BatchMaintenanceWindow{value: val, isSet: true} -} - -func (v NullableServiceV2BatchMaintenanceWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2BatchMaintenanceWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_batch_maintenance_window_request.go b/upgradepolicy/model_service_v2_batch_maintenance_window_request.go deleted file mode 100644 index 5ee843a..0000000 --- a/upgradepolicy/model_service_v2_batch_maintenance_window_request.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2BatchMaintenanceWindowRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2BatchMaintenanceWindowRequest{} - -// ServiceV2BatchMaintenanceWindowRequest struct for ServiceV2BatchMaintenanceWindowRequest -type ServiceV2BatchMaintenanceWindowRequest struct { - Payload *ServiceV2BatchMaintenanceWindow `json:"payload,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2BatchMaintenanceWindowRequest ServiceV2BatchMaintenanceWindowRequest - -// NewServiceV2BatchMaintenanceWindowRequest instantiates a new ServiceV2BatchMaintenanceWindowRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2BatchMaintenanceWindowRequest() *ServiceV2BatchMaintenanceWindowRequest { - this := ServiceV2BatchMaintenanceWindowRequest{} - return &this -} - -// NewServiceV2BatchMaintenanceWindowRequestWithDefaults instantiates a new ServiceV2BatchMaintenanceWindowRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2BatchMaintenanceWindowRequestWithDefaults() *ServiceV2BatchMaintenanceWindowRequest { - this := ServiceV2BatchMaintenanceWindowRequest{} - return &this -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindowRequest) GetPayload() ServiceV2BatchMaintenanceWindow { - if o == nil || IsNil(o.Payload) { - var ret ServiceV2BatchMaintenanceWindow - return ret - } - return *o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindowRequest) GetPayloadOk() (*ServiceV2BatchMaintenanceWindow, bool) { - if o == nil || IsNil(o.Payload) { - return nil, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindowRequest) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given ServiceV2BatchMaintenanceWindow and assigns it to the Payload field. -func (o *ServiceV2BatchMaintenanceWindowRequest) SetPayload(v ServiceV2BatchMaintenanceWindow) { - o.Payload = &v -} - -func (o ServiceV2BatchMaintenanceWindowRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2BatchMaintenanceWindowRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Payload) { - toSerialize["payload"] = o.Payload - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2BatchMaintenanceWindowRequest) UnmarshalJSON(data []byte) (err error) { - varServiceV2BatchMaintenanceWindowRequest := _ServiceV2BatchMaintenanceWindowRequest{} - - err = json.Unmarshal(data, &varServiceV2BatchMaintenanceWindowRequest) - - if err != nil { - return err - } - - *o = ServiceV2BatchMaintenanceWindowRequest(varServiceV2BatchMaintenanceWindowRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "payload") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2BatchMaintenanceWindowRequest struct { - value *ServiceV2BatchMaintenanceWindowRequest - isSet bool -} - -func (v NullableServiceV2BatchMaintenanceWindowRequest) Get() *ServiceV2BatchMaintenanceWindowRequest { - return v.value -} - -func (v *NullableServiceV2BatchMaintenanceWindowRequest) Set(val *ServiceV2BatchMaintenanceWindowRequest) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2BatchMaintenanceWindowRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2BatchMaintenanceWindowRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2BatchMaintenanceWindowRequest(val *ServiceV2BatchMaintenanceWindowRequest) *NullableServiceV2BatchMaintenanceWindowRequest { - return &NullableServiceV2BatchMaintenanceWindowRequest{value: val, isSet: true} -} - -func (v NullableServiceV2BatchMaintenanceWindowRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2BatchMaintenanceWindowRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_batch_maintenance_window_response.go b/upgradepolicy/model_service_v2_batch_maintenance_window_response.go deleted file mode 100644 index fa19311..0000000 --- a/upgradepolicy/model_service_v2_batch_maintenance_window_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2BatchMaintenanceWindowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2BatchMaintenanceWindowResponse{} - -// ServiceV2BatchMaintenanceWindowResponse struct for ServiceV2BatchMaintenanceWindowResponse -type ServiceV2BatchMaintenanceWindowResponse struct { - Result *ServiceV2BatchMaintenanceWindowResult `json:"result,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2BatchMaintenanceWindowResponse ServiceV2BatchMaintenanceWindowResponse - -// NewServiceV2BatchMaintenanceWindowResponse instantiates a new ServiceV2BatchMaintenanceWindowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2BatchMaintenanceWindowResponse() *ServiceV2BatchMaintenanceWindowResponse { - this := ServiceV2BatchMaintenanceWindowResponse{} - return &this -} - -// NewServiceV2BatchMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2BatchMaintenanceWindowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2BatchMaintenanceWindowResponseWithDefaults() *ServiceV2BatchMaintenanceWindowResponse { - this := ServiceV2BatchMaintenanceWindowResponse{} - return &this -} - -// GetResult returns the Result field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindowResponse) GetResult() ServiceV2BatchMaintenanceWindowResult { - if o == nil || IsNil(o.Result) { - var ret ServiceV2BatchMaintenanceWindowResult - return ret - } - return *o.Result -} - -// GetResultOk returns a tuple with the Result field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindowResponse) GetResultOk() (*ServiceV2BatchMaintenanceWindowResult, bool) { - if o == nil || IsNil(o.Result) { - return nil, false - } - return o.Result, true -} - -// HasResult returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindowResponse) HasResult() bool { - if o != nil && !IsNil(o.Result) { - return true - } - - return false -} - -// SetResult gets a reference to the given ServiceV2BatchMaintenanceWindowResult and assigns it to the Result field. -func (o *ServiceV2BatchMaintenanceWindowResponse) SetResult(v ServiceV2BatchMaintenanceWindowResult) { - o.Result = &v -} - -func (o ServiceV2BatchMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2BatchMaintenanceWindowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Result) { - toSerialize["result"] = o.Result - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2BatchMaintenanceWindowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2BatchMaintenanceWindowResponse := _ServiceV2BatchMaintenanceWindowResponse{} - - err = json.Unmarshal(data, &varServiceV2BatchMaintenanceWindowResponse) - - if err != nil { - return err - } - - *o = ServiceV2BatchMaintenanceWindowResponse(varServiceV2BatchMaintenanceWindowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "result") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2BatchMaintenanceWindowResponse struct { - value *ServiceV2BatchMaintenanceWindowResponse - isSet bool -} - -func (v NullableServiceV2BatchMaintenanceWindowResponse) Get() *ServiceV2BatchMaintenanceWindowResponse { - return v.value -} - -func (v *NullableServiceV2BatchMaintenanceWindowResponse) Set(val *ServiceV2BatchMaintenanceWindowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2BatchMaintenanceWindowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2BatchMaintenanceWindowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2BatchMaintenanceWindowResponse(val *ServiceV2BatchMaintenanceWindowResponse) *NullableServiceV2BatchMaintenanceWindowResponse { - return &NullableServiceV2BatchMaintenanceWindowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2BatchMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2BatchMaintenanceWindowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_batch_maintenance_window_result.go b/upgradepolicy/model_service_v2_batch_maintenance_window_result.go deleted file mode 100644 index b46f3fc..0000000 --- a/upgradepolicy/model_service_v2_batch_maintenance_window_result.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2BatchMaintenanceWindowResult type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2BatchMaintenanceWindowResult{} - -// ServiceV2BatchMaintenanceWindowResult struct for ServiceV2BatchMaintenanceWindowResult -type ServiceV2BatchMaintenanceWindowResult struct { - CreatedIds []string `json:"created_ids,omitempty"` - UpdatedMws []ServiceV2MaintenanceWindow `json:"updated_mws,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2BatchMaintenanceWindowResult ServiceV2BatchMaintenanceWindowResult - -// NewServiceV2BatchMaintenanceWindowResult instantiates a new ServiceV2BatchMaintenanceWindowResult object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2BatchMaintenanceWindowResult() *ServiceV2BatchMaintenanceWindowResult { - this := ServiceV2BatchMaintenanceWindowResult{} - return &this -} - -// NewServiceV2BatchMaintenanceWindowResultWithDefaults instantiates a new ServiceV2BatchMaintenanceWindowResult object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2BatchMaintenanceWindowResultWithDefaults() *ServiceV2BatchMaintenanceWindowResult { - this := ServiceV2BatchMaintenanceWindowResult{} - return &this -} - -// GetCreatedIds returns the CreatedIds field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindowResult) GetCreatedIds() []string { - if o == nil || IsNil(o.CreatedIds) { - var ret []string - return ret - } - return o.CreatedIds -} - -// GetCreatedIdsOk returns a tuple with the CreatedIds field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindowResult) GetCreatedIdsOk() ([]string, bool) { - if o == nil || IsNil(o.CreatedIds) { - return nil, false - } - return o.CreatedIds, true -} - -// HasCreatedIds returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindowResult) HasCreatedIds() bool { - if o != nil && !IsNil(o.CreatedIds) { - return true - } - - return false -} - -// SetCreatedIds gets a reference to the given []string and assigns it to the CreatedIds field. -func (o *ServiceV2BatchMaintenanceWindowResult) SetCreatedIds(v []string) { - o.CreatedIds = v -} - -// GetUpdatedMws returns the UpdatedMws field value if set, zero value otherwise. -func (o *ServiceV2BatchMaintenanceWindowResult) GetUpdatedMws() []ServiceV2MaintenanceWindow { - if o == nil || IsNil(o.UpdatedMws) { - var ret []ServiceV2MaintenanceWindow - return ret - } - return o.UpdatedMws -} - -// GetUpdatedMwsOk returns a tuple with the UpdatedMws field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2BatchMaintenanceWindowResult) GetUpdatedMwsOk() ([]ServiceV2MaintenanceWindow, bool) { - if o == nil || IsNil(o.UpdatedMws) { - return nil, false - } - return o.UpdatedMws, true -} - -// HasUpdatedMws returns a boolean if a field has been set. -func (o *ServiceV2BatchMaintenanceWindowResult) HasUpdatedMws() bool { - if o != nil && !IsNil(o.UpdatedMws) { - return true - } - - return false -} - -// SetUpdatedMws gets a reference to the given []ServiceV2MaintenanceWindow and assigns it to the UpdatedMws field. -func (o *ServiceV2BatchMaintenanceWindowResult) SetUpdatedMws(v []ServiceV2MaintenanceWindow) { - o.UpdatedMws = v -} - -func (o ServiceV2BatchMaintenanceWindowResult) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2BatchMaintenanceWindowResult) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedIds) { - toSerialize["created_ids"] = o.CreatedIds - } - if !IsNil(o.UpdatedMws) { - toSerialize["updated_mws"] = o.UpdatedMws - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2BatchMaintenanceWindowResult) UnmarshalJSON(data []byte) (err error) { - varServiceV2BatchMaintenanceWindowResult := _ServiceV2BatchMaintenanceWindowResult{} - - err = json.Unmarshal(data, &varServiceV2BatchMaintenanceWindowResult) - - if err != nil { - return err - } - - *o = ServiceV2BatchMaintenanceWindowResult(varServiceV2BatchMaintenanceWindowResult) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "created_ids") - delete(additionalProperties, "updated_mws") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2BatchMaintenanceWindowResult struct { - value *ServiceV2BatchMaintenanceWindowResult - isSet bool -} - -func (v NullableServiceV2BatchMaintenanceWindowResult) Get() *ServiceV2BatchMaintenanceWindowResult { - return v.value -} - -func (v *NullableServiceV2BatchMaintenanceWindowResult) Set(val *ServiceV2BatchMaintenanceWindowResult) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2BatchMaintenanceWindowResult) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2BatchMaintenanceWindowResult) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2BatchMaintenanceWindowResult(val *ServiceV2BatchMaintenanceWindowResult) *NullableServiceV2BatchMaintenanceWindowResult { - return &NullableServiceV2BatchMaintenanceWindowResult{value: val, isSet: true} -} - -func (v NullableServiceV2BatchMaintenanceWindowResult) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2BatchMaintenanceWindowResult) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_create_maintenance_window.go b/upgradepolicy/model_service_v2_create_maintenance_window.go deleted file mode 100644 index 2718b66..0000000 --- a/upgradepolicy/model_service_v2_create_maintenance_window.go +++ /dev/null @@ -1,301 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2CreateMaintenanceWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2CreateMaintenanceWindow{} - -// ServiceV2CreateMaintenanceWindow struct for ServiceV2CreateMaintenanceWindow -type ServiceV2CreateMaintenanceWindow struct { - DeferredWindow *ServiceV2DeferredWindow `json:"deferred_window,omitempty"` - Id *string `json:"id,omitempty"` - ScheduledWindow *ServiceV2ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` - WindowType *string `json:"window_type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2CreateMaintenanceWindow ServiceV2CreateMaintenanceWindow - -// NewServiceV2CreateMaintenanceWindow instantiates a new ServiceV2CreateMaintenanceWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2CreateMaintenanceWindow() *ServiceV2CreateMaintenanceWindow { - this := ServiceV2CreateMaintenanceWindow{} - return &this -} - -// NewServiceV2CreateMaintenanceWindowWithDefaults instantiates a new ServiceV2CreateMaintenanceWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2CreateMaintenanceWindowWithDefaults() *ServiceV2CreateMaintenanceWindow { - this := ServiceV2CreateMaintenanceWindow{} - return &this -} - -// GetDeferredWindow returns the DeferredWindow field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow { - if o == nil || IsNil(o.DeferredWindow) { - var ret ServiceV2DeferredWindow - return ret - } - return *o.DeferredWindow -} - -// GetDeferredWindowOk returns a tuple with the DeferredWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2CreateMaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool) { - if o == nil || IsNil(o.DeferredWindow) { - return nil, false - } - return o.DeferredWindow, true -} - -// HasDeferredWindow returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindow) HasDeferredWindow() bool { - if o != nil && !IsNil(o.DeferredWindow) { - return true - } - - return false -} - -// SetDeferredWindow gets a reference to the given ServiceV2DeferredWindow and assigns it to the DeferredWindow field. -func (o *ServiceV2CreateMaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow) { - o.DeferredWindow = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindow) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2CreateMaintenanceWindow) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindow) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceV2CreateMaintenanceWindow) SetId(v string) { - o.Id = &v -} - -// GetScheduledWindow returns the ScheduledWindow field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow { - if o == nil || IsNil(o.ScheduledWindow) { - var ret ServiceV2ScheduledWindow - return ret - } - return *o.ScheduledWindow -} - -// GetScheduledWindowOk returns a tuple with the ScheduledWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2CreateMaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool) { - if o == nil || IsNil(o.ScheduledWindow) { - return nil, false - } - return o.ScheduledWindow, true -} - -// HasScheduledWindow returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindow) HasScheduledWindow() bool { - if o != nil && !IsNil(o.ScheduledWindow) { - return true - } - - return false -} - -// SetScheduledWindow gets a reference to the given ServiceV2ScheduledWindow and assigns it to the ScheduledWindow field. -func (o *ServiceV2CreateMaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow) { - o.ScheduledWindow = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindow) GetTags() map[string]map[string]interface{} { - if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} - return ret - } - return o.Tags -} - -// 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 *ServiceV2CreateMaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { - if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindow) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *ServiceV2CreateMaintenanceWindow) SetTags(v map[string]map[string]interface{}) { - o.Tags = v -} - -// GetWindowType returns the WindowType field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindow) GetWindowType() string { - if o == nil || IsNil(o.WindowType) { - var ret string - return ret - } - return *o.WindowType -} - -// GetWindowTypeOk returns a tuple with the WindowType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2CreateMaintenanceWindow) GetWindowTypeOk() (*string, bool) { - if o == nil || IsNil(o.WindowType) { - return nil, false - } - return o.WindowType, true -} - -// HasWindowType returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindow) HasWindowType() bool { - if o != nil && !IsNil(o.WindowType) { - return true - } - - return false -} - -// SetWindowType gets a reference to the given string and assigns it to the WindowType field. -func (o *ServiceV2CreateMaintenanceWindow) SetWindowType(v string) { - o.WindowType = &v -} - -func (o ServiceV2CreateMaintenanceWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2CreateMaintenanceWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.DeferredWindow) { - toSerialize["deferred_window"] = o.DeferredWindow - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.ScheduledWindow) { - toSerialize["scheduled_window"] = o.ScheduledWindow - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.WindowType) { - toSerialize["window_type"] = o.WindowType - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2CreateMaintenanceWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2CreateMaintenanceWindow := _ServiceV2CreateMaintenanceWindow{} - - err = json.Unmarshal(data, &varServiceV2CreateMaintenanceWindow) - - if err != nil { - return err - } - - *o = ServiceV2CreateMaintenanceWindow(varServiceV2CreateMaintenanceWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "deferred_window") - delete(additionalProperties, "id") - delete(additionalProperties, "scheduled_window") - delete(additionalProperties, "tags") - delete(additionalProperties, "window_type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2CreateMaintenanceWindow struct { - value *ServiceV2CreateMaintenanceWindow - isSet bool -} - -func (v NullableServiceV2CreateMaintenanceWindow) Get() *ServiceV2CreateMaintenanceWindow { - return v.value -} - -func (v *NullableServiceV2CreateMaintenanceWindow) Set(val *ServiceV2CreateMaintenanceWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2CreateMaintenanceWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2CreateMaintenanceWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2CreateMaintenanceWindow(val *ServiceV2CreateMaintenanceWindow) *NullableServiceV2CreateMaintenanceWindow { - return &NullableServiceV2CreateMaintenanceWindow{value: val, isSet: true} -} - -func (v NullableServiceV2CreateMaintenanceWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2CreateMaintenanceWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_create_maintenance_window_request.go b/upgradepolicy/model_service_v2_create_maintenance_window_request.go deleted file mode 100644 index e5c62a0..0000000 --- a/upgradepolicy/model_service_v2_create_maintenance_window_request.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2CreateMaintenanceWindowRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2CreateMaintenanceWindowRequest{} - -// ServiceV2CreateMaintenanceWindowRequest struct for ServiceV2CreateMaintenanceWindowRequest -type ServiceV2CreateMaintenanceWindowRequest struct { - Payload *ServiceV2CreateMaintenanceWindow `json:"payload,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2CreateMaintenanceWindowRequest ServiceV2CreateMaintenanceWindowRequest - -// NewServiceV2CreateMaintenanceWindowRequest instantiates a new ServiceV2CreateMaintenanceWindowRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2CreateMaintenanceWindowRequest() *ServiceV2CreateMaintenanceWindowRequest { - this := ServiceV2CreateMaintenanceWindowRequest{} - return &this -} - -// NewServiceV2CreateMaintenanceWindowRequestWithDefaults instantiates a new ServiceV2CreateMaintenanceWindowRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2CreateMaintenanceWindowRequestWithDefaults() *ServiceV2CreateMaintenanceWindowRequest { - this := ServiceV2CreateMaintenanceWindowRequest{} - return &this -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindowRequest) GetPayload() ServiceV2CreateMaintenanceWindow { - if o == nil || IsNil(o.Payload) { - var ret ServiceV2CreateMaintenanceWindow - return ret - } - return *o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2CreateMaintenanceWindowRequest) GetPayloadOk() (*ServiceV2CreateMaintenanceWindow, bool) { - if o == nil || IsNil(o.Payload) { - return nil, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindowRequest) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given ServiceV2CreateMaintenanceWindow and assigns it to the Payload field. -func (o *ServiceV2CreateMaintenanceWindowRequest) SetPayload(v ServiceV2CreateMaintenanceWindow) { - o.Payload = &v -} - -func (o ServiceV2CreateMaintenanceWindowRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2CreateMaintenanceWindowRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Payload) { - toSerialize["payload"] = o.Payload - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2CreateMaintenanceWindowRequest) UnmarshalJSON(data []byte) (err error) { - varServiceV2CreateMaintenanceWindowRequest := _ServiceV2CreateMaintenanceWindowRequest{} - - err = json.Unmarshal(data, &varServiceV2CreateMaintenanceWindowRequest) - - if err != nil { - return err - } - - *o = ServiceV2CreateMaintenanceWindowRequest(varServiceV2CreateMaintenanceWindowRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "payload") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2CreateMaintenanceWindowRequest struct { - value *ServiceV2CreateMaintenanceWindowRequest - isSet bool -} - -func (v NullableServiceV2CreateMaintenanceWindowRequest) Get() *ServiceV2CreateMaintenanceWindowRequest { - return v.value -} - -func (v *NullableServiceV2CreateMaintenanceWindowRequest) Set(val *ServiceV2CreateMaintenanceWindowRequest) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2CreateMaintenanceWindowRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2CreateMaintenanceWindowRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2CreateMaintenanceWindowRequest(val *ServiceV2CreateMaintenanceWindowRequest) *NullableServiceV2CreateMaintenanceWindowRequest { - return &NullableServiceV2CreateMaintenanceWindowRequest{value: val, isSet: true} -} - -func (v NullableServiceV2CreateMaintenanceWindowRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2CreateMaintenanceWindowRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_create_maintenance_window_response.go b/upgradepolicy/model_service_v2_create_maintenance_window_response.go deleted file mode 100644 index 546035e..0000000 --- a/upgradepolicy/model_service_v2_create_maintenance_window_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2CreateMaintenanceWindowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2CreateMaintenanceWindowResponse{} - -// ServiceV2CreateMaintenanceWindowResponse struct for ServiceV2CreateMaintenanceWindowResponse -type ServiceV2CreateMaintenanceWindowResponse struct { - Id *string `json:"id,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2CreateMaintenanceWindowResponse ServiceV2CreateMaintenanceWindowResponse - -// NewServiceV2CreateMaintenanceWindowResponse instantiates a new ServiceV2CreateMaintenanceWindowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2CreateMaintenanceWindowResponse() *ServiceV2CreateMaintenanceWindowResponse { - this := ServiceV2CreateMaintenanceWindowResponse{} - return &this -} - -// NewServiceV2CreateMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2CreateMaintenanceWindowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2CreateMaintenanceWindowResponseWithDefaults() *ServiceV2CreateMaintenanceWindowResponse { - this := ServiceV2CreateMaintenanceWindowResponse{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceV2CreateMaintenanceWindowResponse) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2CreateMaintenanceWindowResponse) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceV2CreateMaintenanceWindowResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceV2CreateMaintenanceWindowResponse) SetId(v string) { - o.Id = &v -} - -func (o ServiceV2CreateMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2CreateMaintenanceWindowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2CreateMaintenanceWindowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2CreateMaintenanceWindowResponse := _ServiceV2CreateMaintenanceWindowResponse{} - - err = json.Unmarshal(data, &varServiceV2CreateMaintenanceWindowResponse) - - if err != nil { - return err - } - - *o = ServiceV2CreateMaintenanceWindowResponse(varServiceV2CreateMaintenanceWindowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2CreateMaintenanceWindowResponse struct { - value *ServiceV2CreateMaintenanceWindowResponse - isSet bool -} - -func (v NullableServiceV2CreateMaintenanceWindowResponse) Get() *ServiceV2CreateMaintenanceWindowResponse { - return v.value -} - -func (v *NullableServiceV2CreateMaintenanceWindowResponse) Set(val *ServiceV2CreateMaintenanceWindowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2CreateMaintenanceWindowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2CreateMaintenanceWindowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2CreateMaintenanceWindowResponse(val *ServiceV2CreateMaintenanceWindowResponse) *NullableServiceV2CreateMaintenanceWindowResponse { - return &NullableServiceV2CreateMaintenanceWindowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2CreateMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2CreateMaintenanceWindowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_deferred_window.go b/upgradepolicy/model_service_v2_deferred_window.go deleted file mode 100644 index 9dbeba5..0000000 --- a/upgradepolicy/model_service_v2_deferred_window.go +++ /dev/null @@ -1,302 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" - "time" -) - -// checks if the ServiceV2DeferredWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2DeferredWindow{} - -// ServiceV2DeferredWindow struct for ServiceV2DeferredWindow -type ServiceV2DeferredWindow struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - EndTime *time.Time `json:"end_time,omitempty"` - StartTime *time.Time `json:"start_time,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2DeferredWindow ServiceV2DeferredWindow - -// NewServiceV2DeferredWindow instantiates a new ServiceV2DeferredWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2DeferredWindow() *ServiceV2DeferredWindow { - this := ServiceV2DeferredWindow{} - return &this -} - -// NewServiceV2DeferredWindowWithDefaults instantiates a new ServiceV2DeferredWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2DeferredWindowWithDefaults() *ServiceV2DeferredWindow { - this := ServiceV2DeferredWindow{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ServiceV2DeferredWindow) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2DeferredWindow) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ServiceV2DeferredWindow) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ServiceV2DeferredWindow) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *ServiceV2DeferredWindow) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2DeferredWindow) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *ServiceV2DeferredWindow) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *ServiceV2DeferredWindow) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetEndTime returns the EndTime field value if set, zero value otherwise. -func (o *ServiceV2DeferredWindow) GetEndTime() time.Time { - if o == nil || IsNil(o.EndTime) { - var ret time.Time - return ret - } - return *o.EndTime -} - -// GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2DeferredWindow) GetEndTimeOk() (*time.Time, bool) { - if o == nil || IsNil(o.EndTime) { - return nil, false - } - return o.EndTime, true -} - -// HasEndTime returns a boolean if a field has been set. -func (o *ServiceV2DeferredWindow) HasEndTime() bool { - if o != nil && !IsNil(o.EndTime) { - return true - } - - return false -} - -// SetEndTime gets a reference to the given time.Time and assigns it to the EndTime field. -func (o *ServiceV2DeferredWindow) SetEndTime(v time.Time) { - o.EndTime = &v -} - -// GetStartTime returns the StartTime field value if set, zero value otherwise. -func (o *ServiceV2DeferredWindow) GetStartTime() time.Time { - if o == nil || IsNil(o.StartTime) { - var ret time.Time - return ret - } - return *o.StartTime -} - -// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2DeferredWindow) GetStartTimeOk() (*time.Time, bool) { - if o == nil || IsNil(o.StartTime) { - return nil, false - } - return o.StartTime, true -} - -// HasStartTime returns a boolean if a field has been set. -func (o *ServiceV2DeferredWindow) HasStartTime() bool { - if o != nil && !IsNil(o.StartTime) { - return true - } - - return false -} - -// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field. -func (o *ServiceV2DeferredWindow) SetStartTime(v time.Time) { - o.StartTime = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *ServiceV2DeferredWindow) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2DeferredWindow) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *ServiceV2DeferredWindow) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *ServiceV2DeferredWindow) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -func (o ServiceV2DeferredWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2DeferredWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - if !IsNil(o.EndTime) { - toSerialize["end_time"] = o.EndTime - } - if !IsNil(o.StartTime) { - toSerialize["start_time"] = o.StartTime - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2DeferredWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2DeferredWindow := _ServiceV2DeferredWindow{} - - err = json.Unmarshal(data, &varServiceV2DeferredWindow) - - if err != nil { - return err - } - - *o = ServiceV2DeferredWindow(varServiceV2DeferredWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "created_at") - delete(additionalProperties, "enabled") - delete(additionalProperties, "end_time") - delete(additionalProperties, "start_time") - delete(additionalProperties, "updated_at") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2DeferredWindow struct { - value *ServiceV2DeferredWindow - isSet bool -} - -func (v NullableServiceV2DeferredWindow) Get() *ServiceV2DeferredWindow { - return v.value -} - -func (v *NullableServiceV2DeferredWindow) Set(val *ServiceV2DeferredWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2DeferredWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2DeferredWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2DeferredWindow(val *ServiceV2DeferredWindow) *NullableServiceV2DeferredWindow { - return &NullableServiceV2DeferredWindow{value: val, isSet: true} -} - -func (v NullableServiceV2DeferredWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2DeferredWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_delete_maintenance_window_response.go b/upgradepolicy/model_service_v2_delete_maintenance_window_response.go deleted file mode 100644 index 85b4089..0000000 --- a/upgradepolicy/model_service_v2_delete_maintenance_window_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2DeleteMaintenanceWindowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2DeleteMaintenanceWindowResponse{} - -// ServiceV2DeleteMaintenanceWindowResponse struct for ServiceV2DeleteMaintenanceWindowResponse -type ServiceV2DeleteMaintenanceWindowResponse struct { - WindowType *string `json:"window_type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2DeleteMaintenanceWindowResponse ServiceV2DeleteMaintenanceWindowResponse - -// NewServiceV2DeleteMaintenanceWindowResponse instantiates a new ServiceV2DeleteMaintenanceWindowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2DeleteMaintenanceWindowResponse() *ServiceV2DeleteMaintenanceWindowResponse { - this := ServiceV2DeleteMaintenanceWindowResponse{} - return &this -} - -// NewServiceV2DeleteMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2DeleteMaintenanceWindowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2DeleteMaintenanceWindowResponseWithDefaults() *ServiceV2DeleteMaintenanceWindowResponse { - this := ServiceV2DeleteMaintenanceWindowResponse{} - return &this -} - -// GetWindowType returns the WindowType field value if set, zero value otherwise. -func (o *ServiceV2DeleteMaintenanceWindowResponse) GetWindowType() string { - if o == nil || IsNil(o.WindowType) { - var ret string - return ret - } - return *o.WindowType -} - -// GetWindowTypeOk returns a tuple with the WindowType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2DeleteMaintenanceWindowResponse) GetWindowTypeOk() (*string, bool) { - if o == nil || IsNil(o.WindowType) { - return nil, false - } - return o.WindowType, true -} - -// HasWindowType returns a boolean if a field has been set. -func (o *ServiceV2DeleteMaintenanceWindowResponse) HasWindowType() bool { - if o != nil && !IsNil(o.WindowType) { - return true - } - - return false -} - -// SetWindowType gets a reference to the given string and assigns it to the WindowType field. -func (o *ServiceV2DeleteMaintenanceWindowResponse) SetWindowType(v string) { - o.WindowType = &v -} - -func (o ServiceV2DeleteMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2DeleteMaintenanceWindowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.WindowType) { - toSerialize["window_type"] = o.WindowType - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2DeleteMaintenanceWindowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2DeleteMaintenanceWindowResponse := _ServiceV2DeleteMaintenanceWindowResponse{} - - err = json.Unmarshal(data, &varServiceV2DeleteMaintenanceWindowResponse) - - if err != nil { - return err - } - - *o = ServiceV2DeleteMaintenanceWindowResponse(varServiceV2DeleteMaintenanceWindowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "window_type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2DeleteMaintenanceWindowResponse struct { - value *ServiceV2DeleteMaintenanceWindowResponse - isSet bool -} - -func (v NullableServiceV2DeleteMaintenanceWindowResponse) Get() *ServiceV2DeleteMaintenanceWindowResponse { - return v.value -} - -func (v *NullableServiceV2DeleteMaintenanceWindowResponse) Set(val *ServiceV2DeleteMaintenanceWindowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2DeleteMaintenanceWindowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2DeleteMaintenanceWindowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2DeleteMaintenanceWindowResponse(val *ServiceV2DeleteMaintenanceWindowResponse) *NullableServiceV2DeleteMaintenanceWindowResponse { - return &NullableServiceV2DeleteMaintenanceWindowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2DeleteMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2DeleteMaintenanceWindowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_get_maintenance_window_response.go b/upgradepolicy/model_service_v2_get_maintenance_window_response.go deleted file mode 100644 index 38df0a8..0000000 --- a/upgradepolicy/model_service_v2_get_maintenance_window_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2GetMaintenanceWindowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2GetMaintenanceWindowResponse{} - -// ServiceV2GetMaintenanceWindowResponse struct for ServiceV2GetMaintenanceWindowResponse -type ServiceV2GetMaintenanceWindowResponse struct { - Result *ServiceV2MaintenanceWindow `json:"result,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2GetMaintenanceWindowResponse ServiceV2GetMaintenanceWindowResponse - -// NewServiceV2GetMaintenanceWindowResponse instantiates a new ServiceV2GetMaintenanceWindowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2GetMaintenanceWindowResponse() *ServiceV2GetMaintenanceWindowResponse { - this := ServiceV2GetMaintenanceWindowResponse{} - return &this -} - -// NewServiceV2GetMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2GetMaintenanceWindowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2GetMaintenanceWindowResponseWithDefaults() *ServiceV2GetMaintenanceWindowResponse { - this := ServiceV2GetMaintenanceWindowResponse{} - return &this -} - -// GetResult returns the Result field value if set, zero value otherwise. -func (o *ServiceV2GetMaintenanceWindowResponse) GetResult() ServiceV2MaintenanceWindow { - if o == nil || IsNil(o.Result) { - var ret ServiceV2MaintenanceWindow - return ret - } - return *o.Result -} - -// GetResultOk returns a tuple with the Result field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2GetMaintenanceWindowResponse) GetResultOk() (*ServiceV2MaintenanceWindow, bool) { - if o == nil || IsNil(o.Result) { - return nil, false - } - return o.Result, true -} - -// HasResult returns a boolean if a field has been set. -func (o *ServiceV2GetMaintenanceWindowResponse) HasResult() bool { - if o != nil && !IsNil(o.Result) { - return true - } - - return false -} - -// SetResult gets a reference to the given ServiceV2MaintenanceWindow and assigns it to the Result field. -func (o *ServiceV2GetMaintenanceWindowResponse) SetResult(v ServiceV2MaintenanceWindow) { - o.Result = &v -} - -func (o ServiceV2GetMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2GetMaintenanceWindowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Result) { - toSerialize["result"] = o.Result - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2GetMaintenanceWindowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2GetMaintenanceWindowResponse := _ServiceV2GetMaintenanceWindowResponse{} - - err = json.Unmarshal(data, &varServiceV2GetMaintenanceWindowResponse) - - if err != nil { - return err - } - - *o = ServiceV2GetMaintenanceWindowResponse(varServiceV2GetMaintenanceWindowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "result") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2GetMaintenanceWindowResponse struct { - value *ServiceV2GetMaintenanceWindowResponse - isSet bool -} - -func (v NullableServiceV2GetMaintenanceWindowResponse) Get() *ServiceV2GetMaintenanceWindowResponse { - return v.value -} - -func (v *NullableServiceV2GetMaintenanceWindowResponse) Set(val *ServiceV2GetMaintenanceWindowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2GetMaintenanceWindowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2GetMaintenanceWindowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2GetMaintenanceWindowResponse(val *ServiceV2GetMaintenanceWindowResponse) *NullableServiceV2GetMaintenanceWindowResponse { - return &NullableServiceV2GetMaintenanceWindowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2GetMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2GetMaintenanceWindowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_list_maintenance_window_response.go b/upgradepolicy/model_service_v2_list_maintenance_window_response.go deleted file mode 100644 index 5eabf02..0000000 --- a/upgradepolicy/model_service_v2_list_maintenance_window_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2ListMaintenanceWindowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2ListMaintenanceWindowResponse{} - -// ServiceV2ListMaintenanceWindowResponse struct for ServiceV2ListMaintenanceWindowResponse -type ServiceV2ListMaintenanceWindowResponse struct { - Result []ServiceV2MaintenanceWindow `json:"result,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2ListMaintenanceWindowResponse ServiceV2ListMaintenanceWindowResponse - -// NewServiceV2ListMaintenanceWindowResponse instantiates a new ServiceV2ListMaintenanceWindowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2ListMaintenanceWindowResponse() *ServiceV2ListMaintenanceWindowResponse { - this := ServiceV2ListMaintenanceWindowResponse{} - return &this -} - -// NewServiceV2ListMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2ListMaintenanceWindowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2ListMaintenanceWindowResponseWithDefaults() *ServiceV2ListMaintenanceWindowResponse { - this := ServiceV2ListMaintenanceWindowResponse{} - return &this -} - -// GetResult returns the Result field value if set, zero value otherwise. -func (o *ServiceV2ListMaintenanceWindowResponse) GetResult() []ServiceV2MaintenanceWindow { - if o == nil || IsNil(o.Result) { - var ret []ServiceV2MaintenanceWindow - return ret - } - return o.Result -} - -// GetResultOk returns a tuple with the Result field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ListMaintenanceWindowResponse) GetResultOk() ([]ServiceV2MaintenanceWindow, bool) { - if o == nil || IsNil(o.Result) { - return nil, false - } - return o.Result, true -} - -// HasResult returns a boolean if a field has been set. -func (o *ServiceV2ListMaintenanceWindowResponse) HasResult() bool { - if o != nil && !IsNil(o.Result) { - return true - } - - return false -} - -// SetResult gets a reference to the given []ServiceV2MaintenanceWindow and assigns it to the Result field. -func (o *ServiceV2ListMaintenanceWindowResponse) SetResult(v []ServiceV2MaintenanceWindow) { - o.Result = v -} - -func (o ServiceV2ListMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2ListMaintenanceWindowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Result) { - toSerialize["result"] = o.Result - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2ListMaintenanceWindowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2ListMaintenanceWindowResponse := _ServiceV2ListMaintenanceWindowResponse{} - - err = json.Unmarshal(data, &varServiceV2ListMaintenanceWindowResponse) - - if err != nil { - return err - } - - *o = ServiceV2ListMaintenanceWindowResponse(varServiceV2ListMaintenanceWindowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "result") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2ListMaintenanceWindowResponse struct { - value *ServiceV2ListMaintenanceWindowResponse - isSet bool -} - -func (v NullableServiceV2ListMaintenanceWindowResponse) Get() *ServiceV2ListMaintenanceWindowResponse { - return v.value -} - -func (v *NullableServiceV2ListMaintenanceWindowResponse) Set(val *ServiceV2ListMaintenanceWindowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2ListMaintenanceWindowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2ListMaintenanceWindowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2ListMaintenanceWindowResponse(val *ServiceV2ListMaintenanceWindowResponse) *NullableServiceV2ListMaintenanceWindowResponse { - return &NullableServiceV2ListMaintenanceWindowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2ListMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2ListMaintenanceWindowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_maintenance_window.go b/upgradepolicy/model_service_v2_maintenance_window.go deleted file mode 100644 index 790a159..0000000 --- a/upgradepolicy/model_service_v2_maintenance_window.go +++ /dev/null @@ -1,301 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2MaintenanceWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2MaintenanceWindow{} - -// ServiceV2MaintenanceWindow struct for ServiceV2MaintenanceWindow -type ServiceV2MaintenanceWindow struct { - DeferredWindow *ServiceV2DeferredWindow `json:"deferred_window,omitempty"` - Id *string `json:"id,omitempty"` - ScheduledWindow *ServiceV2ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` - WindowType *string `json:"window_type,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2MaintenanceWindow ServiceV2MaintenanceWindow - -// NewServiceV2MaintenanceWindow instantiates a new ServiceV2MaintenanceWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2MaintenanceWindow() *ServiceV2MaintenanceWindow { - this := ServiceV2MaintenanceWindow{} - return &this -} - -// NewServiceV2MaintenanceWindowWithDefaults instantiates a new ServiceV2MaintenanceWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2MaintenanceWindowWithDefaults() *ServiceV2MaintenanceWindow { - this := ServiceV2MaintenanceWindow{} - return &this -} - -// GetDeferredWindow returns the DeferredWindow field value if set, zero value otherwise. -func (o *ServiceV2MaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow { - if o == nil || IsNil(o.DeferredWindow) { - var ret ServiceV2DeferredWindow - return ret - } - return *o.DeferredWindow -} - -// GetDeferredWindowOk returns a tuple with the DeferredWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2MaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool) { - if o == nil || IsNil(o.DeferredWindow) { - return nil, false - } - return o.DeferredWindow, true -} - -// HasDeferredWindow returns a boolean if a field has been set. -func (o *ServiceV2MaintenanceWindow) HasDeferredWindow() bool { - if o != nil && !IsNil(o.DeferredWindow) { - return true - } - - return false -} - -// SetDeferredWindow gets a reference to the given ServiceV2DeferredWindow and assigns it to the DeferredWindow field. -func (o *ServiceV2MaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow) { - o.DeferredWindow = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceV2MaintenanceWindow) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2MaintenanceWindow) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceV2MaintenanceWindow) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceV2MaintenanceWindow) SetId(v string) { - o.Id = &v -} - -// GetScheduledWindow returns the ScheduledWindow field value if set, zero value otherwise. -func (o *ServiceV2MaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow { - if o == nil || IsNil(o.ScheduledWindow) { - var ret ServiceV2ScheduledWindow - return ret - } - return *o.ScheduledWindow -} - -// GetScheduledWindowOk returns a tuple with the ScheduledWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2MaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool) { - if o == nil || IsNil(o.ScheduledWindow) { - return nil, false - } - return o.ScheduledWindow, true -} - -// HasScheduledWindow returns a boolean if a field has been set. -func (o *ServiceV2MaintenanceWindow) HasScheduledWindow() bool { - if o != nil && !IsNil(o.ScheduledWindow) { - return true - } - - return false -} - -// SetScheduledWindow gets a reference to the given ServiceV2ScheduledWindow and assigns it to the ScheduledWindow field. -func (o *ServiceV2MaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow) { - o.ScheduledWindow = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ServiceV2MaintenanceWindow) GetTags() map[string]map[string]interface{} { - if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} - return ret - } - return o.Tags -} - -// 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 *ServiceV2MaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { - if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ServiceV2MaintenanceWindow) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *ServiceV2MaintenanceWindow) SetTags(v map[string]map[string]interface{}) { - o.Tags = v -} - -// GetWindowType returns the WindowType field value if set, zero value otherwise. -func (o *ServiceV2MaintenanceWindow) GetWindowType() string { - if o == nil || IsNil(o.WindowType) { - var ret string - return ret - } - return *o.WindowType -} - -// GetWindowTypeOk returns a tuple with the WindowType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2MaintenanceWindow) GetWindowTypeOk() (*string, bool) { - if o == nil || IsNil(o.WindowType) { - return nil, false - } - return o.WindowType, true -} - -// HasWindowType returns a boolean if a field has been set. -func (o *ServiceV2MaintenanceWindow) HasWindowType() bool { - if o != nil && !IsNil(o.WindowType) { - return true - } - - return false -} - -// SetWindowType gets a reference to the given string and assigns it to the WindowType field. -func (o *ServiceV2MaintenanceWindow) SetWindowType(v string) { - o.WindowType = &v -} - -func (o ServiceV2MaintenanceWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2MaintenanceWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.DeferredWindow) { - toSerialize["deferred_window"] = o.DeferredWindow - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.ScheduledWindow) { - toSerialize["scheduled_window"] = o.ScheduledWindow - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.WindowType) { - toSerialize["window_type"] = o.WindowType - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2MaintenanceWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2MaintenanceWindow := _ServiceV2MaintenanceWindow{} - - err = json.Unmarshal(data, &varServiceV2MaintenanceWindow) - - if err != nil { - return err - } - - *o = ServiceV2MaintenanceWindow(varServiceV2MaintenanceWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "deferred_window") - delete(additionalProperties, "id") - delete(additionalProperties, "scheduled_window") - delete(additionalProperties, "tags") - delete(additionalProperties, "window_type") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2MaintenanceWindow struct { - value *ServiceV2MaintenanceWindow - isSet bool -} - -func (v NullableServiceV2MaintenanceWindow) Get() *ServiceV2MaintenanceWindow { - return v.value -} - -func (v *NullableServiceV2MaintenanceWindow) Set(val *ServiceV2MaintenanceWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2MaintenanceWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2MaintenanceWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2MaintenanceWindow(val *ServiceV2MaintenanceWindow) *NullableServiceV2MaintenanceWindow { - return &NullableServiceV2MaintenanceWindow{value: val, isSet: true} -} - -func (v NullableServiceV2MaintenanceWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2MaintenanceWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_onprem_details.go b/upgradepolicy/model_service_v2_onprem_details.go deleted file mode 100644 index 0191280..0000000 --- a/upgradepolicy/model_service_v2_onprem_details.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2OnpremDetails type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2OnpremDetails{} - -// ServiceV2OnpremDetails struct for ServiceV2OnpremDetails -type ServiceV2OnpremDetails struct { - Hostid *string `json:"hostid,omitempty"` - Ophid *string `json:"ophid,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2OnpremDetails ServiceV2OnpremDetails - -// NewServiceV2OnpremDetails instantiates a new ServiceV2OnpremDetails object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2OnpremDetails() *ServiceV2OnpremDetails { - this := ServiceV2OnpremDetails{} - return &this -} - -// NewServiceV2OnpremDetailsWithDefaults instantiates a new ServiceV2OnpremDetails object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2OnpremDetailsWithDefaults() *ServiceV2OnpremDetails { - this := ServiceV2OnpremDetails{} - return &this -} - -// GetHostid returns the Hostid field value if set, zero value otherwise. -func (o *ServiceV2OnpremDetails) GetHostid() string { - if o == nil || IsNil(o.Hostid) { - var ret string - return ret - } - return *o.Hostid -} - -// GetHostidOk returns a tuple with the Hostid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2OnpremDetails) GetHostidOk() (*string, bool) { - if o == nil || IsNil(o.Hostid) { - return nil, false - } - return o.Hostid, true -} - -// HasHostid returns a boolean if a field has been set. -func (o *ServiceV2OnpremDetails) HasHostid() bool { - if o != nil && !IsNil(o.Hostid) { - return true - } - - return false -} - -// SetHostid gets a reference to the given string and assigns it to the Hostid field. -func (o *ServiceV2OnpremDetails) SetHostid(v string) { - o.Hostid = &v -} - -// GetOphid returns the Ophid field value if set, zero value otherwise. -func (o *ServiceV2OnpremDetails) GetOphid() string { - if o == nil || IsNil(o.Ophid) { - var ret string - return ret - } - return *o.Ophid -} - -// GetOphidOk returns a tuple with the Ophid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2OnpremDetails) GetOphidOk() (*string, bool) { - if o == nil || IsNil(o.Ophid) { - return nil, false - } - return o.Ophid, true -} - -// HasOphid returns a boolean if a field has been set. -func (o *ServiceV2OnpremDetails) HasOphid() bool { - if o != nil && !IsNil(o.Ophid) { - return true - } - - return false -} - -// SetOphid gets a reference to the given string and assigns it to the Ophid field. -func (o *ServiceV2OnpremDetails) SetOphid(v string) { - o.Ophid = &v -} - -func (o ServiceV2OnpremDetails) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2OnpremDetails) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Hostid) { - toSerialize["hostid"] = o.Hostid - } - if !IsNil(o.Ophid) { - toSerialize["ophid"] = o.Ophid - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2OnpremDetails) UnmarshalJSON(data []byte) (err error) { - varServiceV2OnpremDetails := _ServiceV2OnpremDetails{} - - err = json.Unmarshal(data, &varServiceV2OnpremDetails) - - if err != nil { - return err - } - - *o = ServiceV2OnpremDetails(varServiceV2OnpremDetails) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "hostid") - delete(additionalProperties, "ophid") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2OnpremDetails struct { - value *ServiceV2OnpremDetails - isSet bool -} - -func (v NullableServiceV2OnpremDetails) Get() *ServiceV2OnpremDetails { - return v.value -} - -func (v *NullableServiceV2OnpremDetails) Set(val *ServiceV2OnpremDetails) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2OnpremDetails) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2OnpremDetails) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2OnpremDetails(val *ServiceV2OnpremDetails) *NullableServiceV2OnpremDetails { - return &NullableServiceV2OnpremDetails{value: val, isSet: true} -} - -func (v NullableServiceV2OnpremDetails) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2OnpremDetails) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_scheduled_window.go b/upgradepolicy/model_service_v2_scheduled_window.go deleted file mode 100644 index 58ad089..0000000 --- a/upgradepolicy/model_service_v2_scheduled_window.go +++ /dev/null @@ -1,339 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" - "time" -) - -// checks if the ServiceV2ScheduledWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2ScheduledWindow{} - -// ServiceV2ScheduledWindow struct for ServiceV2ScheduledWindow -type ServiceV2ScheduledWindow struct { - CreatedAt *time.Time `json:"created_at,omitempty"` - Duration *int32 `json:"duration,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - StartTime *int32 `json:"start_time,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - Weekday *int32 `json:"weekday,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2ScheduledWindow ServiceV2ScheduledWindow - -// NewServiceV2ScheduledWindow instantiates a new ServiceV2ScheduledWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2ScheduledWindow() *ServiceV2ScheduledWindow { - this := ServiceV2ScheduledWindow{} - return &this -} - -// NewServiceV2ScheduledWindowWithDefaults instantiates a new ServiceV2ScheduledWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2ScheduledWindowWithDefaults() *ServiceV2ScheduledWindow { - this := ServiceV2ScheduledWindow{} - return &this -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *ServiceV2ScheduledWindow) GetCreatedAt() time.Time { - if o == nil || IsNil(o.CreatedAt) { - var ret time.Time - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ScheduledWindow) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *ServiceV2ScheduledWindow) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *ServiceV2ScheduledWindow) SetCreatedAt(v time.Time) { - o.CreatedAt = &v -} - -// GetDuration returns the Duration field value if set, zero value otherwise. -func (o *ServiceV2ScheduledWindow) GetDuration() int32 { - if o == nil || IsNil(o.Duration) { - var ret int32 - return ret - } - return *o.Duration -} - -// GetDurationOk returns a tuple with the Duration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ScheduledWindow) GetDurationOk() (*int32, bool) { - if o == nil || IsNil(o.Duration) { - return nil, false - } - return o.Duration, true -} - -// HasDuration returns a boolean if a field has been set. -func (o *ServiceV2ScheduledWindow) HasDuration() bool { - if o != nil && !IsNil(o.Duration) { - return true - } - - return false -} - -// SetDuration gets a reference to the given int32 and assigns it to the Duration field. -func (o *ServiceV2ScheduledWindow) SetDuration(v int32) { - o.Duration = &v -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *ServiceV2ScheduledWindow) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ScheduledWindow) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *ServiceV2ScheduledWindow) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *ServiceV2ScheduledWindow) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetStartTime returns the StartTime field value if set, zero value otherwise. -func (o *ServiceV2ScheduledWindow) GetStartTime() int32 { - if o == nil || IsNil(o.StartTime) { - var ret int32 - return ret - } - return *o.StartTime -} - -// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ScheduledWindow) GetStartTimeOk() (*int32, bool) { - if o == nil || IsNil(o.StartTime) { - return nil, false - } - return o.StartTime, true -} - -// HasStartTime returns a boolean if a field has been set. -func (o *ServiceV2ScheduledWindow) HasStartTime() bool { - if o != nil && !IsNil(o.StartTime) { - return true - } - - return false -} - -// SetStartTime gets a reference to the given int32 and assigns it to the StartTime field. -func (o *ServiceV2ScheduledWindow) SetStartTime(v int32) { - o.StartTime = &v -} - -// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. -func (o *ServiceV2ScheduledWindow) GetUpdatedAt() time.Time { - if o == nil || IsNil(o.UpdatedAt) { - var ret time.Time - return ret - } - return *o.UpdatedAt -} - -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ScheduledWindow) GetUpdatedAtOk() (*time.Time, bool) { - if o == nil || IsNil(o.UpdatedAt) { - return nil, false - } - return o.UpdatedAt, true -} - -// HasUpdatedAt returns a boolean if a field has been set. -func (o *ServiceV2ScheduledWindow) HasUpdatedAt() bool { - if o != nil && !IsNil(o.UpdatedAt) { - return true - } - - return false -} - -// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *ServiceV2ScheduledWindow) SetUpdatedAt(v time.Time) { - o.UpdatedAt = &v -} - -// GetWeekday returns the Weekday field value if set, zero value otherwise. -func (o *ServiceV2ScheduledWindow) GetWeekday() int32 { - if o == nil || IsNil(o.Weekday) { - var ret int32 - return ret - } - return *o.Weekday -} - -// GetWeekdayOk returns a tuple with the Weekday field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2ScheduledWindow) GetWeekdayOk() (*int32, bool) { - if o == nil || IsNil(o.Weekday) { - return nil, false - } - return o.Weekday, true -} - -// HasWeekday returns a boolean if a field has been set. -func (o *ServiceV2ScheduledWindow) HasWeekday() bool { - if o != nil && !IsNil(o.Weekday) { - return true - } - - return false -} - -// SetWeekday gets a reference to the given int32 and assigns it to the Weekday field. -func (o *ServiceV2ScheduledWindow) SetWeekday(v int32) { - o.Weekday = &v -} - -func (o ServiceV2ScheduledWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2ScheduledWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Duration) { - toSerialize["duration"] = o.Duration - } - if !IsNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - if !IsNil(o.StartTime) { - toSerialize["start_time"] = o.StartTime - } - if !IsNil(o.UpdatedAt) { - toSerialize["updated_at"] = o.UpdatedAt - } - if !IsNil(o.Weekday) { - toSerialize["weekday"] = o.Weekday - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2ScheduledWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2ScheduledWindow := _ServiceV2ScheduledWindow{} - - err = json.Unmarshal(data, &varServiceV2ScheduledWindow) - - if err != nil { - return err - } - - *o = ServiceV2ScheduledWindow(varServiceV2ScheduledWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "created_at") - delete(additionalProperties, "duration") - delete(additionalProperties, "enabled") - delete(additionalProperties, "start_time") - delete(additionalProperties, "updated_at") - delete(additionalProperties, "weekday") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2ScheduledWindow struct { - value *ServiceV2ScheduledWindow - isSet bool -} - -func (v NullableServiceV2ScheduledWindow) Get() *ServiceV2ScheduledWindow { - return v.value -} - -func (v *NullableServiceV2ScheduledWindow) Set(val *ServiceV2ScheduledWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2ScheduledWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2ScheduledWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2ScheduledWindow(val *ServiceV2ScheduledWindow) *NullableServiceV2ScheduledWindow { - return &NullableServiceV2ScheduledWindow{value: val, isSet: true} -} - -func (v NullableServiceV2ScheduledWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2ScheduledWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_status_code.go b/upgradepolicy/model_service_v2_status_code.go deleted file mode 100644 index bd853f9..0000000 --- a/upgradepolicy/model_service_v2_status_code.go +++ /dev/null @@ -1,118 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" - "fmt" -) - -// ServiceV2StatusCode the model 'ServiceV2StatusCode' -type ServiceV2StatusCode string - -// List of service_v2StatusCode -const ( - SERVICEV2STATUSCODE_SUCCESS ServiceV2StatusCode = "SUCCESS" - SERVICEV2STATUSCODE_GENERAL_FAILURE ServiceV2StatusCode = "GENERAL_FAILURE" - SERVICEV2STATUSCODE_HASH_FAILURE ServiceV2StatusCode = "HASH_FAILURE" - SERVICEV2STATUSCODE_VALIDATION_FAILURE ServiceV2StatusCode = "VALIDATION_FAILURE" - SERVICEV2STATUSCODE_COPY_FAILURE ServiceV2StatusCode = "COPY_FAILURE" - SERVICEV2STATUSCODE_RELOAD_FAILIURE ServiceV2StatusCode = "RELOAD_FAILIURE" -) - -// All allowed values of ServiceV2StatusCode enum -var AllowedServiceV2StatusCodeEnumValues = []ServiceV2StatusCode{ - "SUCCESS", - "GENERAL_FAILURE", - "HASH_FAILURE", - "VALIDATION_FAILURE", - "COPY_FAILURE", - "RELOAD_FAILIURE", -} - -func (v *ServiceV2StatusCode) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := ServiceV2StatusCode(value) - for _, existing := range AllowedServiceV2StatusCodeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid ServiceV2StatusCode", value) -} - -// NewServiceV2StatusCodeFromValue returns a pointer to a valid ServiceV2StatusCode -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewServiceV2StatusCodeFromValue(v string) (*ServiceV2StatusCode, error) { - ev := ServiceV2StatusCode(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for ServiceV2StatusCode: valid values are %v", v, AllowedServiceV2StatusCodeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v ServiceV2StatusCode) IsValid() bool { - for _, existing := range AllowedServiceV2StatusCodeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to service_v2StatusCode value -func (v ServiceV2StatusCode) Ptr() *ServiceV2StatusCode { - return &v -} - -type NullableServiceV2StatusCode struct { - value *ServiceV2StatusCode - isSet bool -} - -func (v NullableServiceV2StatusCode) Get() *ServiceV2StatusCode { - return v.value -} - -func (v *NullableServiceV2StatusCode) Set(val *ServiceV2StatusCode) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2StatusCode) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2StatusCode) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2StatusCode(val *ServiceV2StatusCode) *NullableServiceV2StatusCode { - return &NullableServiceV2StatusCode{value: val, isSet: true} -} - -func (v NullableServiceV2StatusCode) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2StatusCode) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_update_batch_maintenance_window.go b/upgradepolicy/model_service_v2_update_batch_maintenance_window.go deleted file mode 100644 index 66f22fe..0000000 --- a/upgradepolicy/model_service_v2_update_batch_maintenance_window.go +++ /dev/null @@ -1,264 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2UpdateBatchMaintenanceWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2UpdateBatchMaintenanceWindow{} - -// ServiceV2UpdateBatchMaintenanceWindow struct for ServiceV2UpdateBatchMaintenanceWindow -type ServiceV2UpdateBatchMaintenanceWindow struct { - DeferredWindow *ServiceV2DeferredWindow `json:"deferred_window,omitempty"` - MwId *string `json:"mw_id,omitempty"` - ScheduledWindow *ServiceV2ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2UpdateBatchMaintenanceWindow ServiceV2UpdateBatchMaintenanceWindow - -// NewServiceV2UpdateBatchMaintenanceWindow instantiates a new ServiceV2UpdateBatchMaintenanceWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2UpdateBatchMaintenanceWindow() *ServiceV2UpdateBatchMaintenanceWindow { - this := ServiceV2UpdateBatchMaintenanceWindow{} - return &this -} - -// NewServiceV2UpdateBatchMaintenanceWindowWithDefaults instantiates a new ServiceV2UpdateBatchMaintenanceWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2UpdateBatchMaintenanceWindowWithDefaults() *ServiceV2UpdateBatchMaintenanceWindow { - this := ServiceV2UpdateBatchMaintenanceWindow{} - return &this -} - -// GetDeferredWindow returns the DeferredWindow field value if set, zero value otherwise. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow { - if o == nil || IsNil(o.DeferredWindow) { - var ret ServiceV2DeferredWindow - return ret - } - return *o.DeferredWindow -} - -// GetDeferredWindowOk returns a tuple with the DeferredWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool) { - if o == nil || IsNil(o.DeferredWindow) { - return nil, false - } - return o.DeferredWindow, true -} - -// HasDeferredWindow returns a boolean if a field has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) HasDeferredWindow() bool { - if o != nil && !IsNil(o.DeferredWindow) { - return true - } - - return false -} - -// SetDeferredWindow gets a reference to the given ServiceV2DeferredWindow and assigns it to the DeferredWindow field. -func (o *ServiceV2UpdateBatchMaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow) { - o.DeferredWindow = &v -} - -// GetMwId returns the MwId field value if set, zero value otherwise. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetMwId() string { - if o == nil || IsNil(o.MwId) { - var ret string - return ret - } - return *o.MwId -} - -// GetMwIdOk returns a tuple with the MwId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetMwIdOk() (*string, bool) { - if o == nil || IsNil(o.MwId) { - return nil, false - } - return o.MwId, true -} - -// HasMwId returns a boolean if a field has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) HasMwId() bool { - if o != nil && !IsNil(o.MwId) { - return true - } - - return false -} - -// SetMwId gets a reference to the given string and assigns it to the MwId field. -func (o *ServiceV2UpdateBatchMaintenanceWindow) SetMwId(v string) { - o.MwId = &v -} - -// GetScheduledWindow returns the ScheduledWindow field value if set, zero value otherwise. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow { - if o == nil || IsNil(o.ScheduledWindow) { - var ret ServiceV2ScheduledWindow - return ret - } - return *o.ScheduledWindow -} - -// GetScheduledWindowOk returns a tuple with the ScheduledWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool) { - if o == nil || IsNil(o.ScheduledWindow) { - return nil, false - } - return o.ScheduledWindow, true -} - -// HasScheduledWindow returns a boolean if a field has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) HasScheduledWindow() bool { - if o != nil && !IsNil(o.ScheduledWindow) { - return true - } - - return false -} - -// SetScheduledWindow gets a reference to the given ServiceV2ScheduledWindow and assigns it to the ScheduledWindow field. -func (o *ServiceV2UpdateBatchMaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow) { - o.ScheduledWindow = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ServiceV2UpdateBatchMaintenanceWindow) GetTags() map[string]map[string]interface{} { - if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} - return ret - } - return o.Tags -} - -// 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 *ServiceV2UpdateBatchMaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { - if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ServiceV2UpdateBatchMaintenanceWindow) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *ServiceV2UpdateBatchMaintenanceWindow) SetTags(v map[string]map[string]interface{}) { - o.Tags = v -} - -func (o ServiceV2UpdateBatchMaintenanceWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2UpdateBatchMaintenanceWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.DeferredWindow) { - toSerialize["deferred_window"] = o.DeferredWindow - } - if !IsNil(o.MwId) { - toSerialize["mw_id"] = o.MwId - } - if !IsNil(o.ScheduledWindow) { - toSerialize["scheduled_window"] = o.ScheduledWindow - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2UpdateBatchMaintenanceWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2UpdateBatchMaintenanceWindow := _ServiceV2UpdateBatchMaintenanceWindow{} - - err = json.Unmarshal(data, &varServiceV2UpdateBatchMaintenanceWindow) - - if err != nil { - return err - } - - *o = ServiceV2UpdateBatchMaintenanceWindow(varServiceV2UpdateBatchMaintenanceWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "deferred_window") - delete(additionalProperties, "mw_id") - delete(additionalProperties, "scheduled_window") - delete(additionalProperties, "tags") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2UpdateBatchMaintenanceWindow struct { - value *ServiceV2UpdateBatchMaintenanceWindow - isSet bool -} - -func (v NullableServiceV2UpdateBatchMaintenanceWindow) Get() *ServiceV2UpdateBatchMaintenanceWindow { - return v.value -} - -func (v *NullableServiceV2UpdateBatchMaintenanceWindow) Set(val *ServiceV2UpdateBatchMaintenanceWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2UpdateBatchMaintenanceWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2UpdateBatchMaintenanceWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2UpdateBatchMaintenanceWindow(val *ServiceV2UpdateBatchMaintenanceWindow) *NullableServiceV2UpdateBatchMaintenanceWindow { - return &NullableServiceV2UpdateBatchMaintenanceWindow{value: val, isSet: true} -} - -func (v NullableServiceV2UpdateBatchMaintenanceWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2UpdateBatchMaintenanceWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_update_maintenance_window.go b/upgradepolicy/model_service_v2_update_maintenance_window.go deleted file mode 100644 index f750ee4..0000000 --- a/upgradepolicy/model_service_v2_update_maintenance_window.go +++ /dev/null @@ -1,264 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2UpdateMaintenanceWindow type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2UpdateMaintenanceWindow{} - -// ServiceV2UpdateMaintenanceWindow struct for ServiceV2UpdateMaintenanceWindow -type ServiceV2UpdateMaintenanceWindow struct { - DeferredWindow *ServiceV2DeferredWindow `json:"deferred_window,omitempty"` - Id *string `json:"id,omitempty"` - ScheduledWindow *ServiceV2ScheduledWindow `json:"scheduled_window,omitempty"` - Tags map[string]map[string]interface{} `json:"tags,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2UpdateMaintenanceWindow ServiceV2UpdateMaintenanceWindow - -// NewServiceV2UpdateMaintenanceWindow instantiates a new ServiceV2UpdateMaintenanceWindow object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2UpdateMaintenanceWindow() *ServiceV2UpdateMaintenanceWindow { - this := ServiceV2UpdateMaintenanceWindow{} - return &this -} - -// NewServiceV2UpdateMaintenanceWindowWithDefaults instantiates a new ServiceV2UpdateMaintenanceWindow object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2UpdateMaintenanceWindowWithDefaults() *ServiceV2UpdateMaintenanceWindow { - this := ServiceV2UpdateMaintenanceWindow{} - return &this -} - -// GetDeferredWindow returns the DeferredWindow field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindow) GetDeferredWindow() ServiceV2DeferredWindow { - if o == nil || IsNil(o.DeferredWindow) { - var ret ServiceV2DeferredWindow - return ret - } - return *o.DeferredWindow -} - -// GetDeferredWindowOk returns a tuple with the DeferredWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateMaintenanceWindow) GetDeferredWindowOk() (*ServiceV2DeferredWindow, bool) { - if o == nil || IsNil(o.DeferredWindow) { - return nil, false - } - return o.DeferredWindow, true -} - -// HasDeferredWindow returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindow) HasDeferredWindow() bool { - if o != nil && !IsNil(o.DeferredWindow) { - return true - } - - return false -} - -// SetDeferredWindow gets a reference to the given ServiceV2DeferredWindow and assigns it to the DeferredWindow field. -func (o *ServiceV2UpdateMaintenanceWindow) SetDeferredWindow(v ServiceV2DeferredWindow) { - o.DeferredWindow = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindow) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateMaintenanceWindow) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindow) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceV2UpdateMaintenanceWindow) SetId(v string) { - o.Id = &v -} - -// GetScheduledWindow returns the ScheduledWindow field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindow) GetScheduledWindow() ServiceV2ScheduledWindow { - if o == nil || IsNil(o.ScheduledWindow) { - var ret ServiceV2ScheduledWindow - return ret - } - return *o.ScheduledWindow -} - -// GetScheduledWindowOk returns a tuple with the ScheduledWindow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateMaintenanceWindow) GetScheduledWindowOk() (*ServiceV2ScheduledWindow, bool) { - if o == nil || IsNil(o.ScheduledWindow) { - return nil, false - } - return o.ScheduledWindow, true -} - -// HasScheduledWindow returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindow) HasScheduledWindow() bool { - if o != nil && !IsNil(o.ScheduledWindow) { - return true - } - - return false -} - -// SetScheduledWindow gets a reference to the given ServiceV2ScheduledWindow and assigns it to the ScheduledWindow field. -func (o *ServiceV2UpdateMaintenanceWindow) SetScheduledWindow(v ServiceV2ScheduledWindow) { - o.ScheduledWindow = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindow) GetTags() map[string]map[string]interface{} { - if o == nil || IsNil(o.Tags) { - var ret map[string]map[string]interface{} - return ret - } - return o.Tags -} - -// 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 *ServiceV2UpdateMaintenanceWindow) GetTagsOk() (map[string]map[string]interface{}, bool) { - if o == nil || IsNil(o.Tags) { - return map[string]map[string]interface{}{}, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindow) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. -func (o *ServiceV2UpdateMaintenanceWindow) SetTags(v map[string]map[string]interface{}) { - o.Tags = v -} - -func (o ServiceV2UpdateMaintenanceWindow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2UpdateMaintenanceWindow) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.DeferredWindow) { - toSerialize["deferred_window"] = o.DeferredWindow - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.ScheduledWindow) { - toSerialize["scheduled_window"] = o.ScheduledWindow - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2UpdateMaintenanceWindow) UnmarshalJSON(data []byte) (err error) { - varServiceV2UpdateMaintenanceWindow := _ServiceV2UpdateMaintenanceWindow{} - - err = json.Unmarshal(data, &varServiceV2UpdateMaintenanceWindow) - - if err != nil { - return err - } - - *o = ServiceV2UpdateMaintenanceWindow(varServiceV2UpdateMaintenanceWindow) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "deferred_window") - delete(additionalProperties, "id") - delete(additionalProperties, "scheduled_window") - delete(additionalProperties, "tags") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2UpdateMaintenanceWindow struct { - value *ServiceV2UpdateMaintenanceWindow - isSet bool -} - -func (v NullableServiceV2UpdateMaintenanceWindow) Get() *ServiceV2UpdateMaintenanceWindow { - return v.value -} - -func (v *NullableServiceV2UpdateMaintenanceWindow) Set(val *ServiceV2UpdateMaintenanceWindow) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2UpdateMaintenanceWindow) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2UpdateMaintenanceWindow) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2UpdateMaintenanceWindow(val *ServiceV2UpdateMaintenanceWindow) *NullableServiceV2UpdateMaintenanceWindow { - return &NullableServiceV2UpdateMaintenanceWindow{value: val, isSet: true} -} - -func (v NullableServiceV2UpdateMaintenanceWindow) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2UpdateMaintenanceWindow) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_update_maintenance_window_request.go b/upgradepolicy/model_service_v2_update_maintenance_window_request.go deleted file mode 100644 index 6688bdf..0000000 --- a/upgradepolicy/model_service_v2_update_maintenance_window_request.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2UpdateMaintenanceWindowRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2UpdateMaintenanceWindowRequest{} - -// ServiceV2UpdateMaintenanceWindowRequest struct for ServiceV2UpdateMaintenanceWindowRequest -type ServiceV2UpdateMaintenanceWindowRequest struct { - Id *string `json:"id,omitempty"` - Payload *ServiceV2UpdateMaintenanceWindow `json:"payload,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2UpdateMaintenanceWindowRequest ServiceV2UpdateMaintenanceWindowRequest - -// NewServiceV2UpdateMaintenanceWindowRequest instantiates a new ServiceV2UpdateMaintenanceWindowRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2UpdateMaintenanceWindowRequest() *ServiceV2UpdateMaintenanceWindowRequest { - this := ServiceV2UpdateMaintenanceWindowRequest{} - return &this -} - -// NewServiceV2UpdateMaintenanceWindowRequestWithDefaults instantiates a new ServiceV2UpdateMaintenanceWindowRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2UpdateMaintenanceWindowRequestWithDefaults() *ServiceV2UpdateMaintenanceWindowRequest { - this := ServiceV2UpdateMaintenanceWindowRequest{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindowRequest) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateMaintenanceWindowRequest) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindowRequest) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *ServiceV2UpdateMaintenanceWindowRequest) SetId(v string) { - o.Id = &v -} - -// GetPayload returns the Payload field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindowRequest) GetPayload() ServiceV2UpdateMaintenanceWindow { - if o == nil || IsNil(o.Payload) { - var ret ServiceV2UpdateMaintenanceWindow - return ret - } - return *o.Payload -} - -// GetPayloadOk returns a tuple with the Payload field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateMaintenanceWindowRequest) GetPayloadOk() (*ServiceV2UpdateMaintenanceWindow, bool) { - if o == nil || IsNil(o.Payload) { - return nil, false - } - return o.Payload, true -} - -// HasPayload returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindowRequest) HasPayload() bool { - if o != nil && !IsNil(o.Payload) { - return true - } - - return false -} - -// SetPayload gets a reference to the given ServiceV2UpdateMaintenanceWindow and assigns it to the Payload field. -func (o *ServiceV2UpdateMaintenanceWindowRequest) SetPayload(v ServiceV2UpdateMaintenanceWindow) { - o.Payload = &v -} - -func (o ServiceV2UpdateMaintenanceWindowRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2UpdateMaintenanceWindowRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Payload) { - toSerialize["payload"] = o.Payload - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2UpdateMaintenanceWindowRequest) UnmarshalJSON(data []byte) (err error) { - varServiceV2UpdateMaintenanceWindowRequest := _ServiceV2UpdateMaintenanceWindowRequest{} - - err = json.Unmarshal(data, &varServiceV2UpdateMaintenanceWindowRequest) - - if err != nil { - return err - } - - *o = ServiceV2UpdateMaintenanceWindowRequest(varServiceV2UpdateMaintenanceWindowRequest) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "id") - delete(additionalProperties, "payload") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2UpdateMaintenanceWindowRequest struct { - value *ServiceV2UpdateMaintenanceWindowRequest - isSet bool -} - -func (v NullableServiceV2UpdateMaintenanceWindowRequest) Get() *ServiceV2UpdateMaintenanceWindowRequest { - return v.value -} - -func (v *NullableServiceV2UpdateMaintenanceWindowRequest) Set(val *ServiceV2UpdateMaintenanceWindowRequest) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2UpdateMaintenanceWindowRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2UpdateMaintenanceWindowRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2UpdateMaintenanceWindowRequest(val *ServiceV2UpdateMaintenanceWindowRequest) *NullableServiceV2UpdateMaintenanceWindowRequest { - return &NullableServiceV2UpdateMaintenanceWindowRequest{value: val, isSet: true} -} - -func (v NullableServiceV2UpdateMaintenanceWindowRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2UpdateMaintenanceWindowRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/model_service_v2_update_maintenance_window_response.go b/upgradepolicy/model_service_v2_update_maintenance_window_response.go deleted file mode 100644 index 609d877..0000000 --- a/upgradepolicy/model_service_v2_update_maintenance_window_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -Schedule Software/Config Updates - -Infoblox by default does automatic software updates when they become available. Updates are applied to all on-prem hosts, physical or virtual. However, you can override and schedule the software updates. You can also defer the updates to a later date and time. You can configure up to a total of 50 deferrals (scheduled and deferred software updates), which means you have the flexibility to create up to 50 update groups across different on-prem hosts by mapping with appropriate tags. Tags are be used to associate deferrals (scheduled or deferred) with a specific or group of onprem-hosts. Apart from software update deferrals, config update deferrals also can be configured using these overrides. - -API version: v2 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package upgradepolicy - -import ( - "encoding/json" -) - -// checks if the ServiceV2UpdateMaintenanceWindowResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ServiceV2UpdateMaintenanceWindowResponse{} - -// ServiceV2UpdateMaintenanceWindowResponse struct for ServiceV2UpdateMaintenanceWindowResponse -type ServiceV2UpdateMaintenanceWindowResponse struct { - Result *ServiceV2MaintenanceWindow `json:"result,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ServiceV2UpdateMaintenanceWindowResponse ServiceV2UpdateMaintenanceWindowResponse - -// NewServiceV2UpdateMaintenanceWindowResponse instantiates a new ServiceV2UpdateMaintenanceWindowResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewServiceV2UpdateMaintenanceWindowResponse() *ServiceV2UpdateMaintenanceWindowResponse { - this := ServiceV2UpdateMaintenanceWindowResponse{} - return &this -} - -// NewServiceV2UpdateMaintenanceWindowResponseWithDefaults instantiates a new ServiceV2UpdateMaintenanceWindowResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewServiceV2UpdateMaintenanceWindowResponseWithDefaults() *ServiceV2UpdateMaintenanceWindowResponse { - this := ServiceV2UpdateMaintenanceWindowResponse{} - return &this -} - -// GetResult returns the Result field value if set, zero value otherwise. -func (o *ServiceV2UpdateMaintenanceWindowResponse) GetResult() ServiceV2MaintenanceWindow { - if o == nil || IsNil(o.Result) { - var ret ServiceV2MaintenanceWindow - return ret - } - return *o.Result -} - -// GetResultOk returns a tuple with the Result field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ServiceV2UpdateMaintenanceWindowResponse) GetResultOk() (*ServiceV2MaintenanceWindow, bool) { - if o == nil || IsNil(o.Result) { - return nil, false - } - return o.Result, true -} - -// HasResult returns a boolean if a field has been set. -func (o *ServiceV2UpdateMaintenanceWindowResponse) HasResult() bool { - if o != nil && !IsNil(o.Result) { - return true - } - - return false -} - -// SetResult gets a reference to the given ServiceV2MaintenanceWindow and assigns it to the Result field. -func (o *ServiceV2UpdateMaintenanceWindowResponse) SetResult(v ServiceV2MaintenanceWindow) { - o.Result = &v -} - -func (o ServiceV2UpdateMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ServiceV2UpdateMaintenanceWindowResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Result) { - toSerialize["result"] = o.Result - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ServiceV2UpdateMaintenanceWindowResponse) UnmarshalJSON(data []byte) (err error) { - varServiceV2UpdateMaintenanceWindowResponse := _ServiceV2UpdateMaintenanceWindowResponse{} - - err = json.Unmarshal(data, &varServiceV2UpdateMaintenanceWindowResponse) - - if err != nil { - return err - } - - *o = ServiceV2UpdateMaintenanceWindowResponse(varServiceV2UpdateMaintenanceWindowResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "result") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableServiceV2UpdateMaintenanceWindowResponse struct { - value *ServiceV2UpdateMaintenanceWindowResponse - isSet bool -} - -func (v NullableServiceV2UpdateMaintenanceWindowResponse) Get() *ServiceV2UpdateMaintenanceWindowResponse { - return v.value -} - -func (v *NullableServiceV2UpdateMaintenanceWindowResponse) Set(val *ServiceV2UpdateMaintenanceWindowResponse) { - v.value = val - v.isSet = true -} - -func (v NullableServiceV2UpdateMaintenanceWindowResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableServiceV2UpdateMaintenanceWindowResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableServiceV2UpdateMaintenanceWindowResponse(val *ServiceV2UpdateMaintenanceWindowResponse) *NullableServiceV2UpdateMaintenanceWindowResponse { - return &NullableServiceV2UpdateMaintenanceWindowResponse{value: val, isSet: true} -} - -func (v NullableServiceV2UpdateMaintenanceWindowResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableServiceV2UpdateMaintenanceWindowResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/upgradepolicy/test/api_upgrade_policy_v2_test.go b/upgradepolicy/test/api_upgrade_policy_v2_test.go index 4bdbe95..21f21f6 100644 --- a/upgradepolicy/test/api_upgrade_policy_v2_test.go +++ b/upgradepolicy/test/api_upgrade_policy_v2_test.go @@ -23,11 +23,11 @@ func TestUpgradePolicyV2APIService(t *testing.T) { apiClient := upgradepolicy.NewAPIClient() - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2ApplyConfigNow", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService ApplyConfigNow", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2ApplyConfigNow(context.Background()).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.ApplyConfigNow(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -35,11 +35,11 @@ func TestUpgradePolicyV2APIService(t *testing.T) { }) - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2Batch", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService Batch", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2Batch(context.Background()).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.Batch(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -47,11 +47,11 @@ func TestUpgradePolicyV2APIService(t *testing.T) { }) - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2Create", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService Create", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2Create(context.Background()).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.Create(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -59,13 +59,13 @@ func TestUpgradePolicyV2APIService(t *testing.T) { }) - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2Delete", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService Delete", func(t *testing.T) { t.Skip("skip test") // remove to run test var id string - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2Delete(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.Delete(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -73,13 +73,13 @@ func TestUpgradePolicyV2APIService(t *testing.T) { }) - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2Get", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService Get", func(t *testing.T) { t.Skip("skip test") // remove to run test var id string - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2Get(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.Get(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -87,11 +87,11 @@ func TestUpgradePolicyV2APIService(t *testing.T) { }) - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2List", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService List", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2List(context.Background()).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.List(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -99,13 +99,13 @@ func TestUpgradePolicyV2APIService(t *testing.T) { }) - t.Run("Test UpgradePolicyV2APIService UpgradePolicyV2Update", func(t *testing.T) { + t.Run("Test UpgradePolicyV2APIService Update", func(t *testing.T) { t.Skip("skip test") // remove to run test var id string - resp, httpRes, err := apiClient.UpgradePolicyV2API.UpgradePolicyV2Update(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UpgradePolicyV2API.Update(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp)