From d14221286371e2caf769e4ef8e824ae762540b9a Mon Sep 17 00:00:00 2001 From: Deepti-yb Date: Fri, 6 Sep 2024 07:17:11 +0000 Subject: [PATCH 1/3] [PLAT-14809]Add Implicit params to SetUniverseKey --- api_universe_management.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api_universe_management.go b/api_universe_management.go index 7787082..099509c 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 *EncryptionAtRestKeyParams request *interface{} } +func (r UniverseManagementApiApiSetUniverseKeyRequest) SetUniverseKeyRequest(setUniverseKeyRequest EncryptionAtRestKeyParams) 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 { From be557cead8ada60d55698d91dd4847907c521325 Mon Sep 17 00:00:00 2001 From: Deepti-yb Date: Fri, 6 Sep 2024 07:31:42 +0000 Subject: [PATCH 2/3] [PLAT-14809]Add Implicit params to SetUniverseKey --- .openapi-generator/FILES | 2 + README.md | 1 + docs/EncryptionAtRestKeyParams.md | 603 +++++++++++++++++ model_encryption_at_rest_key_params.go | 882 +++++++++++++++++++++++++ 4 files changed, 1488 insertions(+) create mode 100644 docs/EncryptionAtRestKeyParams.md create mode 100644 model_encryption_at_rest_key_params.go 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/docs/EncryptionAtRestKeyParams.md b/docs/EncryptionAtRestKeyParams.md new file mode 100644 index 0000000..1983a53 --- /dev/null +++ b/docs/EncryptionAtRestKeyParams.md @@ -0,0 +1,603 @@ +# EncryptionAtRestKeyParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CmkArn** | Pointer to **string** | Amazon Resource Name (ARN) of the CMK | [optional] +**CommunicationPorts** | Pointer to [**CommunicationPorts**](CommunicationPorts.md) | | [optional] +**CreatingUser** | [**Users**](Users.md) | | +**DeviceInfo** | Pointer to [**DeviceInfo**](DeviceInfo.md) | | [optional] +**EnableYbc** | Pointer to **bool** | | [optional] +**EncryptionAtRestConfig** | Pointer to [**EncryptionAtRestConfig**](EncryptionAtRestConfig.md) | | [optional] +**ErrorString** | Pointer to **string** | Error message | [optional] +**ExpectedUniverseVersion** | Pointer to **int32** | Expected universe version | [optional] +**ExtraDependencies** | Pointer to [**ExtraDependencies**](ExtraDependencies.md) | | [optional] +**InstallYbc** | Pointer to **bool** | | [optional] +**NodeDetailsSet** | Pointer to [**[]NodeDetails**](NodeDetails.md) | Node details | [optional] +**NodeExporterUser** | Pointer to **string** | Node exporter user | [optional] +**PlatformUrl** | **string** | | +**PlatformVersion** | **string** | | +**PreviousTaskUUID** | Pointer to **string** | Previous task UUID of a retry | [optional] +**SleepAfterMasterRestartMillis** | **int32** | | +**SleepAfterTServerRestartMillis** | **int32** | | +**SourceXClusterConfigs** | Pointer to **[]string** | The source universe's xcluster replication relationships | [optional] [readonly] +**TargetXClusterConfigs** | Pointer to **[]string** | The target universe's xcluster replication relationships | [optional] [readonly] +**UniverseUUID** | Pointer to **string** | Associated universe UUID | [optional] +**YbPrevSoftwareVersion** | Pointer to **string** | Previous software version | [optional] +**YbcInstalled** | Pointer to **bool** | | [optional] +**YbcSoftwareVersion** | Pointer to **string** | | [optional] + +## Methods + +### NewEncryptionAtRestKeyParams + +`func NewEncryptionAtRestKeyParams(creatingUser Users, platformUrl string, platformVersion string, sleepAfterMasterRestartMillis int32, sleepAfterTServerRestartMillis int32, ) *EncryptionAtRestKeyParams` + +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 + +### NewEncryptionAtRestKeyParamsWithDefaults + +`func NewEncryptionAtRestKeyParamsWithDefaults() *EncryptionAtRestKeyParams` + +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 + +### GetCmkArn + +`func (o *EncryptionAtRestKeyParams) GetCmkArn() string` + +GetCmkArn returns the CmkArn field if non-nil, zero value otherwise. + +### GetCmkArnOk + +`func (o *EncryptionAtRestKeyParams) GetCmkArnOk() (*string, bool)` + +GetCmkArnOk returns a tuple with the CmkArn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCmkArn + +`func (o *EncryptionAtRestKeyParams) SetCmkArn(v string)` + +SetCmkArn sets CmkArn field to given value. + +### HasCmkArn + +`func (o *EncryptionAtRestKeyParams) HasCmkArn() bool` + +HasCmkArn returns a boolean if a field has been set. + +### GetCommunicationPorts + +`func (o *EncryptionAtRestKeyParams) GetCommunicationPorts() CommunicationPorts` + +GetCommunicationPorts returns the CommunicationPorts field if non-nil, zero value otherwise. + +### GetCommunicationPortsOk + +`func (o *EncryptionAtRestKeyParams) GetCommunicationPortsOk() (*CommunicationPorts, bool)` + +GetCommunicationPortsOk returns a tuple with the CommunicationPorts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommunicationPorts + +`func (o *EncryptionAtRestKeyParams) SetCommunicationPorts(v CommunicationPorts)` + +SetCommunicationPorts sets CommunicationPorts field to given value. + +### HasCommunicationPorts + +`func (o *EncryptionAtRestKeyParams) HasCommunicationPorts() bool` + +HasCommunicationPorts returns a boolean if a field has been set. + +### GetCreatingUser + +`func (o *EncryptionAtRestKeyParams) GetCreatingUser() Users` + +GetCreatingUser returns the CreatingUser field if non-nil, zero value otherwise. + +### GetCreatingUserOk + +`func (o *EncryptionAtRestKeyParams) GetCreatingUserOk() (*Users, bool)` + +GetCreatingUserOk returns a tuple with the CreatingUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatingUser + +`func (o *EncryptionAtRestKeyParams) SetCreatingUser(v Users)` + +SetCreatingUser sets CreatingUser field to given value. + + +### GetDeviceInfo + +`func (o *EncryptionAtRestKeyParams) GetDeviceInfo() DeviceInfo` + +GetDeviceInfo returns the DeviceInfo field if non-nil, zero value otherwise. + +### GetDeviceInfoOk + +`func (o *EncryptionAtRestKeyParams) GetDeviceInfoOk() (*DeviceInfo, bool)` + +GetDeviceInfoOk returns a tuple with the DeviceInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceInfo + +`func (o *EncryptionAtRestKeyParams) SetDeviceInfo(v DeviceInfo)` + +SetDeviceInfo sets DeviceInfo field to given value. + +### HasDeviceInfo + +`func (o *EncryptionAtRestKeyParams) HasDeviceInfo() bool` + +HasDeviceInfo returns a boolean if a field has been set. + +### GetEnableYbc + +`func (o *EncryptionAtRestKeyParams) GetEnableYbc() bool` + +GetEnableYbc returns the EnableYbc field if non-nil, zero value otherwise. + +### GetEnableYbcOk + +`func (o *EncryptionAtRestKeyParams) GetEnableYbcOk() (*bool, bool)` + +GetEnableYbcOk returns a tuple with the EnableYbc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableYbc + +`func (o *EncryptionAtRestKeyParams) SetEnableYbc(v bool)` + +SetEnableYbc sets EnableYbc field to given value. + +### HasEnableYbc + +`func (o *EncryptionAtRestKeyParams) HasEnableYbc() bool` + +HasEnableYbc returns a boolean if a field has been set. + +### GetEncryptionAtRestConfig + +`func (o *EncryptionAtRestKeyParams) GetEncryptionAtRestConfig() EncryptionAtRestConfig` + +GetEncryptionAtRestConfig returns the EncryptionAtRestConfig field if non-nil, zero value otherwise. + +### GetEncryptionAtRestConfigOk + +`func (o *EncryptionAtRestKeyParams) GetEncryptionAtRestConfigOk() (*EncryptionAtRestConfig, bool)` + +GetEncryptionAtRestConfigOk returns a tuple with the EncryptionAtRestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryptionAtRestConfig + +`func (o *EncryptionAtRestKeyParams) SetEncryptionAtRestConfig(v EncryptionAtRestConfig)` + +SetEncryptionAtRestConfig sets EncryptionAtRestConfig field to given value. + +### HasEncryptionAtRestConfig + +`func (o *EncryptionAtRestKeyParams) HasEncryptionAtRestConfig() bool` + +HasEncryptionAtRestConfig returns a boolean if a field has been set. + +### GetErrorString + +`func (o *EncryptionAtRestKeyParams) GetErrorString() string` + +GetErrorString returns the ErrorString field if non-nil, zero value otherwise. + +### GetErrorStringOk + +`func (o *EncryptionAtRestKeyParams) GetErrorStringOk() (*string, bool)` + +GetErrorStringOk returns a tuple with the ErrorString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorString + +`func (o *EncryptionAtRestKeyParams) SetErrorString(v string)` + +SetErrorString sets ErrorString field to given value. + +### HasErrorString + +`func (o *EncryptionAtRestKeyParams) HasErrorString() bool` + +HasErrorString returns a boolean if a field has been set. + +### GetExpectedUniverseVersion + +`func (o *EncryptionAtRestKeyParams) GetExpectedUniverseVersion() int32` + +GetExpectedUniverseVersion returns the ExpectedUniverseVersion field if non-nil, zero value otherwise. + +### GetExpectedUniverseVersionOk + +`func (o *EncryptionAtRestKeyParams) GetExpectedUniverseVersionOk() (*int32, bool)` + +GetExpectedUniverseVersionOk returns a tuple with the ExpectedUniverseVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpectedUniverseVersion + +`func (o *EncryptionAtRestKeyParams) SetExpectedUniverseVersion(v int32)` + +SetExpectedUniverseVersion sets ExpectedUniverseVersion field to given value. + +### HasExpectedUniverseVersion + +`func (o *EncryptionAtRestKeyParams) HasExpectedUniverseVersion() bool` + +HasExpectedUniverseVersion returns a boolean if a field has been set. + +### GetExtraDependencies + +`func (o *EncryptionAtRestKeyParams) GetExtraDependencies() ExtraDependencies` + +GetExtraDependencies returns the ExtraDependencies field if non-nil, zero value otherwise. + +### GetExtraDependenciesOk + +`func (o *EncryptionAtRestKeyParams) GetExtraDependenciesOk() (*ExtraDependencies, bool)` + +GetExtraDependenciesOk returns a tuple with the ExtraDependencies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraDependencies + +`func (o *EncryptionAtRestKeyParams) SetExtraDependencies(v ExtraDependencies)` + +SetExtraDependencies sets ExtraDependencies field to given value. + +### HasExtraDependencies + +`func (o *EncryptionAtRestKeyParams) HasExtraDependencies() bool` + +HasExtraDependencies returns a boolean if a field has been set. + +### GetInstallYbc + +`func (o *EncryptionAtRestKeyParams) GetInstallYbc() bool` + +GetInstallYbc returns the InstallYbc field if non-nil, zero value otherwise. + +### GetInstallYbcOk + +`func (o *EncryptionAtRestKeyParams) GetInstallYbcOk() (*bool, bool)` + +GetInstallYbcOk returns a tuple with the InstallYbc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallYbc + +`func (o *EncryptionAtRestKeyParams) SetInstallYbc(v bool)` + +SetInstallYbc sets InstallYbc field to given value. + +### HasInstallYbc + +`func (o *EncryptionAtRestKeyParams) HasInstallYbc() bool` + +HasInstallYbc returns a boolean if a field has been set. + +### GetNodeDetailsSet + +`func (o *EncryptionAtRestKeyParams) GetNodeDetailsSet() []NodeDetails` + +GetNodeDetailsSet returns the NodeDetailsSet field if non-nil, zero value otherwise. + +### GetNodeDetailsSetOk + +`func (o *EncryptionAtRestKeyParams) GetNodeDetailsSetOk() (*[]NodeDetails, bool)` + +GetNodeDetailsSetOk returns a tuple with the NodeDetailsSet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeDetailsSet + +`func (o *EncryptionAtRestKeyParams) SetNodeDetailsSet(v []NodeDetails)` + +SetNodeDetailsSet sets NodeDetailsSet field to given value. + +### HasNodeDetailsSet + +`func (o *EncryptionAtRestKeyParams) HasNodeDetailsSet() bool` + +HasNodeDetailsSet returns a boolean if a field has been set. + +### GetNodeExporterUser + +`func (o *EncryptionAtRestKeyParams) GetNodeExporterUser() string` + +GetNodeExporterUser returns the NodeExporterUser field if non-nil, zero value otherwise. + +### GetNodeExporterUserOk + +`func (o *EncryptionAtRestKeyParams) GetNodeExporterUserOk() (*string, bool)` + +GetNodeExporterUserOk returns a tuple with the NodeExporterUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeExporterUser + +`func (o *EncryptionAtRestKeyParams) SetNodeExporterUser(v string)` + +SetNodeExporterUser sets NodeExporterUser field to given value. + +### HasNodeExporterUser + +`func (o *EncryptionAtRestKeyParams) HasNodeExporterUser() bool` + +HasNodeExporterUser returns a boolean if a field has been set. + +### GetPlatformUrl + +`func (o *EncryptionAtRestKeyParams) GetPlatformUrl() string` + +GetPlatformUrl returns the PlatformUrl field if non-nil, zero value otherwise. + +### GetPlatformUrlOk + +`func (o *EncryptionAtRestKeyParams) GetPlatformUrlOk() (*string, bool)` + +GetPlatformUrlOk returns a tuple with the PlatformUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformUrl + +`func (o *EncryptionAtRestKeyParams) SetPlatformUrl(v string)` + +SetPlatformUrl sets PlatformUrl field to given value. + + +### GetPlatformVersion + +`func (o *EncryptionAtRestKeyParams) GetPlatformVersion() string` + +GetPlatformVersion returns the PlatformVersion field if non-nil, zero value otherwise. + +### GetPlatformVersionOk + +`func (o *EncryptionAtRestKeyParams) GetPlatformVersionOk() (*string, bool)` + +GetPlatformVersionOk returns a tuple with the PlatformVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformVersion + +`func (o *EncryptionAtRestKeyParams) SetPlatformVersion(v string)` + +SetPlatformVersion sets PlatformVersion field to given value. + + +### GetPreviousTaskUUID + +`func (o *EncryptionAtRestKeyParams) GetPreviousTaskUUID() string` + +GetPreviousTaskUUID returns the PreviousTaskUUID field if non-nil, zero value otherwise. + +### GetPreviousTaskUUIDOk + +`func (o *EncryptionAtRestKeyParams) GetPreviousTaskUUIDOk() (*string, bool)` + +GetPreviousTaskUUIDOk returns a tuple with the PreviousTaskUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviousTaskUUID + +`func (o *EncryptionAtRestKeyParams) SetPreviousTaskUUID(v string)` + +SetPreviousTaskUUID sets PreviousTaskUUID field to given value. + +### HasPreviousTaskUUID + +`func (o *EncryptionAtRestKeyParams) HasPreviousTaskUUID() bool` + +HasPreviousTaskUUID returns a boolean if a field has been set. + +### GetSleepAfterMasterRestartMillis + +`func (o *EncryptionAtRestKeyParams) GetSleepAfterMasterRestartMillis() int32` + +GetSleepAfterMasterRestartMillis returns the SleepAfterMasterRestartMillis field if non-nil, zero value otherwise. + +### GetSleepAfterMasterRestartMillisOk + +`func (o *EncryptionAtRestKeyParams) GetSleepAfterMasterRestartMillisOk() (*int32, bool)` + +GetSleepAfterMasterRestartMillisOk returns a tuple with the SleepAfterMasterRestartMillis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSleepAfterMasterRestartMillis + +`func (o *EncryptionAtRestKeyParams) SetSleepAfterMasterRestartMillis(v int32)` + +SetSleepAfterMasterRestartMillis sets SleepAfterMasterRestartMillis field to given value. + + +### GetSleepAfterTServerRestartMillis + +`func (o *EncryptionAtRestKeyParams) GetSleepAfterTServerRestartMillis() int32` + +GetSleepAfterTServerRestartMillis returns the SleepAfterTServerRestartMillis field if non-nil, zero value otherwise. + +### GetSleepAfterTServerRestartMillisOk + +`func (o *EncryptionAtRestKeyParams) GetSleepAfterTServerRestartMillisOk() (*int32, bool)` + +GetSleepAfterTServerRestartMillisOk returns a tuple with the SleepAfterTServerRestartMillis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSleepAfterTServerRestartMillis + +`func (o *EncryptionAtRestKeyParams) SetSleepAfterTServerRestartMillis(v int32)` + +SetSleepAfterTServerRestartMillis sets SleepAfterTServerRestartMillis field to given value. + + +### GetSourceXClusterConfigs + +`func (o *EncryptionAtRestKeyParams) GetSourceXClusterConfigs() []string` + +GetSourceXClusterConfigs returns the SourceXClusterConfigs field if non-nil, zero value otherwise. + +### GetSourceXClusterConfigsOk + +`func (o *EncryptionAtRestKeyParams) GetSourceXClusterConfigsOk() (*[]string, bool)` + +GetSourceXClusterConfigsOk returns a tuple with the SourceXClusterConfigs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceXClusterConfigs + +`func (o *EncryptionAtRestKeyParams) SetSourceXClusterConfigs(v []string)` + +SetSourceXClusterConfigs sets SourceXClusterConfigs field to given value. + +### HasSourceXClusterConfigs + +`func (o *EncryptionAtRestKeyParams) HasSourceXClusterConfigs() bool` + +HasSourceXClusterConfigs returns a boolean if a field has been set. + +### GetTargetXClusterConfigs + +`func (o *EncryptionAtRestKeyParams) GetTargetXClusterConfigs() []string` + +GetTargetXClusterConfigs returns the TargetXClusterConfigs field if non-nil, zero value otherwise. + +### GetTargetXClusterConfigsOk + +`func (o *EncryptionAtRestKeyParams) GetTargetXClusterConfigsOk() (*[]string, bool)` + +GetTargetXClusterConfigsOk returns a tuple with the TargetXClusterConfigs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetXClusterConfigs + +`func (o *EncryptionAtRestKeyParams) SetTargetXClusterConfigs(v []string)` + +SetTargetXClusterConfigs sets TargetXClusterConfigs field to given value. + +### HasTargetXClusterConfigs + +`func (o *EncryptionAtRestKeyParams) HasTargetXClusterConfigs() bool` + +HasTargetXClusterConfigs returns a boolean if a field has been set. + +### GetUniverseUUID + +`func (o *EncryptionAtRestKeyParams) GetUniverseUUID() string` + +GetUniverseUUID returns the UniverseUUID field if non-nil, zero value otherwise. + +### GetUniverseUUIDOk + +`func (o *EncryptionAtRestKeyParams) GetUniverseUUIDOk() (*string, bool)` + +GetUniverseUUIDOk returns a tuple with the UniverseUUID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniverseUUID + +`func (o *EncryptionAtRestKeyParams) SetUniverseUUID(v string)` + +SetUniverseUUID sets UniverseUUID field to given value. + +### HasUniverseUUID + +`func (o *EncryptionAtRestKeyParams) HasUniverseUUID() bool` + +HasUniverseUUID returns a boolean if a field has been set. + +### GetYbPrevSoftwareVersion + +`func (o *EncryptionAtRestKeyParams) GetYbPrevSoftwareVersion() string` + +GetYbPrevSoftwareVersion returns the YbPrevSoftwareVersion field if non-nil, zero value otherwise. + +### GetYbPrevSoftwareVersionOk + +`func (o *EncryptionAtRestKeyParams) GetYbPrevSoftwareVersionOk() (*string, bool)` + +GetYbPrevSoftwareVersionOk returns a tuple with the YbPrevSoftwareVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetYbPrevSoftwareVersion + +`func (o *EncryptionAtRestKeyParams) SetYbPrevSoftwareVersion(v string)` + +SetYbPrevSoftwareVersion sets YbPrevSoftwareVersion field to given value. + +### HasYbPrevSoftwareVersion + +`func (o *EncryptionAtRestKeyParams) HasYbPrevSoftwareVersion() bool` + +HasYbPrevSoftwareVersion returns a boolean if a field has been set. + +### GetYbcInstalled + +`func (o *EncryptionAtRestKeyParams) GetYbcInstalled() bool` + +GetYbcInstalled returns the YbcInstalled field if non-nil, zero value otherwise. + +### GetYbcInstalledOk + +`func (o *EncryptionAtRestKeyParams) GetYbcInstalledOk() (*bool, bool)` + +GetYbcInstalledOk returns a tuple with the YbcInstalled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetYbcInstalled + +`func (o *EncryptionAtRestKeyParams) SetYbcInstalled(v bool)` + +SetYbcInstalled sets YbcInstalled field to given value. + +### HasYbcInstalled + +`func (o *EncryptionAtRestKeyParams) HasYbcInstalled() bool` + +HasYbcInstalled returns a boolean if a field has been set. + +### GetYbcSoftwareVersion + +`func (o *EncryptionAtRestKeyParams) GetYbcSoftwareVersion() string` + +GetYbcSoftwareVersion returns the YbcSoftwareVersion field if non-nil, zero value otherwise. + +### GetYbcSoftwareVersionOk + +`func (o *EncryptionAtRestKeyParams) GetYbcSoftwareVersionOk() (*string, bool)` + +GetYbcSoftwareVersionOk returns a tuple with the YbcSoftwareVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetYbcSoftwareVersion + +`func (o *EncryptionAtRestKeyParams) SetYbcSoftwareVersion(v string)` + +SetYbcSoftwareVersion sets YbcSoftwareVersion field to given value. + +### HasYbcSoftwareVersion + +`func (o *EncryptionAtRestKeyParams) HasYbcSoftwareVersion() bool` + +HasYbcSoftwareVersion 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/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) +} + + From e6dc1d30c62fee8241d67f68571d1bcbf0914c27 Mon Sep 17 00:00:00 2001 From: Deepti-yb Date: Fri, 6 Sep 2024 07:48:31 +0000 Subject: [PATCH 3/3] [PLAT-14809]Add Implicit params to SetUniverseKey --- api_universe_management.go | 4 +- docs/EncryptionAtRestKeyParams.md | 603 ------------------------------ docs/UniverseManagementApi.md | 8 +- 3 files changed, 7 insertions(+), 608 deletions(-) delete mode 100644 docs/EncryptionAtRestKeyParams.md diff --git a/api_universe_management.go b/api_universe_management.go index 099509c..dd1c6ab 100644 --- a/api_universe_management.go +++ b/api_universe_management.go @@ -1108,11 +1108,11 @@ type UniverseManagementApiApiSetUniverseKeyRequest struct { ApiService *UniverseManagementApiService cUUID string uniUUID string - setUniverseKeyRequest *EncryptionAtRestKeyParams + setUniverseKeyRequest *EncryptionAtRestConfig request *interface{} } -func (r UniverseManagementApiApiSetUniverseKeyRequest) SetUniverseKeyRequest(setUniverseKeyRequest EncryptionAtRestKeyParams) UniverseManagementApiApiSetUniverseKeyRequest { +func (r UniverseManagementApiApiSetUniverseKeyRequest) SetUniverseKeyRequest(setUniverseKeyRequest EncryptionAtRestConfig) UniverseManagementApiApiSetUniverseKeyRequest { r.setUniverseKeyRequest = &setUniverseKeyRequest return r } diff --git a/docs/EncryptionAtRestKeyParams.md b/docs/EncryptionAtRestKeyParams.md deleted file mode 100644 index 1983a53..0000000 --- a/docs/EncryptionAtRestKeyParams.md +++ /dev/null @@ -1,603 +0,0 @@ -# EncryptionAtRestKeyParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CmkArn** | Pointer to **string** | Amazon Resource Name (ARN) of the CMK | [optional] -**CommunicationPorts** | Pointer to [**CommunicationPorts**](CommunicationPorts.md) | | [optional] -**CreatingUser** | [**Users**](Users.md) | | -**DeviceInfo** | Pointer to [**DeviceInfo**](DeviceInfo.md) | | [optional] -**EnableYbc** | Pointer to **bool** | | [optional] -**EncryptionAtRestConfig** | Pointer to [**EncryptionAtRestConfig**](EncryptionAtRestConfig.md) | | [optional] -**ErrorString** | Pointer to **string** | Error message | [optional] -**ExpectedUniverseVersion** | Pointer to **int32** | Expected universe version | [optional] -**ExtraDependencies** | Pointer to [**ExtraDependencies**](ExtraDependencies.md) | | [optional] -**InstallYbc** | Pointer to **bool** | | [optional] -**NodeDetailsSet** | Pointer to [**[]NodeDetails**](NodeDetails.md) | Node details | [optional] -**NodeExporterUser** | Pointer to **string** | Node exporter user | [optional] -**PlatformUrl** | **string** | | -**PlatformVersion** | **string** | | -**PreviousTaskUUID** | Pointer to **string** | Previous task UUID of a retry | [optional] -**SleepAfterMasterRestartMillis** | **int32** | | -**SleepAfterTServerRestartMillis** | **int32** | | -**SourceXClusterConfigs** | Pointer to **[]string** | The source universe's xcluster replication relationships | [optional] [readonly] -**TargetXClusterConfigs** | Pointer to **[]string** | The target universe's xcluster replication relationships | [optional] [readonly] -**UniverseUUID** | Pointer to **string** | Associated universe UUID | [optional] -**YbPrevSoftwareVersion** | Pointer to **string** | Previous software version | [optional] -**YbcInstalled** | Pointer to **bool** | | [optional] -**YbcSoftwareVersion** | Pointer to **string** | | [optional] - -## Methods - -### NewEncryptionAtRestKeyParams - -`func NewEncryptionAtRestKeyParams(creatingUser Users, platformUrl string, platformVersion string, sleepAfterMasterRestartMillis int32, sleepAfterTServerRestartMillis int32, ) *EncryptionAtRestKeyParams` - -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 - -### NewEncryptionAtRestKeyParamsWithDefaults - -`func NewEncryptionAtRestKeyParamsWithDefaults() *EncryptionAtRestKeyParams` - -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 - -### GetCmkArn - -`func (o *EncryptionAtRestKeyParams) GetCmkArn() string` - -GetCmkArn returns the CmkArn field if non-nil, zero value otherwise. - -### GetCmkArnOk - -`func (o *EncryptionAtRestKeyParams) GetCmkArnOk() (*string, bool)` - -GetCmkArnOk returns a tuple with the CmkArn field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCmkArn - -`func (o *EncryptionAtRestKeyParams) SetCmkArn(v string)` - -SetCmkArn sets CmkArn field to given value. - -### HasCmkArn - -`func (o *EncryptionAtRestKeyParams) HasCmkArn() bool` - -HasCmkArn returns a boolean if a field has been set. - -### GetCommunicationPorts - -`func (o *EncryptionAtRestKeyParams) GetCommunicationPorts() CommunicationPorts` - -GetCommunicationPorts returns the CommunicationPorts field if non-nil, zero value otherwise. - -### GetCommunicationPortsOk - -`func (o *EncryptionAtRestKeyParams) GetCommunicationPortsOk() (*CommunicationPorts, bool)` - -GetCommunicationPortsOk returns a tuple with the CommunicationPorts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommunicationPorts - -`func (o *EncryptionAtRestKeyParams) SetCommunicationPorts(v CommunicationPorts)` - -SetCommunicationPorts sets CommunicationPorts field to given value. - -### HasCommunicationPorts - -`func (o *EncryptionAtRestKeyParams) HasCommunicationPorts() bool` - -HasCommunicationPorts returns a boolean if a field has been set. - -### GetCreatingUser - -`func (o *EncryptionAtRestKeyParams) GetCreatingUser() Users` - -GetCreatingUser returns the CreatingUser field if non-nil, zero value otherwise. - -### GetCreatingUserOk - -`func (o *EncryptionAtRestKeyParams) GetCreatingUserOk() (*Users, bool)` - -GetCreatingUserOk returns a tuple with the CreatingUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatingUser - -`func (o *EncryptionAtRestKeyParams) SetCreatingUser(v Users)` - -SetCreatingUser sets CreatingUser field to given value. - - -### GetDeviceInfo - -`func (o *EncryptionAtRestKeyParams) GetDeviceInfo() DeviceInfo` - -GetDeviceInfo returns the DeviceInfo field if non-nil, zero value otherwise. - -### GetDeviceInfoOk - -`func (o *EncryptionAtRestKeyParams) GetDeviceInfoOk() (*DeviceInfo, bool)` - -GetDeviceInfoOk returns a tuple with the DeviceInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceInfo - -`func (o *EncryptionAtRestKeyParams) SetDeviceInfo(v DeviceInfo)` - -SetDeviceInfo sets DeviceInfo field to given value. - -### HasDeviceInfo - -`func (o *EncryptionAtRestKeyParams) HasDeviceInfo() bool` - -HasDeviceInfo returns a boolean if a field has been set. - -### GetEnableYbc - -`func (o *EncryptionAtRestKeyParams) GetEnableYbc() bool` - -GetEnableYbc returns the EnableYbc field if non-nil, zero value otherwise. - -### GetEnableYbcOk - -`func (o *EncryptionAtRestKeyParams) GetEnableYbcOk() (*bool, bool)` - -GetEnableYbcOk returns a tuple with the EnableYbc field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnableYbc - -`func (o *EncryptionAtRestKeyParams) SetEnableYbc(v bool)` - -SetEnableYbc sets EnableYbc field to given value. - -### HasEnableYbc - -`func (o *EncryptionAtRestKeyParams) HasEnableYbc() bool` - -HasEnableYbc returns a boolean if a field has been set. - -### GetEncryptionAtRestConfig - -`func (o *EncryptionAtRestKeyParams) GetEncryptionAtRestConfig() EncryptionAtRestConfig` - -GetEncryptionAtRestConfig returns the EncryptionAtRestConfig field if non-nil, zero value otherwise. - -### GetEncryptionAtRestConfigOk - -`func (o *EncryptionAtRestKeyParams) GetEncryptionAtRestConfigOk() (*EncryptionAtRestConfig, bool)` - -GetEncryptionAtRestConfigOk returns a tuple with the EncryptionAtRestConfig field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEncryptionAtRestConfig - -`func (o *EncryptionAtRestKeyParams) SetEncryptionAtRestConfig(v EncryptionAtRestConfig)` - -SetEncryptionAtRestConfig sets EncryptionAtRestConfig field to given value. - -### HasEncryptionAtRestConfig - -`func (o *EncryptionAtRestKeyParams) HasEncryptionAtRestConfig() bool` - -HasEncryptionAtRestConfig returns a boolean if a field has been set. - -### GetErrorString - -`func (o *EncryptionAtRestKeyParams) GetErrorString() string` - -GetErrorString returns the ErrorString field if non-nil, zero value otherwise. - -### GetErrorStringOk - -`func (o *EncryptionAtRestKeyParams) GetErrorStringOk() (*string, bool)` - -GetErrorStringOk returns a tuple with the ErrorString field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetErrorString - -`func (o *EncryptionAtRestKeyParams) SetErrorString(v string)` - -SetErrorString sets ErrorString field to given value. - -### HasErrorString - -`func (o *EncryptionAtRestKeyParams) HasErrorString() bool` - -HasErrorString returns a boolean if a field has been set. - -### GetExpectedUniverseVersion - -`func (o *EncryptionAtRestKeyParams) GetExpectedUniverseVersion() int32` - -GetExpectedUniverseVersion returns the ExpectedUniverseVersion field if non-nil, zero value otherwise. - -### GetExpectedUniverseVersionOk - -`func (o *EncryptionAtRestKeyParams) GetExpectedUniverseVersionOk() (*int32, bool)` - -GetExpectedUniverseVersionOk returns a tuple with the ExpectedUniverseVersion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpectedUniverseVersion - -`func (o *EncryptionAtRestKeyParams) SetExpectedUniverseVersion(v int32)` - -SetExpectedUniverseVersion sets ExpectedUniverseVersion field to given value. - -### HasExpectedUniverseVersion - -`func (o *EncryptionAtRestKeyParams) HasExpectedUniverseVersion() bool` - -HasExpectedUniverseVersion returns a boolean if a field has been set. - -### GetExtraDependencies - -`func (o *EncryptionAtRestKeyParams) GetExtraDependencies() ExtraDependencies` - -GetExtraDependencies returns the ExtraDependencies field if non-nil, zero value otherwise. - -### GetExtraDependenciesOk - -`func (o *EncryptionAtRestKeyParams) GetExtraDependenciesOk() (*ExtraDependencies, bool)` - -GetExtraDependenciesOk returns a tuple with the ExtraDependencies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExtraDependencies - -`func (o *EncryptionAtRestKeyParams) SetExtraDependencies(v ExtraDependencies)` - -SetExtraDependencies sets ExtraDependencies field to given value. - -### HasExtraDependencies - -`func (o *EncryptionAtRestKeyParams) HasExtraDependencies() bool` - -HasExtraDependencies returns a boolean if a field has been set. - -### GetInstallYbc - -`func (o *EncryptionAtRestKeyParams) GetInstallYbc() bool` - -GetInstallYbc returns the InstallYbc field if non-nil, zero value otherwise. - -### GetInstallYbcOk - -`func (o *EncryptionAtRestKeyParams) GetInstallYbcOk() (*bool, bool)` - -GetInstallYbcOk returns a tuple with the InstallYbc field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstallYbc - -`func (o *EncryptionAtRestKeyParams) SetInstallYbc(v bool)` - -SetInstallYbc sets InstallYbc field to given value. - -### HasInstallYbc - -`func (o *EncryptionAtRestKeyParams) HasInstallYbc() bool` - -HasInstallYbc returns a boolean if a field has been set. - -### GetNodeDetailsSet - -`func (o *EncryptionAtRestKeyParams) GetNodeDetailsSet() []NodeDetails` - -GetNodeDetailsSet returns the NodeDetailsSet field if non-nil, zero value otherwise. - -### GetNodeDetailsSetOk - -`func (o *EncryptionAtRestKeyParams) GetNodeDetailsSetOk() (*[]NodeDetails, bool)` - -GetNodeDetailsSetOk returns a tuple with the NodeDetailsSet field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNodeDetailsSet - -`func (o *EncryptionAtRestKeyParams) SetNodeDetailsSet(v []NodeDetails)` - -SetNodeDetailsSet sets NodeDetailsSet field to given value. - -### HasNodeDetailsSet - -`func (o *EncryptionAtRestKeyParams) HasNodeDetailsSet() bool` - -HasNodeDetailsSet returns a boolean if a field has been set. - -### GetNodeExporterUser - -`func (o *EncryptionAtRestKeyParams) GetNodeExporterUser() string` - -GetNodeExporterUser returns the NodeExporterUser field if non-nil, zero value otherwise. - -### GetNodeExporterUserOk - -`func (o *EncryptionAtRestKeyParams) GetNodeExporterUserOk() (*string, bool)` - -GetNodeExporterUserOk returns a tuple with the NodeExporterUser field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNodeExporterUser - -`func (o *EncryptionAtRestKeyParams) SetNodeExporterUser(v string)` - -SetNodeExporterUser sets NodeExporterUser field to given value. - -### HasNodeExporterUser - -`func (o *EncryptionAtRestKeyParams) HasNodeExporterUser() bool` - -HasNodeExporterUser returns a boolean if a field has been set. - -### GetPlatformUrl - -`func (o *EncryptionAtRestKeyParams) GetPlatformUrl() string` - -GetPlatformUrl returns the PlatformUrl field if non-nil, zero value otherwise. - -### GetPlatformUrlOk - -`func (o *EncryptionAtRestKeyParams) GetPlatformUrlOk() (*string, bool)` - -GetPlatformUrlOk returns a tuple with the PlatformUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlatformUrl - -`func (o *EncryptionAtRestKeyParams) SetPlatformUrl(v string)` - -SetPlatformUrl sets PlatformUrl field to given value. - - -### GetPlatformVersion - -`func (o *EncryptionAtRestKeyParams) GetPlatformVersion() string` - -GetPlatformVersion returns the PlatformVersion field if non-nil, zero value otherwise. - -### GetPlatformVersionOk - -`func (o *EncryptionAtRestKeyParams) GetPlatformVersionOk() (*string, bool)` - -GetPlatformVersionOk returns a tuple with the PlatformVersion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlatformVersion - -`func (o *EncryptionAtRestKeyParams) SetPlatformVersion(v string)` - -SetPlatformVersion sets PlatformVersion field to given value. - - -### GetPreviousTaskUUID - -`func (o *EncryptionAtRestKeyParams) GetPreviousTaskUUID() string` - -GetPreviousTaskUUID returns the PreviousTaskUUID field if non-nil, zero value otherwise. - -### GetPreviousTaskUUIDOk - -`func (o *EncryptionAtRestKeyParams) GetPreviousTaskUUIDOk() (*string, bool)` - -GetPreviousTaskUUIDOk returns a tuple with the PreviousTaskUUID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPreviousTaskUUID - -`func (o *EncryptionAtRestKeyParams) SetPreviousTaskUUID(v string)` - -SetPreviousTaskUUID sets PreviousTaskUUID field to given value. - -### HasPreviousTaskUUID - -`func (o *EncryptionAtRestKeyParams) HasPreviousTaskUUID() bool` - -HasPreviousTaskUUID returns a boolean if a field has been set. - -### GetSleepAfterMasterRestartMillis - -`func (o *EncryptionAtRestKeyParams) GetSleepAfterMasterRestartMillis() int32` - -GetSleepAfterMasterRestartMillis returns the SleepAfterMasterRestartMillis field if non-nil, zero value otherwise. - -### GetSleepAfterMasterRestartMillisOk - -`func (o *EncryptionAtRestKeyParams) GetSleepAfterMasterRestartMillisOk() (*int32, bool)` - -GetSleepAfterMasterRestartMillisOk returns a tuple with the SleepAfterMasterRestartMillis field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSleepAfterMasterRestartMillis - -`func (o *EncryptionAtRestKeyParams) SetSleepAfterMasterRestartMillis(v int32)` - -SetSleepAfterMasterRestartMillis sets SleepAfterMasterRestartMillis field to given value. - - -### GetSleepAfterTServerRestartMillis - -`func (o *EncryptionAtRestKeyParams) GetSleepAfterTServerRestartMillis() int32` - -GetSleepAfterTServerRestartMillis returns the SleepAfterTServerRestartMillis field if non-nil, zero value otherwise. - -### GetSleepAfterTServerRestartMillisOk - -`func (o *EncryptionAtRestKeyParams) GetSleepAfterTServerRestartMillisOk() (*int32, bool)` - -GetSleepAfterTServerRestartMillisOk returns a tuple with the SleepAfterTServerRestartMillis field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSleepAfterTServerRestartMillis - -`func (o *EncryptionAtRestKeyParams) SetSleepAfterTServerRestartMillis(v int32)` - -SetSleepAfterTServerRestartMillis sets SleepAfterTServerRestartMillis field to given value. - - -### GetSourceXClusterConfigs - -`func (o *EncryptionAtRestKeyParams) GetSourceXClusterConfigs() []string` - -GetSourceXClusterConfigs returns the SourceXClusterConfigs field if non-nil, zero value otherwise. - -### GetSourceXClusterConfigsOk - -`func (o *EncryptionAtRestKeyParams) GetSourceXClusterConfigsOk() (*[]string, bool)` - -GetSourceXClusterConfigsOk returns a tuple with the SourceXClusterConfigs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSourceXClusterConfigs - -`func (o *EncryptionAtRestKeyParams) SetSourceXClusterConfigs(v []string)` - -SetSourceXClusterConfigs sets SourceXClusterConfigs field to given value. - -### HasSourceXClusterConfigs - -`func (o *EncryptionAtRestKeyParams) HasSourceXClusterConfigs() bool` - -HasSourceXClusterConfigs returns a boolean if a field has been set. - -### GetTargetXClusterConfigs - -`func (o *EncryptionAtRestKeyParams) GetTargetXClusterConfigs() []string` - -GetTargetXClusterConfigs returns the TargetXClusterConfigs field if non-nil, zero value otherwise. - -### GetTargetXClusterConfigsOk - -`func (o *EncryptionAtRestKeyParams) GetTargetXClusterConfigsOk() (*[]string, bool)` - -GetTargetXClusterConfigsOk returns a tuple with the TargetXClusterConfigs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTargetXClusterConfigs - -`func (o *EncryptionAtRestKeyParams) SetTargetXClusterConfigs(v []string)` - -SetTargetXClusterConfigs sets TargetXClusterConfigs field to given value. - -### HasTargetXClusterConfigs - -`func (o *EncryptionAtRestKeyParams) HasTargetXClusterConfigs() bool` - -HasTargetXClusterConfigs returns a boolean if a field has been set. - -### GetUniverseUUID - -`func (o *EncryptionAtRestKeyParams) GetUniverseUUID() string` - -GetUniverseUUID returns the UniverseUUID field if non-nil, zero value otherwise. - -### GetUniverseUUIDOk - -`func (o *EncryptionAtRestKeyParams) GetUniverseUUIDOk() (*string, bool)` - -GetUniverseUUIDOk returns a tuple with the UniverseUUID field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUniverseUUID - -`func (o *EncryptionAtRestKeyParams) SetUniverseUUID(v string)` - -SetUniverseUUID sets UniverseUUID field to given value. - -### HasUniverseUUID - -`func (o *EncryptionAtRestKeyParams) HasUniverseUUID() bool` - -HasUniverseUUID returns a boolean if a field has been set. - -### GetYbPrevSoftwareVersion - -`func (o *EncryptionAtRestKeyParams) GetYbPrevSoftwareVersion() string` - -GetYbPrevSoftwareVersion returns the YbPrevSoftwareVersion field if non-nil, zero value otherwise. - -### GetYbPrevSoftwareVersionOk - -`func (o *EncryptionAtRestKeyParams) GetYbPrevSoftwareVersionOk() (*string, bool)` - -GetYbPrevSoftwareVersionOk returns a tuple with the YbPrevSoftwareVersion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYbPrevSoftwareVersion - -`func (o *EncryptionAtRestKeyParams) SetYbPrevSoftwareVersion(v string)` - -SetYbPrevSoftwareVersion sets YbPrevSoftwareVersion field to given value. - -### HasYbPrevSoftwareVersion - -`func (o *EncryptionAtRestKeyParams) HasYbPrevSoftwareVersion() bool` - -HasYbPrevSoftwareVersion returns a boolean if a field has been set. - -### GetYbcInstalled - -`func (o *EncryptionAtRestKeyParams) GetYbcInstalled() bool` - -GetYbcInstalled returns the YbcInstalled field if non-nil, zero value otherwise. - -### GetYbcInstalledOk - -`func (o *EncryptionAtRestKeyParams) GetYbcInstalledOk() (*bool, bool)` - -GetYbcInstalledOk returns a tuple with the YbcInstalled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYbcInstalled - -`func (o *EncryptionAtRestKeyParams) SetYbcInstalled(v bool)` - -SetYbcInstalled sets YbcInstalled field to given value. - -### HasYbcInstalled - -`func (o *EncryptionAtRestKeyParams) HasYbcInstalled() bool` - -HasYbcInstalled returns a boolean if a field has been set. - -### GetYbcSoftwareVersion - -`func (o *EncryptionAtRestKeyParams) GetYbcSoftwareVersion() string` - -GetYbcSoftwareVersion returns the YbcSoftwareVersion field if non-nil, zero value otherwise. - -### GetYbcSoftwareVersionOk - -`func (o *EncryptionAtRestKeyParams) GetYbcSoftwareVersionOk() (*string, bool)` - -GetYbcSoftwareVersionOk returns a tuple with the YbcSoftwareVersion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetYbcSoftwareVersion - -`func (o *EncryptionAtRestKeyParams) SetYbcSoftwareVersion(v string)` - -SetYbcSoftwareVersion sets YbcSoftwareVersion field to given value. - -### HasYbcSoftwareVersion - -`func (o *EncryptionAtRestKeyParams) HasYbcSoftwareVersion() bool` - -HasYbcSoftwareVersion 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/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)