Skip to content

Commit a66e77f

Browse files
authored
Merge pull request #79 from authzed/update-openapi-spec
chore: update OpenAPI spec
2 parents ba8c9b0 + bccc636 commit a66e77f

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

openapi-spec.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ paths:
162162
- deployment
163163
/deployment-templates/{deploymentTemplateID}:
164164
get:
165-
description: list all deployments templates available to an organization
165+
description: get a deployment template available to an organization by its ID
166166
operationId: GetDeploymentTemplate
167167
parameters:
168168
- description: The ID of the Deployment Template
@@ -263,8 +263,8 @@ paths:
263263
- organization
264264
/organizations/{organizationID}:
265265
get:
266-
description: lookup an organization by its ID
267-
operationId: LookupOrganization
266+
description: get an organization by its ID
267+
operationId: GetOrganization
268268
parameters:
269269
- description: The ID of the Organization
270270
in: path
@@ -2319,6 +2319,7 @@ components:
23192319
Capability:
23202320
enum:
23212321
- version_pinning
2322+
- materialize
23222323
type: string
23232324
CloudKind:
23242325
enum:
@@ -2352,6 +2353,7 @@ components:
23522353
deploymentTemplateID:
23532354
description: The ID of the Deployment Template to use for this Deployment
23542355
example: dt-dev
2356+
minLength: 1
23552357
type: string
23562358
name:
23572359
description: The name of the Deployment
@@ -2361,6 +2363,7 @@ components:
23612363
region:
23622364
description: The region where the Deployment will be created
23632365
example: us-west-2
2366+
minLength: 1
23642367
type: string
23652368
replicas:
23662369
description: The number of replicas on this Deployment
@@ -2424,9 +2427,10 @@ components:
24242427
example: rapid
24252428
type: string
24262429
datastoreId:
2427-
description: The ID of the datastore instance to use (from ListDatastores)
2430+
description: The ID of the datastore instance to use (from ListDatastores).
2431+
If empty, a standard CockroachDB cluster will be created.
24282432
example: dbi-qRGmqnr3EUxBZitpC3Moh
2429-
pattern: ^dbi-[a-zA-Z0-9-]+$
2433+
pattern: ^(dbi-[a-zA-Z0-9-]+)?$
24302434
type: string
24312435
deployments:
24322436
description: The deployment configurations for the Permissions System
@@ -2446,7 +2450,6 @@ components:
24462450
required:
24472451
- name
24482452
- systemType
2449-
- datastoreId
24502453
- deployments
24512454
- channel
24522455
type: object
@@ -2866,14 +2869,28 @@ components:
28662869
example: dt-basic-template
28672870
pattern: ^dt-[a-zA-Z0-9-]+$
28682871
type: string
2872+
name:
2873+
description: Optional name for the deployment. If not provided, will be
2874+
auto-generated based on the region.
2875+
example: my-deployment
2876+
maxLength: 64
2877+
minLength: 1
2878+
type: string
28692879
regionID:
28702880
description: The ID of the region where the deployment will be created
28712881
example: rg-us-west-1
28722882
pattern: ^rg-[a-zA-Z0-9-]+$
28732883
type: string
2884+
replicas:
2885+
description: The number of replicas for the deployment
2886+
example: 3
2887+
maximum: 32
2888+
minimum: 1
2889+
type: integer
28742890
required:
28752891
- deploymentTemplateID
28762892
- regionID
2893+
- replicas
28772894
type: object
28782895
DeploymentState:
28792896
properties:

0 commit comments

Comments
 (0)