diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 284baed..52e998b 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -194,6 +194,7 @@ docs/EditBackupParams.md docs/EditBackupScheduleParams.md docs/EncryptionAtRestApi.md docs/EncryptionAtRestConfig.md +docs/EncryptionAtRestKeyParams.md docs/ExtraDependencies.md docs/FailedSubtasks.md docs/FinalizeUpgradeInfoResponse.md @@ -572,6 +573,7 @@ model_edit_access_key_rotation_schedule_params.go model_edit_backup_params.go model_edit_backup_schedule_params.go model_encryption_at_rest_config.go +model_encryption_at_rest_key_params.go model_extra_dependencies.go model_failed_subtasks.go model_finalize_upgrade_info_response.go diff --git a/README.md b/README.md index 29a096e..f2c1be9 100644 --- a/README.md +++ b/README.md @@ -512,6 +512,7 @@ Class | Method | HTTP request | Description - [EditBackupParams](docs/EditBackupParams.md) - [EditBackupScheduleParams](docs/EditBackupScheduleParams.md) - [EncryptionAtRestConfig](docs/EncryptionAtRestConfig.md) + - [EncryptionAtRestKeyParams](docs/EncryptionAtRestKeyParams.md) - [ExtraDependencies](docs/ExtraDependencies.md) - [FailedSubtasks](docs/FailedSubtasks.md) - [FinalizeUpgradeInfoResponse](docs/FinalizeUpgradeInfoResponse.md) diff --git a/api_universe_management.go b/api_universe_management.go index 7787082..dd1c6ab 100644 --- a/api_universe_management.go +++ b/api_universe_management.go @@ -1108,9 +1108,14 @@ type UniverseManagementApiApiSetUniverseKeyRequest struct { ApiService *UniverseManagementApiService cUUID string uniUUID string + setUniverseKeyRequest *EncryptionAtRestConfig request *interface{} } +func (r UniverseManagementApiApiSetUniverseKeyRequest) SetUniverseKeyRequest(setUniverseKeyRequest EncryptionAtRestConfig) UniverseManagementApiApiSetUniverseKeyRequest { + r.setUniverseKeyRequest = &setUniverseKeyRequest + return r +} func (r UniverseManagementApiApiSetUniverseKeyRequest) Request(request interface{}) UniverseManagementApiApiSetUniverseKeyRequest { r.request = &request return r @@ -1163,12 +1168,15 @@ func (a *UniverseManagementApiService) SetUniverseKeyExecute(r UniverseManagemen localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} + if r.setUniverseKeyRequest == nil { + return localVarReturnValue, nil, reportError("setUniverseKeyRequest is required and must be specified") + } if r.request != nil { localVarQueryParams.Add("request", parameterToString(*r.request, "")) } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1184,6 +1192,8 @@ func (a *UniverseManagementApiService) SetUniverseKeyExecute(r UniverseManagemen if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.setUniverseKeyRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/docs/UniverseManagementApi.md b/docs/UniverseManagementApi.md index 14172f7..7480163 100644 --- a/docs/UniverseManagementApi.md +++ b/docs/UniverseManagementApi.md @@ -622,7 +622,7 @@ Name | Type | Description | Notes ## SetUniverseKey -> UniverseResp SetUniverseKey(ctx, cUUID, uniUUID).Request(request).Execute() +> UniverseResp SetUniverseKey(ctx, cUUID, uniUUID).SetUniverseKeyRequest(setUniverseKeyRequest).Request(request).Execute() Set a universe's key @@ -643,11 +643,12 @@ import ( func main() { cUUID := TODO // string | uniUUID := TODO // string | + setUniverseKeyRequest := *openapiclient.NewEncryptionAtRestConfig() // EncryptionAtRestConfig | request := TODO // interface{} | (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.UniverseManagementApi.SetUniverseKey(context.Background(), cUUID, uniUUID).Request(request).Execute() + resp, r, err := api_client.UniverseManagementApi.SetUniverseKey(context.Background(), cUUID, uniUUID).SetUniverseKeyRequest(setUniverseKeyRequest).Request(request).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UniverseManagementApi.SetUniverseKey``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -675,6 +676,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **setUniverseKeyRequest** | [**EncryptionAtRestConfig**](EncryptionAtRestConfig.md) | | **request** | [**interface{}**](interface{}.md) | | ### Return type @@ -687,7 +689,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/model_encryption_at_rest_key_params.go b/model_encryption_at_rest_key_params.go new file mode 100644 index 0000000..c9d399f --- /dev/null +++ b/model_encryption_at_rest_key_params.go @@ -0,0 +1,882 @@ +/* + * YugabyteDB Anywhere APIs + * + * ALPHA - NOT FOR EXTERNAL USE + * + * API version: v1 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ywclient + +import ( + "encoding/json" +) + +// EncryptionAtRestKeyParams struct for EncryptionAtRestKeyParams +type EncryptionAtRestKeyParams struct { + // Amazon Resource Name (ARN) of the CMK + CmkArn *string `json:"cmkArn,omitempty"` + CommunicationPorts *CommunicationPorts `json:"communicationPorts,omitempty"` + CreatingUser Users `json:"creatingUser"` + DeviceInfo *DeviceInfo `json:"deviceInfo,omitempty"` + EnableYbc *bool `json:"enableYbc,omitempty"` + EncryptionAtRestConfig *EncryptionAtRestConfig `json:"encryptionAtRestConfig,omitempty"` + // Error message + ErrorString *string `json:"errorString,omitempty"` + // Expected universe version + ExpectedUniverseVersion *int32 `json:"expectedUniverseVersion,omitempty"` + ExtraDependencies *ExtraDependencies `json:"extraDependencies,omitempty"` + InstallYbc *bool `json:"installYbc,omitempty"` + // Node details + NodeDetailsSet *[]NodeDetails `json:"nodeDetailsSet,omitempty"` + // Node exporter user + NodeExporterUser *string `json:"nodeExporterUser,omitempty"` + PlatformUrl string `json:"platformUrl"` + PlatformVersion string `json:"platformVersion"` + // Previous task UUID of a retry + PreviousTaskUUID *string `json:"previousTaskUUID,omitempty"` + SleepAfterMasterRestartMillis int32 `json:"sleepAfterMasterRestartMillis"` + SleepAfterTServerRestartMillis int32 `json:"sleepAfterTServerRestartMillis"` + // The source universe's xcluster replication relationships + SourceXClusterConfigs *[]string `json:"sourceXClusterConfigs,omitempty"` + // The target universe's xcluster replication relationships + TargetXClusterConfigs *[]string `json:"targetXClusterConfigs,omitempty"` + // Associated universe UUID + UniverseUUID *string `json:"universeUUID,omitempty"` + // Previous software version + YbPrevSoftwareVersion *string `json:"ybPrevSoftwareVersion,omitempty"` + YbcInstalled *bool `json:"ybcInstalled,omitempty"` + YbcSoftwareVersion *string `json:"ybcSoftwareVersion,omitempty"` +} + +// NewEncryptionAtRestKeyParams instantiates a new EncryptionAtRestKeyParams 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 NewEncryptionAtRestKeyParams(creatingUser Users, platformUrl string, platformVersion string, sleepAfterMasterRestartMillis int32, sleepAfterTServerRestartMillis int32) *EncryptionAtRestKeyParams { + this := EncryptionAtRestKeyParams{} + this.CreatingUser = creatingUser + this.PlatformUrl = platformUrl + this.PlatformVersion = platformVersion + this.SleepAfterMasterRestartMillis = sleepAfterMasterRestartMillis + this.SleepAfterTServerRestartMillis = sleepAfterTServerRestartMillis + return &this +} + +// NewEncryptionAtRestKeyParamsWithDefaults instantiates a new EncryptionAtRestKeyParams 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 NewEncryptionAtRestKeyParamsWithDefaults() *EncryptionAtRestKeyParams { + this := EncryptionAtRestKeyParams{} + return &this +} + +// GetCmkArn returns the CmkArn field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetCmkArn() string { + if o == nil || o.CmkArn == nil { + var ret string + return ret + } + return *o.CmkArn +} + +// GetCmkArnOk returns a tuple with the CmkArn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetCmkArnOk() (*string, bool) { + if o == nil || o.CmkArn == nil { + return nil, false + } + return o.CmkArn, true +} + +// HasCmkArn returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasCmkArn() bool { + if o != nil && o.CmkArn != nil { + return true + } + + return false +} + +// SetCmkArn gets a reference to the given string and assigns it to the CmkArn field. +func (o *EncryptionAtRestKeyParams) SetCmkArn(v string) { + o.CmkArn = &v +} + +// GetCommunicationPorts returns the CommunicationPorts field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetCommunicationPorts() CommunicationPorts { + if o == nil || o.CommunicationPorts == nil { + var ret CommunicationPorts + return ret + } + return *o.CommunicationPorts +} + +// GetCommunicationPortsOk returns a tuple with the CommunicationPorts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetCommunicationPortsOk() (*CommunicationPorts, bool) { + if o == nil || o.CommunicationPorts == nil { + return nil, false + } + return o.CommunicationPorts, true +} + +// HasCommunicationPorts returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasCommunicationPorts() bool { + if o != nil && o.CommunicationPorts != nil { + return true + } + + return false +} + +// SetCommunicationPorts gets a reference to the given CommunicationPorts and assigns it to the CommunicationPorts field. +func (o *EncryptionAtRestKeyParams) SetCommunicationPorts(v CommunicationPorts) { + o.CommunicationPorts = &v +} + +// GetCreatingUser returns the CreatingUser field value +func (o *EncryptionAtRestKeyParams) GetCreatingUser() Users { + if o == nil { + var ret Users + return ret + } + + return o.CreatingUser +} + +// GetCreatingUserOk returns a tuple with the CreatingUser field value +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetCreatingUserOk() (*Users, bool) { + if o == nil { + return nil, false + } + return &o.CreatingUser, true +} + +// SetCreatingUser sets field value +func (o *EncryptionAtRestKeyParams) SetCreatingUser(v Users) { + o.CreatingUser = v +} + +// GetDeviceInfo returns the DeviceInfo field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetDeviceInfo() DeviceInfo { + if o == nil || o.DeviceInfo == nil { + var ret DeviceInfo + return ret + } + return *o.DeviceInfo +} + +// GetDeviceInfoOk returns a tuple with the DeviceInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetDeviceInfoOk() (*DeviceInfo, bool) { + if o == nil || o.DeviceInfo == nil { + return nil, false + } + return o.DeviceInfo, true +} + +// HasDeviceInfo returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasDeviceInfo() bool { + if o != nil && o.DeviceInfo != nil { + return true + } + + return false +} + +// SetDeviceInfo gets a reference to the given DeviceInfo and assigns it to the DeviceInfo field. +func (o *EncryptionAtRestKeyParams) SetDeviceInfo(v DeviceInfo) { + o.DeviceInfo = &v +} + +// GetEnableYbc returns the EnableYbc field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetEnableYbc() bool { + if o == nil || o.EnableYbc == nil { + var ret bool + return ret + } + return *o.EnableYbc +} + +// GetEnableYbcOk returns a tuple with the EnableYbc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetEnableYbcOk() (*bool, bool) { + if o == nil || o.EnableYbc == nil { + return nil, false + } + return o.EnableYbc, true +} + +// HasEnableYbc returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasEnableYbc() bool { + if o != nil && o.EnableYbc != nil { + return true + } + + return false +} + +// SetEnableYbc gets a reference to the given bool and assigns it to the EnableYbc field. +func (o *EncryptionAtRestKeyParams) SetEnableYbc(v bool) { + o.EnableYbc = &v +} + +// GetEncryptionAtRestConfig returns the EncryptionAtRestConfig field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetEncryptionAtRestConfig() EncryptionAtRestConfig { + if o == nil || o.EncryptionAtRestConfig == nil { + var ret EncryptionAtRestConfig + return ret + } + return *o.EncryptionAtRestConfig +} + +// GetEncryptionAtRestConfigOk returns a tuple with the EncryptionAtRestConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetEncryptionAtRestConfigOk() (*EncryptionAtRestConfig, bool) { + if o == nil || o.EncryptionAtRestConfig == nil { + return nil, false + } + return o.EncryptionAtRestConfig, true +} + +// HasEncryptionAtRestConfig returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasEncryptionAtRestConfig() bool { + if o != nil && o.EncryptionAtRestConfig != nil { + return true + } + + return false +} + +// SetEncryptionAtRestConfig gets a reference to the given EncryptionAtRestConfig and assigns it to the EncryptionAtRestConfig field. +func (o *EncryptionAtRestKeyParams) SetEncryptionAtRestConfig(v EncryptionAtRestConfig) { + o.EncryptionAtRestConfig = &v +} + +// GetErrorString returns the ErrorString field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetErrorString() string { + if o == nil || o.ErrorString == nil { + var ret string + return ret + } + return *o.ErrorString +} + +// GetErrorStringOk returns a tuple with the ErrorString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetErrorStringOk() (*string, bool) { + if o == nil || o.ErrorString == nil { + return nil, false + } + return o.ErrorString, true +} + +// HasErrorString returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasErrorString() bool { + if o != nil && o.ErrorString != nil { + return true + } + + return false +} + +// SetErrorString gets a reference to the given string and assigns it to the ErrorString field. +func (o *EncryptionAtRestKeyParams) SetErrorString(v string) { + o.ErrorString = &v +} + +// GetExpectedUniverseVersion returns the ExpectedUniverseVersion field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetExpectedUniverseVersion() int32 { + if o == nil || o.ExpectedUniverseVersion == nil { + var ret int32 + return ret + } + return *o.ExpectedUniverseVersion +} + +// GetExpectedUniverseVersionOk returns a tuple with the ExpectedUniverseVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetExpectedUniverseVersionOk() (*int32, bool) { + if o == nil || o.ExpectedUniverseVersion == nil { + return nil, false + } + return o.ExpectedUniverseVersion, true +} + +// HasExpectedUniverseVersion returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasExpectedUniverseVersion() bool { + if o != nil && o.ExpectedUniverseVersion != nil { + return true + } + + return false +} + +// SetExpectedUniverseVersion gets a reference to the given int32 and assigns it to the ExpectedUniverseVersion field. +func (o *EncryptionAtRestKeyParams) SetExpectedUniverseVersion(v int32) { + o.ExpectedUniverseVersion = &v +} + +// GetExtraDependencies returns the ExtraDependencies field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetExtraDependencies() ExtraDependencies { + if o == nil || o.ExtraDependencies == nil { + var ret ExtraDependencies + return ret + } + return *o.ExtraDependencies +} + +// GetExtraDependenciesOk returns a tuple with the ExtraDependencies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetExtraDependenciesOk() (*ExtraDependencies, bool) { + if o == nil || o.ExtraDependencies == nil { + return nil, false + } + return o.ExtraDependencies, true +} + +// HasExtraDependencies returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasExtraDependencies() bool { + if o != nil && o.ExtraDependencies != nil { + return true + } + + return false +} + +// SetExtraDependencies gets a reference to the given ExtraDependencies and assigns it to the ExtraDependencies field. +func (o *EncryptionAtRestKeyParams) SetExtraDependencies(v ExtraDependencies) { + o.ExtraDependencies = &v +} + +// GetInstallYbc returns the InstallYbc field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetInstallYbc() bool { + if o == nil || o.InstallYbc == nil { + var ret bool + return ret + } + return *o.InstallYbc +} + +// GetInstallYbcOk returns a tuple with the InstallYbc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetInstallYbcOk() (*bool, bool) { + if o == nil || o.InstallYbc == nil { + return nil, false + } + return o.InstallYbc, true +} + +// HasInstallYbc returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasInstallYbc() bool { + if o != nil && o.InstallYbc != nil { + return true + } + + return false +} + +// SetInstallYbc gets a reference to the given bool and assigns it to the InstallYbc field. +func (o *EncryptionAtRestKeyParams) SetInstallYbc(v bool) { + o.InstallYbc = &v +} + +// GetNodeDetailsSet returns the NodeDetailsSet field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetNodeDetailsSet() []NodeDetails { + if o == nil || o.NodeDetailsSet == nil { + var ret []NodeDetails + return ret + } + return *o.NodeDetailsSet +} + +// GetNodeDetailsSetOk returns a tuple with the NodeDetailsSet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetNodeDetailsSetOk() (*[]NodeDetails, bool) { + if o == nil || o.NodeDetailsSet == nil { + return nil, false + } + return o.NodeDetailsSet, true +} + +// HasNodeDetailsSet returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasNodeDetailsSet() bool { + if o != nil && o.NodeDetailsSet != nil { + return true + } + + return false +} + +// SetNodeDetailsSet gets a reference to the given []NodeDetails and assigns it to the NodeDetailsSet field. +func (o *EncryptionAtRestKeyParams) SetNodeDetailsSet(v []NodeDetails) { + o.NodeDetailsSet = &v +} + +// GetNodeExporterUser returns the NodeExporterUser field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetNodeExporterUser() string { + if o == nil || o.NodeExporterUser == nil { + var ret string + return ret + } + return *o.NodeExporterUser +} + +// GetNodeExporterUserOk returns a tuple with the NodeExporterUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetNodeExporterUserOk() (*string, bool) { + if o == nil || o.NodeExporterUser == nil { + return nil, false + } + return o.NodeExporterUser, true +} + +// HasNodeExporterUser returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasNodeExporterUser() bool { + if o != nil && o.NodeExporterUser != nil { + return true + } + + return false +} + +// SetNodeExporterUser gets a reference to the given string and assigns it to the NodeExporterUser field. +func (o *EncryptionAtRestKeyParams) SetNodeExporterUser(v string) { + o.NodeExporterUser = &v +} + +// GetPlatformUrl returns the PlatformUrl field value +func (o *EncryptionAtRestKeyParams) GetPlatformUrl() string { + if o == nil { + var ret string + return ret + } + + return o.PlatformUrl +} + +// GetPlatformUrlOk returns a tuple with the PlatformUrl field value +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetPlatformUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlatformUrl, true +} + +// SetPlatformUrl sets field value +func (o *EncryptionAtRestKeyParams) SetPlatformUrl(v string) { + o.PlatformUrl = v +} + +// GetPlatformVersion returns the PlatformVersion field value +func (o *EncryptionAtRestKeyParams) GetPlatformVersion() string { + if o == nil { + var ret string + return ret + } + + return o.PlatformVersion +} + +// GetPlatformVersionOk returns a tuple with the PlatformVersion field value +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetPlatformVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlatformVersion, true +} + +// SetPlatformVersion sets field value +func (o *EncryptionAtRestKeyParams) SetPlatformVersion(v string) { + o.PlatformVersion = v +} + +// GetPreviousTaskUUID returns the PreviousTaskUUID field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetPreviousTaskUUID() string { + if o == nil || o.PreviousTaskUUID == nil { + var ret string + return ret + } + return *o.PreviousTaskUUID +} + +// GetPreviousTaskUUIDOk returns a tuple with the PreviousTaskUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetPreviousTaskUUIDOk() (*string, bool) { + if o == nil || o.PreviousTaskUUID == nil { + return nil, false + } + return o.PreviousTaskUUID, true +} + +// HasPreviousTaskUUID returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasPreviousTaskUUID() bool { + if o != nil && o.PreviousTaskUUID != nil { + return true + } + + return false +} + +// SetPreviousTaskUUID gets a reference to the given string and assigns it to the PreviousTaskUUID field. +func (o *EncryptionAtRestKeyParams) SetPreviousTaskUUID(v string) { + o.PreviousTaskUUID = &v +} + +// GetSleepAfterMasterRestartMillis returns the SleepAfterMasterRestartMillis field value +func (o *EncryptionAtRestKeyParams) GetSleepAfterMasterRestartMillis() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SleepAfterMasterRestartMillis +} + +// GetSleepAfterMasterRestartMillisOk returns a tuple with the SleepAfterMasterRestartMillis field value +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetSleepAfterMasterRestartMillisOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SleepAfterMasterRestartMillis, true +} + +// SetSleepAfterMasterRestartMillis sets field value +func (o *EncryptionAtRestKeyParams) SetSleepAfterMasterRestartMillis(v int32) { + o.SleepAfterMasterRestartMillis = v +} + +// GetSleepAfterTServerRestartMillis returns the SleepAfterTServerRestartMillis field value +func (o *EncryptionAtRestKeyParams) GetSleepAfterTServerRestartMillis() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SleepAfterTServerRestartMillis +} + +// GetSleepAfterTServerRestartMillisOk returns a tuple with the SleepAfterTServerRestartMillis field value +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetSleepAfterTServerRestartMillisOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SleepAfterTServerRestartMillis, true +} + +// SetSleepAfterTServerRestartMillis sets field value +func (o *EncryptionAtRestKeyParams) SetSleepAfterTServerRestartMillis(v int32) { + o.SleepAfterTServerRestartMillis = v +} + +// GetSourceXClusterConfigs returns the SourceXClusterConfigs field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetSourceXClusterConfigs() []string { + if o == nil || o.SourceXClusterConfigs == nil { + var ret []string + return ret + } + return *o.SourceXClusterConfigs +} + +// GetSourceXClusterConfigsOk returns a tuple with the SourceXClusterConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetSourceXClusterConfigsOk() (*[]string, bool) { + if o == nil || o.SourceXClusterConfigs == nil { + return nil, false + } + return o.SourceXClusterConfigs, true +} + +// HasSourceXClusterConfigs returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasSourceXClusterConfigs() bool { + if o != nil && o.SourceXClusterConfigs != nil { + return true + } + + return false +} + +// SetSourceXClusterConfigs gets a reference to the given []string and assigns it to the SourceXClusterConfigs field. +func (o *EncryptionAtRestKeyParams) SetSourceXClusterConfigs(v []string) { + o.SourceXClusterConfigs = &v +} + +// GetTargetXClusterConfigs returns the TargetXClusterConfigs field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetTargetXClusterConfigs() []string { + if o == nil || o.TargetXClusterConfigs == nil { + var ret []string + return ret + } + return *o.TargetXClusterConfigs +} + +// GetTargetXClusterConfigsOk returns a tuple with the TargetXClusterConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetTargetXClusterConfigsOk() (*[]string, bool) { + if o == nil || o.TargetXClusterConfigs == nil { + return nil, false + } + return o.TargetXClusterConfigs, true +} + +// HasTargetXClusterConfigs returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasTargetXClusterConfigs() bool { + if o != nil && o.TargetXClusterConfigs != nil { + return true + } + + return false +} + +// SetTargetXClusterConfigs gets a reference to the given []string and assigns it to the TargetXClusterConfigs field. +func (o *EncryptionAtRestKeyParams) SetTargetXClusterConfigs(v []string) { + o.TargetXClusterConfigs = &v +} + +// GetUniverseUUID returns the UniverseUUID field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetUniverseUUID() string { + if o == nil || o.UniverseUUID == nil { + var ret string + return ret + } + return *o.UniverseUUID +} + +// GetUniverseUUIDOk returns a tuple with the UniverseUUID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetUniverseUUIDOk() (*string, bool) { + if o == nil || o.UniverseUUID == nil { + return nil, false + } + return o.UniverseUUID, true +} + +// HasUniverseUUID returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasUniverseUUID() bool { + if o != nil && o.UniverseUUID != nil { + return true + } + + return false +} + +// SetUniverseUUID gets a reference to the given string and assigns it to the UniverseUUID field. +func (o *EncryptionAtRestKeyParams) SetUniverseUUID(v string) { + o.UniverseUUID = &v +} + +// GetYbPrevSoftwareVersion returns the YbPrevSoftwareVersion field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetYbPrevSoftwareVersion() string { + if o == nil || o.YbPrevSoftwareVersion == nil { + var ret string + return ret + } + return *o.YbPrevSoftwareVersion +} + +// GetYbPrevSoftwareVersionOk returns a tuple with the YbPrevSoftwareVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetYbPrevSoftwareVersionOk() (*string, bool) { + if o == nil || o.YbPrevSoftwareVersion == nil { + return nil, false + } + return o.YbPrevSoftwareVersion, true +} + +// HasYbPrevSoftwareVersion returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasYbPrevSoftwareVersion() bool { + if o != nil && o.YbPrevSoftwareVersion != nil { + return true + } + + return false +} + +// SetYbPrevSoftwareVersion gets a reference to the given string and assigns it to the YbPrevSoftwareVersion field. +func (o *EncryptionAtRestKeyParams) SetYbPrevSoftwareVersion(v string) { + o.YbPrevSoftwareVersion = &v +} + +// GetYbcInstalled returns the YbcInstalled field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetYbcInstalled() bool { + if o == nil || o.YbcInstalled == nil { + var ret bool + return ret + } + return *o.YbcInstalled +} + +// GetYbcInstalledOk returns a tuple with the YbcInstalled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetYbcInstalledOk() (*bool, bool) { + if o == nil || o.YbcInstalled == nil { + return nil, false + } + return o.YbcInstalled, true +} + +// HasYbcInstalled returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasYbcInstalled() bool { + if o != nil && o.YbcInstalled != nil { + return true + } + + return false +} + +// SetYbcInstalled gets a reference to the given bool and assigns it to the YbcInstalled field. +func (o *EncryptionAtRestKeyParams) SetYbcInstalled(v bool) { + o.YbcInstalled = &v +} + +// GetYbcSoftwareVersion returns the YbcSoftwareVersion field value if set, zero value otherwise. +func (o *EncryptionAtRestKeyParams) GetYbcSoftwareVersion() string { + if o == nil || o.YbcSoftwareVersion == nil { + var ret string + return ret + } + return *o.YbcSoftwareVersion +} + +// GetYbcSoftwareVersionOk returns a tuple with the YbcSoftwareVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EncryptionAtRestKeyParams) GetYbcSoftwareVersionOk() (*string, bool) { + if o == nil || o.YbcSoftwareVersion == nil { + return nil, false + } + return o.YbcSoftwareVersion, true +} + +// HasYbcSoftwareVersion returns a boolean if a field has been set. +func (o *EncryptionAtRestKeyParams) HasYbcSoftwareVersion() bool { + if o != nil && o.YbcSoftwareVersion != nil { + return true + } + + return false +} + +// SetYbcSoftwareVersion gets a reference to the given string and assigns it to the YbcSoftwareVersion field. +func (o *EncryptionAtRestKeyParams) SetYbcSoftwareVersion(v string) { + o.YbcSoftwareVersion = &v +} + +func (o EncryptionAtRestKeyParams) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CmkArn != nil { + toSerialize["cmkArn"] = o.CmkArn + } + if o.CommunicationPorts != nil { + toSerialize["communicationPorts"] = o.CommunicationPorts + } + if true { + toSerialize["creatingUser"] = o.CreatingUser + } + if o.DeviceInfo != nil { + toSerialize["deviceInfo"] = o.DeviceInfo + } + if o.EnableYbc != nil { + toSerialize["enableYbc"] = o.EnableYbc + } + if o.EncryptionAtRestConfig != nil { + toSerialize["encryptionAtRestConfig"] = o.EncryptionAtRestConfig + } + if o.ErrorString != nil { + toSerialize["errorString"] = o.ErrorString + } + if o.ExpectedUniverseVersion != nil { + toSerialize["expectedUniverseVersion"] = o.ExpectedUniverseVersion + } + if o.ExtraDependencies != nil { + toSerialize["extraDependencies"] = o.ExtraDependencies + } + if o.InstallYbc != nil { + toSerialize["installYbc"] = o.InstallYbc + } + if o.NodeDetailsSet != nil { + toSerialize["nodeDetailsSet"] = o.NodeDetailsSet + } + if o.NodeExporterUser != nil { + toSerialize["nodeExporterUser"] = o.NodeExporterUser + } + if true { + toSerialize["platformUrl"] = o.PlatformUrl + } + if true { + toSerialize["platformVersion"] = o.PlatformVersion + } + if o.PreviousTaskUUID != nil { + toSerialize["previousTaskUUID"] = o.PreviousTaskUUID + } + if true { + toSerialize["sleepAfterMasterRestartMillis"] = o.SleepAfterMasterRestartMillis + } + if true { + toSerialize["sleepAfterTServerRestartMillis"] = o.SleepAfterTServerRestartMillis + } + if o.SourceXClusterConfigs != nil { + toSerialize["sourceXClusterConfigs"] = o.SourceXClusterConfigs + } + if o.TargetXClusterConfigs != nil { + toSerialize["targetXClusterConfigs"] = o.TargetXClusterConfigs + } + if o.UniverseUUID != nil { + toSerialize["universeUUID"] = o.UniverseUUID + } + if o.YbPrevSoftwareVersion != nil { + toSerialize["ybPrevSoftwareVersion"] = o.YbPrevSoftwareVersion + } + if o.YbcInstalled != nil { + toSerialize["ybcInstalled"] = o.YbcInstalled + } + if o.YbcSoftwareVersion != nil { + toSerialize["ybcSoftwareVersion"] = o.YbcSoftwareVersion + } + return json.Marshal(toSerialize) +} + +type NullableEncryptionAtRestKeyParams struct { + value *EncryptionAtRestKeyParams + isSet bool +} + +func (v NullableEncryptionAtRestKeyParams) Get() *EncryptionAtRestKeyParams { + return v.value +} + +func (v *NullableEncryptionAtRestKeyParams) Set(val *EncryptionAtRestKeyParams) { + v.value = val + v.isSet = true +} + +func (v NullableEncryptionAtRestKeyParams) IsSet() bool { + return v.isSet +} + +func (v *NullableEncryptionAtRestKeyParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEncryptionAtRestKeyParams(val *EncryptionAtRestKeyParams) *NullableEncryptionAtRestKeyParams { + return &NullableEncryptionAtRestKeyParams{value: val, isSet: true} +} + +func (v NullableEncryptionAtRestKeyParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEncryptionAtRestKeyParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +