Skip to content

Commit 625dd5b

Browse files
svc-apix-Botgithub-actions[bot]wtrocki
authored
APIBot: SDK update based on recent changes in Atlas API (#477)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <[email protected]>
1 parent c8de2b3 commit 625dd5b

File tree

5 files changed

+89
-3
lines changed

5 files changed

+89
-3
lines changed

admin/model_organization_settings.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ package admin
66
type OrganizationSettings struct {
77
// Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization.
88
ApiAccessListRequired *bool `json:"apiAccessListRequired,omitempty"`
9+
// Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and is enabled by default. Once this setting is turned on, Project Owners may be able to enable or disable individual AI features at the project level.
10+
GenAIFeaturesEnabled *bool `json:"genAIFeaturesEnabled,omitempty"`
911
// Number that represents the maximum period before expiry in hours for new Atlas Admin API Service Account secrets within the specified organization.
1012
MaxServiceAccountSecretValidityInHours *int `json:"maxServiceAccountSecretValidityInHours,omitempty"`
1113
// Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/.
@@ -22,6 +24,8 @@ type OrganizationSettings struct {
2224
// will change when the set of required properties is changed
2325
func NewOrganizationSettings() *OrganizationSettings {
2426
this := OrganizationSettings{}
27+
var genAIFeaturesEnabled bool = true
28+
this.GenAIFeaturesEnabled = &genAIFeaturesEnabled
2529
return &this
2630
}
2731

@@ -30,6 +34,8 @@ func NewOrganizationSettings() *OrganizationSettings {
3034
// but it doesn't guarantee that properties required by API are set
3135
func NewOrganizationSettingsWithDefaults() *OrganizationSettings {
3236
this := OrganizationSettings{}
37+
var genAIFeaturesEnabled bool = true
38+
this.GenAIFeaturesEnabled = &genAIFeaturesEnabled
3339
return &this
3440
}
3541

@@ -66,6 +72,39 @@ func (o *OrganizationSettings) SetApiAccessListRequired(v bool) {
6672
o.ApiAccessListRequired = &v
6773
}
6874

75+
// GetGenAIFeaturesEnabled returns the GenAIFeaturesEnabled field value if set, zero value otherwise
76+
func (o *OrganizationSettings) GetGenAIFeaturesEnabled() bool {
77+
if o == nil || IsNil(o.GenAIFeaturesEnabled) {
78+
var ret bool
79+
return ret
80+
}
81+
return *o.GenAIFeaturesEnabled
82+
}
83+
84+
// GetGenAIFeaturesEnabledOk returns a tuple with the GenAIFeaturesEnabled field value if set, nil otherwise
85+
// and a boolean to check if the value has been set.
86+
func (o *OrganizationSettings) GetGenAIFeaturesEnabledOk() (*bool, bool) {
87+
if o == nil || IsNil(o.GenAIFeaturesEnabled) {
88+
return nil, false
89+
}
90+
91+
return o.GenAIFeaturesEnabled, true
92+
}
93+
94+
// HasGenAIFeaturesEnabled returns a boolean if a field has been set.
95+
func (o *OrganizationSettings) HasGenAIFeaturesEnabled() bool {
96+
if o != nil && !IsNil(o.GenAIFeaturesEnabled) {
97+
return true
98+
}
99+
100+
return false
101+
}
102+
103+
// SetGenAIFeaturesEnabled gets a reference to the given bool and assigns it to the GenAIFeaturesEnabled field.
104+
func (o *OrganizationSettings) SetGenAIFeaturesEnabled(v bool) {
105+
o.GenAIFeaturesEnabled = &v
106+
}
107+
69108
// GetMaxServiceAccountSecretValidityInHours returns the MaxServiceAccountSecretValidityInHours field value if set, zero value otherwise
70109
func (o *OrganizationSettings) GetMaxServiceAccountSecretValidityInHours() int {
71110
if o == nil || IsNil(o.MaxServiceAccountSecretValidityInHours) {

docs/docs/OrganizationSettings.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**ApiAccessListRequired** | Pointer to **bool** | Flag that indicates whether to require API operations to originate from an IP Address added to the API access list for the specified organization. | [optional]
8+
**GenAIFeaturesEnabled** | Pointer to **bool** | Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and is enabled by default. Once this setting is turned on, Project Owners may be able to enable or disable individual AI features at the project level. | [optional] [default to true]
89
**MaxServiceAccountSecretValidityInHours** | Pointer to **int** | Number that represents the maximum period before expiry in hours for new Atlas Admin API Service Account secrets within the specified organization. | [optional]
910
**MultiFactorAuthRequired** | Pointer to **bool** | Flag that indicates whether to require users to set up Multi-Factor Authentication (MFA) before accessing the specified organization. To learn more, see: https://www.mongodb.com/docs/atlas/security-multi-factor-authentication/. | [optional]
1011
**RestrictEmployeeAccess** | Pointer to **bool** | Flag that indicates whether to block MongoDB Support from accessing Atlas infrastructure and cluster logs for any deployment in the specified organization without explicit permission. Once this setting is turned on, you can grant MongoDB Support a 24-hour bypass access to the Atlas deployment to resolve support issues. To learn more, see: https://www.mongodb.com/docs/atlas/security-restrict-support-access/. | [optional]
@@ -53,6 +54,30 @@ SetApiAccessListRequired sets ApiAccessListRequired field to given value.
5354
`func (o *OrganizationSettings) HasApiAccessListRequired() bool`
5455

5556
HasApiAccessListRequired returns a boolean if a field has been set.
57+
### GetGenAIFeaturesEnabled
58+
59+
`func (o *OrganizationSettings) GetGenAIFeaturesEnabled() bool`
60+
61+
GetGenAIFeaturesEnabled returns the GenAIFeaturesEnabled field if non-nil, zero value otherwise.
62+
63+
### GetGenAIFeaturesEnabledOk
64+
65+
`func (o *OrganizationSettings) GetGenAIFeaturesEnabledOk() (*bool, bool)`
66+
67+
GetGenAIFeaturesEnabledOk returns a tuple with the GenAIFeaturesEnabled field if it's non-nil, zero value otherwise
68+
and a boolean to check if the value has been set.
69+
70+
### SetGenAIFeaturesEnabled
71+
72+
`func (o *OrganizationSettings) SetGenAIFeaturesEnabled(v bool)`
73+
74+
SetGenAIFeaturesEnabled sets GenAIFeaturesEnabled field to given value.
75+
76+
### HasGenAIFeaturesEnabled
77+
78+
`func (o *OrganizationSettings) HasGenAIFeaturesEnabled() bool`
79+
80+
HasGenAIFeaturesEnabled returns a boolean if a field has been set.
5681
### GetMaxServiceAccountSecretValidityInHours
5782

5883
`func (o *OrganizationSettings) GetMaxServiceAccountSecretValidityInHours() int`

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 = "v20241023002.0.0"
8+
Version = "v20241023002.1.0"
99
// Resource Version.
1010
Resource = "20241023"
1111
)

openapi/atlas-api-transformed.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ info:
2727
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
2828
title: MongoDB Atlas Administration API
2929
version: "2.0"
30-
x-xgen-sha: 717355e4e2b2ff77eca907c9e2c7e28401a2a901
30+
x-xgen-sha: 08773c7fcc012f959b5c7403f0f37ae45cab24b4
3131
servers:
3232
- url: https://cloud.mongodb.com
3333
security:
@@ -30283,6 +30283,17 @@ components:
3028330283
description: Flag that indicates whether to require API operations to originate
3028430284
from an IP Address added to the API access list for the specified
3028530285
organization.
30286+
genAIFeaturesEnabled:
30287+
type: boolean
30288+
default: true
30289+
description: Flag that indicates whether this organization has access to
30290+
generative AI features. This setting only applies to Atlas
30291+
Commercial and is enabled by default. Once this setting is turned
30292+
on, Project Owners may be able to enable or disable individual AI
30293+
features at the project level.
30294+
externalDocs:
30295+
description: Generative AI FAQs
30296+
url: https://www.mongodb.com/docs/generative-ai-faq/
3028630297
maxServiceAccountSecretValidityInHours:
3028730298
type: integer
3028830299
format: int32

openapi/atlas-api.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ info:
2121
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
2222
title: MongoDB Atlas Administration API
2323
version: "2.0"
24-
x-xgen-sha: 717355e4e2b2ff77eca907c9e2c7e28401a2a901
24+
x-xgen-sha: 08773c7fcc012f959b5c7403f0f37ae45cab24b4
2525
servers:
2626
- url: https://cloud.mongodb.com
2727
security:
@@ -46198,6 +46198,17 @@ components:
4619846198
type: boolean
4619946199
description: Flag that indicates whether to require API operations to originate
4620046200
from an IP Address added to the API access list for the specified organization.
46201+
genAIFeaturesEnabled:
46202+
type: boolean
46203+
default: true
46204+
description: "Flag that indicates whether this organization has access to\
46205+
\ generative AI features. This setting only applies to Atlas Commercial\
46206+
\ and is enabled by default. Once this setting is turned on, Project Owners\
46207+
\ may be able to enable or disable individual AI features at the project\
46208+
\ level."
46209+
externalDocs:
46210+
description: Generative AI FAQs
46211+
url: https://www.mongodb.com/docs/generative-ai-faq/
4620146212
maxServiceAccountSecretValidityInHours:
4620246213
type: integer
4620346214
format: int32

0 commit comments

Comments
 (0)