Skip to content

Commit b5bab27

Browse files
fix: Generated SDK source code and docs
1 parent d6775ad commit b5bab27

15 files changed

+1634
-4
lines changed

admin/api_cloud_provider_access.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type CloudProviderAccessApi interface {
4040
/*
4141
CreateCloudProviderAccessRole Create One Cloud Provider Access Role
4242
43-
Creates one access role for the specified cloud provider. Some MongoDB Cloud features use these cloud provider access roles for authentication. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
43+
Creates one access role for the specified cloud provider. Some MongoDB Cloud features use these cloud provider access roles for authentication. To use this resource, the requesting Service Account or API Key must have the Project Owner role. For the GCP provider, if the project folder is not yet provisioned, Atlas will now create the role asynchronously. An intermediate role with status `IN_PROGRESS` will be returned, and the final service account will be provisioned. Once the GCP project is set up, subsequent requests will create the service account synchronously.
4444
4545
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
4646
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
@@ -297,7 +297,7 @@ func (r CreateCloudProviderAccessRoleApiRequest) Execute() (*CloudProviderAccess
297297
/*
298298
CreateCloudProviderAccessRole Create One Cloud Provider Access Role
299299
300-
Creates one access role for the specified cloud provider. Some MongoDB Cloud features use these cloud provider access roles for authentication. To use this resource, the requesting Service Account or API Key must have the Project Owner role.
300+
Creates one access role for the specified cloud provider. Some MongoDB Cloud features use these cloud provider access roles for authentication. To use this resource, the requesting Service Account or API Key must have the Project Owner role. For the GCP provider, if the project folder is not yet provisioned, Atlas will now create the role asynchronously. An intermediate role with status `IN_PROGRESS` will be returned, and the final service account will be provisioned. Once the GCP project is set up, subsequent requests will create the service account synchronously.
301301
302302
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
303303
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.

admin/model_cloud_provider_access_awsiam_role.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ type CloudProviderAccessAWSIAMRole struct {
4444
TenantId *string `json:"tenantId,omitempty"`
4545
// Email address for the Google Service Account created by Atlas.
4646
GcpServiceAccountForAtlas *string `json:"gcpServiceAccountForAtlas,omitempty"`
47+
// Provision status of the service account.
48+
// Read only field.
49+
Status *string `json:"status,omitempty"`
4750
}
4851

4952
// NewCloudProviderAccessAWSIAMRole instantiates a new CloudProviderAccessAWSIAMRole object
@@ -516,3 +519,36 @@ func (o *CloudProviderAccessAWSIAMRole) HasGcpServiceAccountForAtlas() bool {
516519
func (o *CloudProviderAccessAWSIAMRole) SetGcpServiceAccountForAtlas(v string) {
517520
o.GcpServiceAccountForAtlas = &v
518521
}
522+
523+
// GetStatus returns the Status field value if set, zero value otherwise
524+
func (o *CloudProviderAccessAWSIAMRole) GetStatus() string {
525+
if o == nil || IsNil(o.Status) {
526+
var ret string
527+
return ret
528+
}
529+
return *o.Status
530+
}
531+
532+
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
533+
// and a boolean to check if the value has been set.
534+
func (o *CloudProviderAccessAWSIAMRole) GetStatusOk() (*string, bool) {
535+
if o == nil || IsNil(o.Status) {
536+
return nil, false
537+
}
538+
539+
return o.Status, true
540+
}
541+
542+
// HasStatus returns a boolean if a field has been set.
543+
func (o *CloudProviderAccessAWSIAMRole) HasStatus() bool {
544+
if o != nil && !IsNil(o.Status) {
545+
return true
546+
}
547+
548+
return false
549+
}
550+
551+
// SetStatus gets a reference to the given string and assigns it to the Status field.
552+
func (o *CloudProviderAccessAWSIAMRole) SetStatus(v string) {
553+
o.Status = &v
554+
}

admin/model_cloud_provider_access_azure_service_principal.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ type CloudProviderAccessAzureServicePrincipal struct {
4444
RoleId *string `json:"roleId,omitempty"`
4545
// Email address for the Google Service Account created by Atlas.
4646
GcpServiceAccountForAtlas *string `json:"gcpServiceAccountForAtlas,omitempty"`
47+
// Provision status of the service account.
48+
// Read only field.
49+
Status *string `json:"status,omitempty"`
4750
}
4851

4952
// NewCloudProviderAccessAzureServicePrincipal instantiates a new CloudProviderAccessAzureServicePrincipal object
@@ -516,3 +519,36 @@ func (o *CloudProviderAccessAzureServicePrincipal) HasGcpServiceAccountForAtlas(
516519
func (o *CloudProviderAccessAzureServicePrincipal) SetGcpServiceAccountForAtlas(v string) {
517520
o.GcpServiceAccountForAtlas = &v
518521
}
522+
523+
// GetStatus returns the Status field value if set, zero value otherwise
524+
func (o *CloudProviderAccessAzureServicePrincipal) GetStatus() string {
525+
if o == nil || IsNil(o.Status) {
526+
var ret string
527+
return ret
528+
}
529+
return *o.Status
530+
}
531+
532+
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
533+
// and a boolean to check if the value has been set.
534+
func (o *CloudProviderAccessAzureServicePrincipal) GetStatusOk() (*string, bool) {
535+
if o == nil || IsNil(o.Status) {
536+
return nil, false
537+
}
538+
539+
return o.Status, true
540+
}
541+
542+
// HasStatus returns a boolean if a field has been set.
543+
func (o *CloudProviderAccessAzureServicePrincipal) HasStatus() bool {
544+
if o != nil && !IsNil(o.Status) {
545+
return true
546+
}
547+
548+
return false
549+
}
550+
551+
// SetStatus gets a reference to the given string and assigns it to the Status field.
552+
func (o *CloudProviderAccessAzureServicePrincipal) SetStatus(v string) {
553+
o.Status = &v
554+
}

0 commit comments

Comments
 (0)