Skip to content

Commit 769505a

Browse files
APIBot: SDK update based on recent changes in Atlas API (#305)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <[email protected]>
1 parent f3a7da2 commit 769505a

File tree

5 files changed

+43
-14
lines changed

5 files changed

+43
-14
lines changed

admin/model_group.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Group struct {
2525
Name string `json:"name"`
2626
// Unique 24-hexadecimal digit string that identifies the MongoDB Cloud organization to which the project belongs.
2727
OrgId string `json:"orgId"`
28-
// Region usage restrictions that designate the project's AWS region.
28+
// Applies to Atlas for Government only. In Commercial Atlas, this field will be rejected in requests and missing in responses. This field sets restrictions on available regions in the project. | Value | Available Regions | |-----------------------------------|------------| | `COMMERCIAL_FEDRAMP_REGIONS_ONLY` | Only allows deployments in FedRAMP Moderate regions.| | `GOV_REGIONS_ONLY` | Only allows deployments in GovCloud regions.|
2929
RegionUsageRestrictions *string `json:"regionUsageRestrictions,omitempty"`
3030
// List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project.
3131
Tags *[]ResourceTag `json:"tags,omitempty"`
@@ -44,7 +44,7 @@ func NewGroup(clusterCount int64, created time.Time, name string, orgId string)
4444
this.Created = created
4545
this.Name = name
4646
this.OrgId = orgId
47-
var regionUsageRestrictions string = "NONE"
47+
var regionUsageRestrictions string = "COMMERCIAL_FEDRAMP_REGIONS_ONLY"
4848
this.RegionUsageRestrictions = &regionUsageRestrictions
4949
return &this
5050
}
@@ -54,7 +54,7 @@ func NewGroup(clusterCount int64, created time.Time, name string, orgId string)
5454
// but it doesn't guarantee that properties required by API are set
5555
func NewGroupWithDefaults() *Group {
5656
this := Group{}
57-
var regionUsageRestrictions string = "NONE"
57+
var regionUsageRestrictions string = "COMMERCIAL_FEDRAMP_REGIONS_ONLY"
5858
this.RegionUsageRestrictions = &regionUsageRestrictions
5959
return &this
6060
}

docs/docs/Group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**Links** | Pointer to [**[]Link**](Link.md) | List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | [optional] [readonly]
1111
**Name** | **string** | Human-readable label that identifies the project included in the MongoDB Cloud organization. |
1212
**OrgId** | **string** | Unique 24-hexadecimal digit string that identifies the MongoDB Cloud organization to which the project belongs. |
13-
**RegionUsageRestrictions** | Pointer to **string** | Region usage restrictions that designate the project&#39;s AWS region. | [optional] [default to "NONE"]
13+
**RegionUsageRestrictions** | Pointer to **string** | Applies to Atlas for Government only. In Commercial Atlas, this field will be rejected in requests and missing in responses. This field sets restrictions on available regions in the project. | Value | Available Regions | |-----------------------------------|------------| | &#x60;COMMERCIAL_FEDRAMP_REGIONS_ONLY&#x60; | Only allows deployments in FedRAMP Moderate regions.| | &#x60;GOV_REGIONS_ONLY&#x60; | Only allows deployments in GovCloud regions.| | [optional] [default to "COMMERCIAL_FEDRAMP_REGIONS_ONLY"]
1414
**Tags** | Pointer to [**[]ResourceTag**](ResourceTag.md) | List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. | [optional]
1515
**WithDefaultAlertsSettings** | Pointer to **bool** | Flag that indicates whether to create the project with default alert settings. | [optional]
1616

internal/core/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package core
55
// For more information please see: https://github.com/mongodb/atlas-sdk-go/blob/main/docs/doc_1_concepts.md
66
const (
77
// SDK release tag version.
8-
Version = "v20231115008.2.0"
8+
Version = "v20231115008.3.0"
99
// Resource Version.
1010
Resource = "20231115"
1111
)

openapi/atlas-api-transformed.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ info:
2424
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
2525
title: MongoDB Atlas Administration API
2626
version: "2.0"
27-
x-xgen-sha: ca8a36c792879bca90080dbf0e3f096c2a564d77
27+
x-xgen-sha: fc06929ab7673db012eaf62230f78d640401de9e
2828
servers:
2929
- url: https://cloud.mongodb.com
3030
tags:
@@ -23602,8 +23602,26 @@ components:
2360223602
pattern: ^([a-f0-9]{24})$
2360323603
regionUsageRestrictions:
2360423604
type: string
23605-
default: NONE
23606-
description: Region usage restrictions that designate the project's AWS region.
23605+
default: COMMERCIAL_FEDRAMP_REGIONS_ONLY
23606+
description: >-
23607+
Applies to Atlas for Government only.
23608+
23609+
23610+
In Commercial Atlas, this field will be rejected in requests and missing in responses.
23611+
23612+
23613+
This field sets restrictions on available regions in the project.
23614+
23615+
23616+
| Value | Available Regions |
23617+
23618+
|-----------------------------------|------------|
23619+
23620+
| `COMMERCIAL_FEDRAMP_REGIONS_ONLY` | Only allows deployments in FedRAMP Moderate regions.|
23621+
23622+
| `GOV_REGIONS_ONLY` | Only allows deployments in GovCloud regions.|
23623+
externalDocs:
23624+
url: https://www.mongodb.com/docs/atlas/government/overview/supported-regions/#supported-cloud-providers-and-regions
2360723625
tags:
2360823626
type: array
2360923627
description: List that contains key-value pairs between 1 to 255 characters in

openapi/atlas-api.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ info:
1919
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
2020
title: MongoDB Atlas Administration API
2121
version: "2.0"
22-
x-xgen-sha: ca8a36c792879bca90080dbf0e3f096c2a564d77
22+
x-xgen-sha: fc06929ab7673db012eaf62230f78d640401de9e
2323
servers:
2424
- url: https://cloud.mongodb.com
2525
tags:
@@ -18380,6 +18380,7 @@ components:
1838018380
- S40_LOWCPU_NVME
1838118381
- S50_LOWCPU_NVME
1838218382
- S60_LOWCPU_NVME
18383+
- S70_LOWCPU_NVME
1838318384
- S80_LOWCPU_NVME
1838418385
- S90_LOWCPU_NVME
1838518386
- S100_LOWCPU_NVME
@@ -31676,13 +31677,23 @@ components:
3167631677
pattern: "^([a-f0-9]{24})$"
3167731678
regionUsageRestrictions:
3167831679
type: string
31679-
default: NONE
31680-
description: Region usage restrictions that designate the project's AWS
31681-
region.
31680+
default: COMMERCIAL_FEDRAMP_REGIONS_ONLY
31681+
description: |-
31682+
Applies to Atlas for Government only.
31683+
31684+
In Commercial Atlas, this field will be rejected in requests and missing in responses.
31685+
31686+
This field sets restrictions on available regions in the project.
31687+
31688+
| Value | Available Regions |
31689+
|-----------------------------------|------------|
31690+
| `COMMERCIAL_FEDRAMP_REGIONS_ONLY` | Only allows deployments in FedRAMP Moderate regions.|
31691+
| `GOV_REGIONS_ONLY` | Only allows deployments in GovCloud regions.|
3168231692
enum:
31683-
- GOV_REGIONS_ONLY
3168431693
- COMMERCIAL_FEDRAMP_REGIONS_ONLY
31685-
- NONE
31694+
- GOV_REGIONS_ONLY
31695+
externalDocs:
31696+
url: https://www.mongodb.com/docs/atlas/government/overview/supported-regions/#supported-cloud-providers-and-regions
3168631697
tags:
3168731698
type: array
3168831699
description: List that contains key-value pairs between 1 to 255 characters

0 commit comments

Comments
 (0)