Skip to content

Commit

Permalink
Update API spec to reflect updated RegionZone info
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Dec 2, 2024
1 parent a381749 commit 5b4b0f1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
14 changes: 12 additions & 2 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9152,13 +9152,18 @@ const docTemplate = `{
"spider.RegionZoneInfo": {
"type": "object",
"required": [
"CSPDisplayName",
"DisplayName",
"Name"
],
"properties": {
"CSPDisplayName": {
"type": "string",
"example": "US East (N. Virginia)"
},
"DisplayName": {
"type": "string",
"example": "US East"
"example": "United States, Ohio"
},
"KeyValueList": {
"type": "array",
Expand Down Expand Up @@ -9697,14 +9702,19 @@ const docTemplate = `{
"spider.ZoneInfo": {
"type": "object",
"required": [
"CSPDisplayName",
"DisplayName",
"Name",
"Status"
],
"properties": {
"CSPDisplayName": {
"type": "string",
"example": "US East (N. Virginia)"
},
"DisplayName": {
"type": "string",
"example": "US East 1A"
"example": "United States, Ohio"
},
"KeyValueList": {
"type": "array",
Expand Down
14 changes: 12 additions & 2 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9149,13 +9149,18 @@
"spider.RegionZoneInfo": {
"type": "object",
"required": [
"CSPDisplayName",
"DisplayName",
"Name"
],
"properties": {
"CSPDisplayName": {
"type": "string",
"example": "US East (N. Virginia)"
},
"DisplayName": {
"type": "string",
"example": "US East"
"example": "United States, Ohio"
},
"KeyValueList": {
"type": "array",
Expand Down Expand Up @@ -9694,14 +9699,19 @@
"spider.ZoneInfo": {
"type": "object",
"required": [
"CSPDisplayName",
"DisplayName",
"Name",
"Status"
],
"properties": {
"CSPDisplayName": {
"type": "string",
"example": "US East (N. Virginia)"
},
"DisplayName": {
"type": "string",
"example": "US East 1A"
"example": "United States, Ohio"
},
"KeyValueList": {
"type": "array",
Expand Down
12 changes: 10 additions & 2 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,11 @@ definitions:
type: object
spider.RegionZoneInfo:
properties:
CSPDisplayName:
example: US East (N. Virginia)
type: string
DisplayName:
example: US East
example: United States, Ohio
type: string
KeyValueList:
items:
Expand All @@ -837,6 +840,7 @@ definitions:
$ref: '#/definitions/spider.ZoneInfo'
type: array
required:
- CSPDisplayName
- DisplayName
- Name
type: object
Expand Down Expand Up @@ -1203,8 +1207,11 @@ definitions:
type: object
spider.ZoneInfo:
properties:
CSPDisplayName:
example: US East (N. Virginia)
type: string
DisplayName:
example: US East 1A
example: United States, Ohio
type: string
KeyValueList:
items:
Expand All @@ -1218,6 +1225,7 @@ definitions:
- $ref: '#/definitions/spider.ZoneStatus'
example: Available
required:
- CSPDisplayName
- DisplayName
- Name
- Status
Expand Down

0 comments on commit 5b4b0f1

Please sign in to comment.