Skip to content

Commit

Permalink
auto-generated version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ionoscloudsdk committed Dec 12, 2022
1 parent e2fc6a8 commit f0cfec1
Show file tree
Hide file tree
Showing 57 changed files with 307 additions and 158 deletions.
95 changes: 46 additions & 49 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
\ (DCD) and the API use the same concepts consistently and are well suited for\
\ smooth and intuitive use.\n"
title: IONOS DBaaS MongoDB REST API
version: 0.1.0
version: 1.0.0
servers:
- description: Production
url: https://api.ionos.com/databases/mongodb
Expand Down Expand Up @@ -298,7 +298,7 @@ paths:
security:
- basicAuth: []
- tokenAuth: []
summary: Get a Cluster Users
summary: Get all Cluster Users
tags:
- Users
post:
Expand Down Expand Up @@ -354,7 +354,7 @@ paths:
summary: Create MongoDB User
tags:
- Users
/clusters/{clusterId}/users/{database}/{username}:
/clusters/{clusterId}/users/{username}:
delete:
description: Deletes a MongoDB user specified by its ID.
operationId: clustersUsersDelete
Expand All @@ -367,14 +367,6 @@ paths:
schema:
type: string
style: simple
- description: The authentication database.
explode: false
in: path
name: database
required: true
schema:
type: string
style: simple
- description: The authentication username.
explode: false
in: path
Expand Down Expand Up @@ -417,8 +409,7 @@ paths:
tags:
- Users
get:
description: Retrieves the MongoDB user identified by the username and database
parameters.
description: Retrieves the MongoDB user identified by the username.
operationId: clustersUsersFindById
parameters:
- description: The unique ID of the cluster.
Expand All @@ -429,14 +420,6 @@ paths:
schema:
type: string
style: simple
- description: The authentication database.
explode: false
in: path
name: database
required: true
schema:
type: string
style: simple
- description: The authentication username.
explode: false
in: path
Expand Down Expand Up @@ -490,14 +473,6 @@ paths:
schema:
type: string
style: simple
- description: The authentication database.
explode: false
in: path
name: database
required: true
schema:
type: string
style: simple
- description: The authentication username.
explode: false
in: path
Expand Down Expand Up @@ -863,15 +838,6 @@ components:
schema:
type: string
style: simple
DatabasePath:
description: The authentication database.
explode: false
in: path
name: database
required: true
schema:
type: string
style: simple
UsernamePath:
description: The authentication username.
explode: false
Expand Down Expand Up @@ -1004,7 +970,6 @@ components:
$ref: '#/components/schemas/UserRoles'
type: array
required:
- database
- password
- username
User:
Expand Down Expand Up @@ -1079,7 +1044,11 @@ components:
enum:
- read
- readWrite
- dbAdmin
- clusterMonitor
- readAnyDatabase
- readWriteAnyDatabase
- dbAdminAnyDatabase
example: read
type: string
database:
Expand All @@ -1092,7 +1061,7 @@ components:
description: List of snapshots.
type: object
SnapshotResponse:
description: A database snapshost.
description: A database snapshot.
properties:
type:
$ref: '#/components/schemas/ResourceType'
Expand Down Expand Up @@ -1147,6 +1116,7 @@ components:
createdBy: john.doe@example.com
lastModifiedDate: 2020-12-11T13:37:50+01:00
lastModifiedBy: jane.doe@example.com
health: HEALTHY
state: AVAILABLE
lastModifiedByUserId: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3
id: 498ae72f-411f-11eb-9d07-046c59cc737e
Expand Down Expand Up @@ -1230,15 +1200,16 @@ components:
- de/txl
- gb/lhr
- es/vit
- us/ewr
- fr/par
instances:
description: |
The total number of instances in the cluster (one primary and n-1 secondaries).
example: 3
type: integer
x-extensible-enum:
- 1
- 3
- 5
- 7
connections:
items:
$ref: '#/components/schemas/Connection'
Expand Down Expand Up @@ -1337,6 +1308,7 @@ components:
createdBy: john.doe@example.com
lastModifiedDate: 2020-12-11T13:37:50+01:00
lastModifiedBy: jane.doe@example.com
health: HEALTHY
state: AVAILABLE
lastModifiedByUserId: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3
properties:
Expand Down Expand Up @@ -1397,6 +1369,7 @@ components:
createdBy: john.doe@example.com
lastModifiedDate: 2020-12-11T13:37:50+01:00
lastModifiedBy: jane.doe@example.com
health: HEALTHY
state: AVAILABLE
lastModifiedByUserId: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3
properties:
Expand Down Expand Up @@ -1428,8 +1401,16 @@ components:
type: string
state:
$ref: '#/components/schemas/State'
health:
$ref: '#/components/schemas/Health'
State:
description: The current status reported by the cluster.
description: |
The current status reported by the cluster.
* **AVAILABLE** Resources for this cluster exist and are healthy.
* **BUSY** Resources for this cluster are being created or updated.
* **DESTROYING** Delete cluster command was issued, the cluster is being deleted.
* **FAILED** Failed to get the cluster status.
* **UNKNOWN** The state is unknown.
enum:
- AVAILABLE
- BUSY
Expand All @@ -1438,6 +1419,20 @@ components:
- UNKNOWN
example: AVAILABLE
type: string
Health:
description: |
The current health status reported by the cluster.
* **HEALTHY** Primary exists and number of replicas is equal to specified.
* **UNHEALTHY** Primary does not exist or cluster doesn't have majority.
* **DEGRADED** Primary exists and number of replicas is less than specified.
* **UNKNOWN** The health status is unknown.
enum:
- HEALTHY
- UNHEALTHY
- DEGRADED
- UNKNOWN
example: HEALTHY
type: string
CreateClusterProperties:
description: |
The properties with all data needed to create a new MongoDB cluster.
Expand Down Expand Up @@ -1477,9 +1472,8 @@ components:
example: 3
type: integer
x-extensible-enum:
- 1
- 3
- 5
- 7
connections:
items:
$ref: '#/components/schemas/Connection'
Expand All @@ -1496,6 +1490,8 @@ components:
- de/txl
- gb/lhr
- es/vit
- us/ewr
- fr/par
displayName:
description: The name of your cluster.
example: MongoDB cluster
Expand All @@ -1519,6 +1515,7 @@ components:
createdBy: john.doe@example.com
lastModifiedDate: 2020-12-11T13:37:50+01:00
lastModifiedBy: jane.doe@example.com
health: HEALTHY
state: AVAILABLE
lastModifiedByUserId: 87f9a82e-b28d-49ed-9d04-fba2c0459cd3
properties:
Expand Down Expand Up @@ -1568,9 +1565,8 @@ components:
example: 3
type: integer
x-extensible-enum:
- 1
- 3
- 5
- 7
connections:
items:
$ref: '#/components/schemas/Connection'
Expand Down Expand Up @@ -1631,9 +1627,8 @@ components:
example: 3
type: integer
x-extensible-enum:
- 1
- 3
- 5
- 7
Location:
description: |
The physical location where the cluster will be created. This is the location where all your instances will be located. This property is immutable.
Expand All @@ -1644,6 +1639,8 @@ components:
- de/txl
- gb/lhr
- es/vit
- us/ewr
- fr/par
Connection:
description: The network connection details for your cluster.
example:
Expand Down
2 changes: 1 addition & 1 deletion api_clusters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_logs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_metadata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_restores.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_snapshots.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_templates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f0cfec1

Please sign in to comment.