Skip to content

Commit

Permalink
APIBot: SDK update based on recent changes in Atlas API (#319)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: wtrocki <981838+wtrocki@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 30, 2024
1 parent 7e89ceb commit ecfd1a3
Show file tree
Hide file tree
Showing 9 changed files with 282 additions and 3 deletions.
38 changes: 38 additions & 0 deletions admin/model_advanced_cluster_description.go
Expand Up @@ -26,6 +26,8 @@ type AdvancedClusterDescription struct {
DiskWarmingMode *string `json:"diskWarmingMode,omitempty"`
// Cloud service provider that manages your customer keys to provide an additional layer of encryption at rest for the cluster. To enable customer key management for encryption at rest, the cluster **replicationSpecs[n].regionConfigs[m].{type}Specs.instanceSize** setting must be `M10` or higher and `\"backupEnabled\" : false` or omitted entirely.
EncryptionAtRestProvider *string `json:"encryptionAtRestProvider,omitempty"`
// Set this field to configure the Sharding Management Mode when creating a new Global Cluster. When set to false, the management mode is set to Atlas-Managed Sharding. This mode fully manages the sharding of your Global Cluster and is built to provide a seamless deployment experience. When set to true, the management mode is set to Self-Managed Sharding. This mode leaves the management of shards in your hands and is built to provide an advanced and flexible deployment experience. This setting cannot be changed once the cluster is deployed.
GlobalClusterSelfManagedSharding *bool `json:"globalClusterSelfManagedSharding,omitempty"`
// Unique 24-hexadecimal character string that identifies the project.
// Read only field.
GroupId *string `json:"groupId,omitempty"`
Expand Down Expand Up @@ -402,6 +404,39 @@ func (o *AdvancedClusterDescription) SetEncryptionAtRestProvider(v string) {
o.EncryptionAtRestProvider = &v
}

// GetGlobalClusterSelfManagedSharding returns the GlobalClusterSelfManagedSharding field value if set, zero value otherwise
func (o *AdvancedClusterDescription) GetGlobalClusterSelfManagedSharding() bool {
if o == nil || IsNil(o.GlobalClusterSelfManagedSharding) {
var ret bool
return ret
}
return *o.GlobalClusterSelfManagedSharding
}

// GetGlobalClusterSelfManagedShardingOk returns a tuple with the GlobalClusterSelfManagedSharding field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AdvancedClusterDescription) GetGlobalClusterSelfManagedShardingOk() (*bool, bool) {
if o == nil || IsNil(o.GlobalClusterSelfManagedSharding) {
return nil, false
}

return o.GlobalClusterSelfManagedSharding, true
}

// HasGlobalClusterSelfManagedSharding returns a boolean if a field has been set.
func (o *AdvancedClusterDescription) HasGlobalClusterSelfManagedSharding() bool {
if o != nil && !IsNil(o.GlobalClusterSelfManagedSharding) {
return true
}

return false
}

// SetGlobalClusterSelfManagedSharding gets a reference to the given bool and assigns it to the GlobalClusterSelfManagedSharding field.
func (o *AdvancedClusterDescription) SetGlobalClusterSelfManagedSharding(v bool) {
o.GlobalClusterSelfManagedSharding = &v
}

// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *AdvancedClusterDescription) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
Expand Down Expand Up @@ -933,6 +968,9 @@ func (o AdvancedClusterDescription) ToMap() (map[string]interface{}, error) {
if !IsNil(o.EncryptionAtRestProvider) {
toSerialize["encryptionAtRestProvider"] = o.EncryptionAtRestProvider
}
if !IsNil(o.GlobalClusterSelfManagedSharding) {
toSerialize["globalClusterSelfManagedSharding"] = o.GlobalClusterSelfManagedSharding
}
if !IsNil(o.Labels) {
toSerialize["labels"] = o.Labels
}
Expand Down
38 changes: 38 additions & 0 deletions admin/model_legacy_atlas_cluster.go
Expand Up @@ -27,6 +27,8 @@ type LegacyAtlasCluster struct {
DiskWarmingMode *string `json:"diskWarmingMode,omitempty"`
// Cloud service provider that manages your customer keys to provide an additional layer of Encryption at Rest for the cluster.
EncryptionAtRestProvider *string `json:"encryptionAtRestProvider,omitempty"`
// Set this field to configure the Sharding Management Mode when creating a new Global Cluster. When set to false, the management mode is set to Atlas-Managed Sharding. This mode fully manages the sharding of your Global Cluster and is built to provide a seamless deployment experience. When set to true, the management mode is set to Self-Managed Sharding. This mode leaves the management of shards in your hands and is built to provide an advanced and flexible deployment experience. This setting cannot be changed once the cluster is deployed.
GlobalClusterSelfManagedSharding *bool `json:"globalClusterSelfManagedSharding,omitempty"`
// Unique 24-hexadecimal character string that identifies the project.
// Read only field.
GroupId *string `json:"groupId,omitempty"`
Expand Down Expand Up @@ -461,6 +463,39 @@ func (o *LegacyAtlasCluster) SetEncryptionAtRestProvider(v string) {
o.EncryptionAtRestProvider = &v
}

// GetGlobalClusterSelfManagedSharding returns the GlobalClusterSelfManagedSharding field value if set, zero value otherwise
func (o *LegacyAtlasCluster) GetGlobalClusterSelfManagedSharding() bool {
if o == nil || IsNil(o.GlobalClusterSelfManagedSharding) {
var ret bool
return ret
}
return *o.GlobalClusterSelfManagedSharding
}

// GetGlobalClusterSelfManagedShardingOk returns a tuple with the GlobalClusterSelfManagedSharding field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasCluster) GetGlobalClusterSelfManagedShardingOk() (*bool, bool) {
if o == nil || IsNil(o.GlobalClusterSelfManagedSharding) {
return nil, false
}

return o.GlobalClusterSelfManagedSharding, true
}

// HasGlobalClusterSelfManagedSharding returns a boolean if a field has been set.
func (o *LegacyAtlasCluster) HasGlobalClusterSelfManagedSharding() bool {
if o != nil && !IsNil(o.GlobalClusterSelfManagedSharding) {
return true
}

return false
}

// SetGlobalClusterSelfManagedSharding gets a reference to the given bool and assigns it to the GlobalClusterSelfManagedSharding field.
func (o *LegacyAtlasCluster) SetGlobalClusterSelfManagedSharding(v bool) {
o.GlobalClusterSelfManagedSharding = &v
}

// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *LegacyAtlasCluster) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
Expand Down Expand Up @@ -1295,6 +1330,9 @@ func (o LegacyAtlasCluster) ToMap() (map[string]interface{}, error) {
if !IsNil(o.EncryptionAtRestProvider) {
toSerialize["encryptionAtRestProvider"] = o.EncryptionAtRestProvider
}
if !IsNil(o.GlobalClusterSelfManagedSharding) {
toSerialize["globalClusterSelfManagedSharding"] = o.GlobalClusterSelfManagedSharding
}
if !IsNil(o.Labels) {
toSerialize["labels"] = o.Labels
}
Expand Down
38 changes: 38 additions & 0 deletions admin/model_legacy_atlas_tenant_cluster_upgrade_request.go
Expand Up @@ -27,6 +27,8 @@ type LegacyAtlasTenantClusterUpgradeRequest struct {
DiskWarmingMode *string `json:"diskWarmingMode,omitempty"`
// Cloud service provider that manages your customer keys to provide an additional layer of Encryption at Rest for the cluster.
EncryptionAtRestProvider *string `json:"encryptionAtRestProvider,omitempty"`
// Set this field to configure the Sharding Management Mode when creating a new Global Cluster. When set to false, the management mode is set to Atlas-Managed Sharding. This mode fully manages the sharding of your Global Cluster and is built to provide a seamless deployment experience. When set to true, the management mode is set to Self-Managed Sharding. This mode leaves the management of shards in your hands and is built to provide an advanced and flexible deployment experience. This setting cannot be changed once the cluster is deployed.
GlobalClusterSelfManagedSharding *bool `json:"globalClusterSelfManagedSharding,omitempty"`
// Unique 24-hexadecimal character string that identifies the project.
// Read only field.
GroupId *string `json:"groupId,omitempty"`
Expand Down Expand Up @@ -462,6 +464,39 @@ func (o *LegacyAtlasTenantClusterUpgradeRequest) SetEncryptionAtRestProvider(v s
o.EncryptionAtRestProvider = &v
}

// GetGlobalClusterSelfManagedSharding returns the GlobalClusterSelfManagedSharding field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetGlobalClusterSelfManagedSharding() bool {
if o == nil || IsNil(o.GlobalClusterSelfManagedSharding) {
var ret bool
return ret
}
return *o.GlobalClusterSelfManagedSharding
}

// GetGlobalClusterSelfManagedShardingOk returns a tuple with the GlobalClusterSelfManagedSharding field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetGlobalClusterSelfManagedShardingOk() (*bool, bool) {
if o == nil || IsNil(o.GlobalClusterSelfManagedSharding) {
return nil, false
}

return o.GlobalClusterSelfManagedSharding, true
}

// HasGlobalClusterSelfManagedSharding returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasGlobalClusterSelfManagedSharding() bool {
if o != nil && !IsNil(o.GlobalClusterSelfManagedSharding) {
return true
}

return false
}

// SetGlobalClusterSelfManagedSharding gets a reference to the given bool and assigns it to the GlobalClusterSelfManagedSharding field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetGlobalClusterSelfManagedSharding(v bool) {
o.GlobalClusterSelfManagedSharding = &v
}

// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
Expand Down Expand Up @@ -1287,6 +1322,9 @@ func (o LegacyAtlasTenantClusterUpgradeRequest) ToMap() (map[string]interface{},
if !IsNil(o.EncryptionAtRestProvider) {
toSerialize["encryptionAtRestProvider"] = o.EncryptionAtRestProvider
}
if !IsNil(o.GlobalClusterSelfManagedSharding) {
toSerialize["globalClusterSelfManagedSharding"] = o.GlobalClusterSelfManagedSharding
}
if !IsNil(o.Labels) {
toSerialize["labels"] = o.Labels
}
Expand Down
25 changes: 25 additions & 0 deletions docs/docs/AdvancedClusterDescription.md
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**DiskSizeGB** | Pointer to **float64** | Storage capacity that the host&#39;s root volume possesses expressed in gigabytes. Increase this number to add capacity. MongoDB Cloud requires this parameter if you set **replicationSpecs**. If you specify a disk size below the minimum (10 GB), this parameter defaults to the minimum disk size value. Storage charge calculations depend on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier. | [optional]
**DiskWarmingMode** | Pointer to **string** | Disk warming mode selection. | [optional] [default to "FULLY_WARMED"]
**EncryptionAtRestProvider** | Pointer to **string** | Cloud service provider that manages your customer keys to provide an additional layer of encryption at rest for the cluster. To enable customer key management for encryption at rest, the cluster **replicationSpecs[n].regionConfigs[m].{type}Specs.instanceSize** setting must be &#x60;M10&#x60; or higher and &#x60;\&quot;backupEnabled\&quot; : false&#x60; or omitted entirely. | [optional]
**GlobalClusterSelfManagedSharding** | Pointer to **bool** | Set this field to configure the Sharding Management Mode when creating a new Global Cluster. When set to false, the management mode is set to Atlas-Managed Sharding. This mode fully manages the sharding of your Global Cluster and is built to provide a seamless deployment experience. When set to true, the management mode is set to Self-Managed Sharding. This mode leaves the management of shards in your hands and is built to provide an advanced and flexible deployment experience. This setting cannot be changed once the cluster is deployed. | [optional]
**GroupId** | Pointer to **string** | Unique 24-hexadecimal character string that identifies the project. | [optional] [readonly]
**Id** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies the replication object for a zone in a Global Cluster. If you include existing zones in the request, you must specify this parameter. If you add a new zone to an existing Global Cluster, you may specify this parameter. The request deletes any existing zones in a Global Cluster that you exclude from the request. | [optional] [readonly]
**Labels** | Pointer to [**[]ComponentLabel**](ComponentLabel.md) | Collection of key-value pairs between 1 to 255 characters in length that tag and categorize the cluster. The MongoDB Cloud console doesn&#39;t display your labels. Cluster labels are deprecated and will be removed in a future release. We strongly recommend that you use [resource tags](https://dochub.mongodb.org/core/add-cluster-tag-atlas) instead. | [optional]
Expand Down Expand Up @@ -264,6 +265,30 @@ SetEncryptionAtRestProvider sets EncryptionAtRestProvider field to given value.
`func (o *AdvancedClusterDescription) HasEncryptionAtRestProvider() bool`

HasEncryptionAtRestProvider returns a boolean if a field has been set.
### GetGlobalClusterSelfManagedSharding

`func (o *AdvancedClusterDescription) GetGlobalClusterSelfManagedSharding() bool`

GetGlobalClusterSelfManagedSharding returns the GlobalClusterSelfManagedSharding field if non-nil, zero value otherwise.

### GetGlobalClusterSelfManagedShardingOk

`func (o *AdvancedClusterDescription) GetGlobalClusterSelfManagedShardingOk() (*bool, bool)`

GetGlobalClusterSelfManagedShardingOk returns a tuple with the GlobalClusterSelfManagedSharding field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGlobalClusterSelfManagedSharding

`func (o *AdvancedClusterDescription) SetGlobalClusterSelfManagedSharding(v bool)`

SetGlobalClusterSelfManagedSharding sets GlobalClusterSelfManagedSharding field to given value.

### HasGlobalClusterSelfManagedSharding

`func (o *AdvancedClusterDescription) HasGlobalClusterSelfManagedSharding() bool`

HasGlobalClusterSelfManagedSharding returns a boolean if a field has been set.
### GetGroupId

`func (o *AdvancedClusterDescription) GetGroupId() string`
Expand Down
25 changes: 25 additions & 0 deletions docs/docs/LegacyAtlasCluster.md
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**DiskSizeGB** | Pointer to **float64** | Storage capacity that the host&#39;s root volume possesses expressed in gigabytes. Increase this number to add capacity. MongoDB Cloud requires this parameter if you set **replicationSpecs**. If you specify a disk size below the minimum (10 GB), this parameter defaults to the minimum disk size value. Storage charge calculations depend on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier. | [optional]
**DiskWarmingMode** | Pointer to **string** | Disk warming mode selection. | [optional] [default to "FULLY_WARMED"]
**EncryptionAtRestProvider** | Pointer to **string** | Cloud service provider that manages your customer keys to provide an additional layer of Encryption at Rest for the cluster. | [optional]
**GlobalClusterSelfManagedSharding** | Pointer to **bool** | Set this field to configure the Sharding Management Mode when creating a new Global Cluster. When set to false, the management mode is set to Atlas-Managed Sharding. This mode fully manages the sharding of your Global Cluster and is built to provide a seamless deployment experience. When set to true, the management mode is set to Self-Managed Sharding. This mode leaves the management of shards in your hands and is built to provide an advanced and flexible deployment experience. This setting cannot be changed once the cluster is deployed. | [optional]
**GroupId** | Pointer to **string** | Unique 24-hexadecimal character string that identifies the project. | [optional] [readonly]
**Id** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies the cluster. | [optional] [readonly]
**Labels** | Pointer to [**[]ComponentLabel**](ComponentLabel.md) | Collection of key-value pairs between 1 to 255 characters in length that tag and categorize the cluster. The MongoDB Cloud console doesn&#39;t display your labels. Cluster labels are deprecated and will be removed in a future release. We strongly recommend that you use [resource tags](https://dochub.mongodb.org/core/add-cluster-tag-atlas) instead. | [optional]
Expand Down Expand Up @@ -298,6 +299,30 @@ SetEncryptionAtRestProvider sets EncryptionAtRestProvider field to given value.
`func (o *LegacyAtlasCluster) HasEncryptionAtRestProvider() bool`

HasEncryptionAtRestProvider returns a boolean if a field has been set.
### GetGlobalClusterSelfManagedSharding

`func (o *LegacyAtlasCluster) GetGlobalClusterSelfManagedSharding() bool`

GetGlobalClusterSelfManagedSharding returns the GlobalClusterSelfManagedSharding field if non-nil, zero value otherwise.

### GetGlobalClusterSelfManagedShardingOk

`func (o *LegacyAtlasCluster) GetGlobalClusterSelfManagedShardingOk() (*bool, bool)`

GetGlobalClusterSelfManagedShardingOk returns a tuple with the GlobalClusterSelfManagedSharding field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetGlobalClusterSelfManagedSharding

`func (o *LegacyAtlasCluster) SetGlobalClusterSelfManagedSharding(v bool)`

SetGlobalClusterSelfManagedSharding sets GlobalClusterSelfManagedSharding field to given value.

### HasGlobalClusterSelfManagedSharding

`func (o *LegacyAtlasCluster) HasGlobalClusterSelfManagedSharding() bool`

HasGlobalClusterSelfManagedSharding returns a boolean if a field has been set.
### GetGroupId

`func (o *LegacyAtlasCluster) GetGroupId() string`
Expand Down

0 comments on commit ecfd1a3

Please sign in to comment.