Skip to content

Commit

Permalink
Merge pull request #10 from jarqvi/main
Browse files Browse the repository at this point in the history
update components
  • Loading branch information
jarqvi authored Oct 6, 2023
2 parents 08fe965 + 924f871 commit 35a041f
Show file tree
Hide file tree
Showing 5 changed files with 1,211 additions and 225 deletions.
152 changes: 128 additions & 24 deletions spec/dbaas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ paths:
200:
description: Successful operation
content:
Databaselication/json:
application/json:
schema:
$ref: '#/components/schemas/DB-details'
400:
Expand Down Expand Up @@ -86,7 +86,7 @@ paths:
200:
description: Successful operation
content:
Databaselication/json:
application/json:
schema:
$ref: '#/components/schemas/DBs-details'
400:
Expand All @@ -103,14 +103,20 @@ paths:
operationId: createDatabase
requestBody:
content:
Databaselication/json:
application/json:
schema:
$ref: '#/components/schemas/Create-databases'
required: true
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
type: object
properties:
databaseID:
type: string
400:
description: Bad request
content: {}
Expand All @@ -137,7 +143,7 @@ paths:
requestBody:
description: 1 for power on or 0 for power off
content:
Databaselication/json:
application/json:
schema:
required:
- scale
Expand Down Expand Up @@ -175,7 +181,7 @@ paths:
type: string
requestBody:
content:
Databaselication/json:
application/json:
schema:
required:
- planID
Expand Down Expand Up @@ -216,7 +222,24 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
type: object
properties:
backups:
type: array
items:
type: object
properties:
name:
type: string
lastModified:
type: string
etag:
type: string
size:
type: number
400:
description: Bad request
content: {}
Expand Down Expand Up @@ -274,7 +297,13 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
type: object
properties:
link:
type: string
400:
description: Bad request
content: {}
Expand Down Expand Up @@ -308,7 +337,13 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
type: object
properties:
controlPanelID:
type: string
400:
description: Bad request
content: {}
Expand Down Expand Up @@ -381,7 +416,10 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
$ref: '#/components/schemas/Reports'
400:
description: Bad request
content: {}
Expand Down Expand Up @@ -414,7 +452,10 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
$ref: '#/components/schemas/Reports'
400:
description: Bad request
content: {}
Expand Down Expand Up @@ -447,7 +488,10 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
$ref: '#/components/schemas/Reports'
400:
description: Bad request
content: {}
Expand Down Expand Up @@ -480,7 +524,10 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
$ref: '#/components/schemas/Reports'
400:
description: Bad request
content: {}
Expand All @@ -507,7 +554,40 @@ paths:
responses:
200:
description: Successful operation
content: {}
content:
application/json:
schema:
type: object
properties:
cpuUsage:
type: array
items:
type: object
properties:
value:
type: array
applet:
type: string
memoryUsage:
type: array
items:
type: object
properties:
value:
type: array
applet:
type: string
disksUsage:
type: array
items:
type: object
properties:
size:
type: string
usage:
type: string
reportedAt:
type: string
400:
description: Bad request
content: {}
Expand All @@ -525,6 +605,11 @@ components:
hostname:
type: string
description: The hostname of databases that you want to create
options:
type: object
properties:
standaloneReplicaSet:
type: boolean
publicNetwork:
type: boolean
description: The publicNetwork of databases that you want to create
Expand Down Expand Up @@ -570,19 +655,12 @@ components:
volumeSize:
type: integer
description: The size of the database volume
metaData:
type: object
properties:
standaloneReplicaSet:
type: boolean
description: Indicates if the database uses a standalone replica
set
privateNetwork:
type: boolean
description: Indicates if the database is on a private network
created_at:
type: string
description: The creation timestamp of the database
dbName:
type: string
description: The name of db
node:
type: object
properties:
Expand All @@ -607,9 +685,35 @@ components:
hourlyPrice:
type: number
description: The hourly price of the database
metaData:
type: object
properties:
standaloneReplicaSet:
type: boolean
description: Indicates if the database uses a standalone replica
set
privateNetwork:
type: boolean
description: Indicates if the database is on a private network
username:
type: string
description: The username associated with the database
Reports:
type: object
properties:
end:
type: number
result:
type: array
items:
type: object
properties:
values:
type: array
items:
type: array
applet:
type: string
DBs-details:
type: object
properties:
Expand Down
35 changes: 26 additions & 9 deletions spec/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Zone'
$ref: '#/components/schemas/Create-zone'
400:
description: Bad Request
content: {}
Expand All @@ -83,7 +83,7 @@ paths:
parameters:
- name: zone
in: path
description: The name of the zone to delete
description: The name of the zone
required: true
schema:
type: string
Expand All @@ -93,7 +93,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Zone'
$ref: '#/components/schemas/Create-zone'
401:
description: Missing authentication
content: {}
Expand All @@ -116,7 +116,10 @@ paths:
responses:
200:
description: Your request has been submitted.
content: {}
content:
application/json:
schema:
$ref: '#/components/schemas/Submitted'
204:
description: Zone deleted.
content: {}
Expand Down Expand Up @@ -349,6 +352,8 @@ components:
Zone:
type: object
properties:
id:
type: string
name:
type: string
description: 'The name of the zone, “liara.ir”, max length: 253, pattern:
Expand All @@ -357,11 +362,11 @@ components:
type: string
description: 'The status of the zone, valid values: [CREATING, PENDING,
ACTIVE, DELETING]'
nameServers:
currentNameServers:
type: array
items:
type: string
currentNameServers:
nameServers:
type: array
items:
type: string
Expand All @@ -371,10 +376,22 @@ components:
createdAt:
type: string
description: Time when zone was created
Create-zone:
type: object
properties:
status:
type: string
data:
$ref: '#/components/schemas/Zone'
Zones:
type: array
items:
$ref: '#/components/schemas/Zone'
type: object
properties:
status:
type: string
data:
type: array
items:
$ref: '#/components/schemas/Zone'
Dns-record:
type: object
properties:
Expand Down
Loading

0 comments on commit 35a041f

Please sign in to comment.