Skip to content

Commit

Permalink
APIBot: SDK update based on recent changes in Atlas API (#389)
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 <[email protected]>
  • Loading branch information
3 people authored Sep 20, 2024
1 parent 1ea686c commit 1691b70
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
12 changes: 9 additions & 3 deletions admin/model_group_migration_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ import (
// GroupMigrationRequest struct for GroupMigrationRequest
type GroupMigrationRequest struct {
// Unique 24-hexadecimal digit string that identifies the organization to move the specified project to.
// Read only field.
DestinationOrgId *string `json:"destinationOrgId,omitempty"`
// Unique string that identifies the private part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used to verify access to the destination organization. This parameter is required only when you authenticate with Programmatic API Keys.
// Read only field.
DestinationOrgPrivateApiKey *string `json:"destinationOrgPrivateApiKey,omitempty"`
// Unique string that identifies the public part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used to verify access to the destination organization. This parameter is required only when you authenticate with Programmatic API Keys.
// Read only field.
DestinationOrgPublicApiKey *string `json:"destinationOrgPublicApiKey,omitempty"`
}

Expand Down Expand Up @@ -144,5 +141,14 @@ func (o GroupMigrationRequest) MarshalJSONWithoutReadOnly() ([]byte, error) {
}
func (o GroupMigrationRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DestinationOrgId) {
toSerialize["destinationOrgId"] = o.DestinationOrgId
}
if !IsNil(o.DestinationOrgPrivateApiKey) {
toSerialize["destinationOrgPrivateApiKey"] = o.DestinationOrgPrivateApiKey
}
if !IsNil(o.DestinationOrgPublicApiKey) {
toSerialize["destinationOrgPublicApiKey"] = o.DestinationOrgPublicApiKey
}
return toSerialize, nil
}
6 changes: 3 additions & 3 deletions docs/docs/GroupMigrationRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**DestinationOrgId** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies the organization to move the specified project to. | [optional] [readonly]
**DestinationOrgPrivateApiKey** | Pointer to **string** | Unique string that identifies the private part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used to verify access to the destination organization. This parameter is required only when you authenticate with Programmatic API Keys. | [optional] [readonly]
**DestinationOrgPublicApiKey** | Pointer to **string** | Unique string that identifies the public part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used to verify access to the destination organization. This parameter is required only when you authenticate with Programmatic API Keys. | [optional] [readonly]
**DestinationOrgId** | Pointer to **string** | Unique 24-hexadecimal digit string that identifies the organization to move the specified project to. | [optional]
**DestinationOrgPrivateApiKey** | Pointer to **string** | Unique string that identifies the private part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used to verify access to the destination organization. This parameter is required only when you authenticate with Programmatic API Keys. | [optional]
**DestinationOrgPublicApiKey** | Pointer to **string** | Unique string that identifies the public part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used to verify access to the destination organization. This parameter is required only when you authenticate with Programmatic API Keys. | [optional]

## Methods

Expand Down
2 changes: 1 addition & 1 deletion internal/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package core
// For more information please see: https://github.com/mongodb/atlas-sdk-go/blob/main/docs/doc_1_concepts.md
const (
// SDK release tag version.
Version = "v20240805004.1.0"
Version = "v20240805004.2.0"
// Resource Version.
Resource = "20240805"
)
5 changes: 1 addition & 4 deletions openapi/atlas-api-transformed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ info:
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
title: MongoDB Atlas Administration API
version: "2.0"
x-xgen-sha: 97a05475cddda9edbaeb7c0bd992051e03be6275
x-xgen-sha: 98471229986fb14cd35397c5542136ddb94a92b7
servers:
- url: https://cloud.mongodb.com
tags:
Expand Down Expand Up @@ -26823,15 +26823,13 @@ components:
maxLength: 24
minLength: 24
pattern: ^([a-f0-9]{24})$
readOnly: true
destinationOrgPrivateApiKey:
type: string
description: Unique string that identifies the private part of the [API
Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used
to verify access to the destination organization. This parameter is
required only when you authenticate with Programmatic API Keys.
example: 55c3bbb6-b4bb-0be1-e66d20841f3e
readOnly: true
destinationOrgPublicApiKey:
type: string
description: Unique string that identifies the public part of the [API
Expand All @@ -26841,7 +26839,6 @@ components:
example: zmmrboas
maxLength: 8
minLength: 8
readOnly: true
GroupRole:
type: object
properties:
Expand Down
5 changes: 1 addition & 4 deletions openapi/atlas-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ info:
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
title: MongoDB Atlas Administration API
version: "2.0"
x-xgen-sha: 97a05475cddda9edbaeb7c0bd992051e03be6275
x-xgen-sha: 98471229986fb14cd35397c5542136ddb94a92b7
servers:
- url: https://cloud.mongodb.com
tags:
Expand Down Expand Up @@ -37295,15 +37295,13 @@ components:
maxLength: 24
minLength: 24
pattern: "^([a-f0-9]{24})$"
readOnly: true
destinationOrgPrivateApiKey:
type: string
description: "Unique string that identifies the private part of the [API\
\ Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) used\
\ to verify access to the destination organization. This parameter is\
\ required only when you authenticate with Programmatic API Keys."
example: 55c3bbb6-b4bb-0be1-e66d20841f3e
readOnly: true
destinationOrgPublicApiKey:
type: string
description: "Unique string that identifies the public part of the [API\
Expand All @@ -37313,7 +37311,6 @@ components:
example: zmmrboas
maxLength: 8
minLength: 8
readOnly: true
GroupNotification:
type: object
description: Group notification configuration for MongoDB Cloud to send information
Expand Down

0 comments on commit 1691b70

Please sign in to comment.