Skip to content

APIBot: SDK update based on recent changes in Atlas API #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions admin/api_cloud_provider_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type CloudProviderAccessApi interface {
/*
CreateCloudProviderAccessRole Create One Cloud Provider Access Role
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.
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.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@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.
Expand Down Expand Up @@ -297,7 +297,7 @@ func (r CreateCloudProviderAccessRoleApiRequest) Execute() (*CloudProviderAccess
/*
CreateCloudProviderAccessRole Create One Cloud Provider Access Role
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.
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.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@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.
Expand Down
36 changes: 36 additions & 0 deletions admin/model_cloud_provider_access_awsiam_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ type CloudProviderAccessAWSIAMRole struct {
TenantId *string `json:"tenantId,omitempty"`
// Email address for the Google Service Account created by Atlas.
GcpServiceAccountForAtlas *string `json:"gcpServiceAccountForAtlas,omitempty"`
// Provision status of the service account.
// Read only field.
Status *string `json:"status,omitempty"`
}

// NewCloudProviderAccessAWSIAMRole instantiates a new CloudProviderAccessAWSIAMRole object
Expand Down Expand Up @@ -516,3 +519,36 @@ func (o *CloudProviderAccessAWSIAMRole) HasGcpServiceAccountForAtlas() bool {
func (o *CloudProviderAccessAWSIAMRole) SetGcpServiceAccountForAtlas(v string) {
o.GcpServiceAccountForAtlas = &v
}

// GetStatus returns the Status field value if set, zero value otherwise
func (o *CloudProviderAccessAWSIAMRole) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
return ret
}
return *o.Status
}

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

return o.Status, true
}

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

return false
}

// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *CloudProviderAccessAWSIAMRole) SetStatus(v string) {
o.Status = &v
}
36 changes: 36 additions & 0 deletions admin/model_cloud_provider_access_azure_service_principal.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ type CloudProviderAccessAzureServicePrincipal struct {
RoleId *string `json:"roleId,omitempty"`
// Email address for the Google Service Account created by Atlas.
GcpServiceAccountForAtlas *string `json:"gcpServiceAccountForAtlas,omitempty"`
// Provision status of the service account.
// Read only field.
Status *string `json:"status,omitempty"`
}

// NewCloudProviderAccessAzureServicePrincipal instantiates a new CloudProviderAccessAzureServicePrincipal object
Expand Down Expand Up @@ -516,3 +519,36 @@ func (o *CloudProviderAccessAzureServicePrincipal) HasGcpServiceAccountForAtlas(
func (o *CloudProviderAccessAzureServicePrincipal) SetGcpServiceAccountForAtlas(v string) {
o.GcpServiceAccountForAtlas = &v
}

// GetStatus returns the Status field value if set, zero value otherwise
func (o *CloudProviderAccessAzureServicePrincipal) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
return ret
}
return *o.Status
}

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

return o.Status, true
}

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

return false
}

// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *CloudProviderAccessAzureServicePrincipal) SetStatus(v string) {
o.Status = &v
}
Loading