Skip to content

Commit

Permalink
feat: regenerate openapi spec with membership fixes (#938)
Browse files Browse the repository at this point in the history
Co-authored-by: David Ragot <[email protected]>
  • Loading branch information
Dav-14 and David Ragot authored Dec 1, 2023
1 parent d18dde6 commit 766bb04
Show file tree
Hide file tree
Showing 22 changed files with 1,191 additions and 1,116 deletions.
94 changes: 51 additions & 43 deletions components/fctl/membership-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,6 @@ components:
- $ref: '#/components/schemas/Region'
- type: object
properties:
clientID:
type: string
organizationID:
type: string
creatorID:
Expand All @@ -699,7 +697,6 @@ components:
required:
- lastDigits
required:
- clientID
- organizationID
- creatorID
PublicRegion:
Expand Down Expand Up @@ -752,6 +749,12 @@ components:
ownerId:
type: string
description: Owner ID
availableStacks:
type: integer
description: Number of available stacks
availableSandboxes:
type: integer
description: Number of available sandboxes
StackData:
type: object
required:
Expand All @@ -765,6 +768,47 @@ components:
type: object
additionalProperties:
type: string
StackLifeCycle:
type: object
required:
- status
- state
- expectedStatus
- lastStateUpdate
- lastExpectedStatusUpdate
- lastStatusUpdate
properties:
status:
type: string
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
state:
type: string
enum:
- ACTIVE
- DISABLED
- DELETED
expectedStatus:
type: string
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
lastStateUpdate:
type: string
format: date-time
lastExpectedStatusUpdate:
type: string
format: date-time
lastStatusUpdate:
type: string
format: date-time
BillingPortal:
type: object
required:
Expand All @@ -784,19 +828,14 @@ components:
Stack:
allOf:
- $ref: '#/components/schemas/StackData'
- $ref: '#/components/schemas/StackLifeCycle'
- type: object
required:
- id
- organizationId
- uri
- regionID
- stargateEnabled
- status
- state
- expectedStatus
- lastStateUpdate
- lastExpectedStatusUpdate
- lastStatusUpdate
properties:
id:
type: string
Expand All @@ -821,37 +860,6 @@ components:
disabledAt:
type: string
format: date-time
status:
type: string
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
state:
type: string
enum:
- ACTIVE
- DISABLED
- DELETED
expectedStatus:
type: string
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
lastStateUpdate:
type: string
format: date-time
lastExpectedStatusUpdate:
type: string
format: date-time
lastStatusUpdate:
type: string
format: date-time
UpdatableUserData:
type: object
properties:
Expand Down Expand Up @@ -966,12 +974,12 @@ components:
Error:
type: object
properties:
error_code:
errorCode:
type: string
error_message:
errorMessage:
type: string
required:
- error_code
- errorCode
Invitation:
type: object
properties:
Expand Down
2 changes: 2 additions & 0 deletions components/fctl/membershipclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ docs/ServerInfo.md
docs/Stack.md
docs/StackAllOf.md
docs/StackData.md
docs/StackLifeCycle.md
docs/UpdatableUserData.md
docs/UpdateUserResponse.md
docs/User.md
Expand Down Expand Up @@ -91,6 +92,7 @@ model_server_info.go
model_stack.go
model_stack_all_of.go
model_stack_data.go
model_stack_life_cycle.go
model_updatable_user_data.go
model_update_user_response.go
model_user.go
Expand Down
1 change: 1 addition & 0 deletions components/fctl/membershipclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Class | Method | HTTP request | Description
- [Stack](docs/Stack.md)
- [StackAllOf](docs/StackAllOf.md)
- [StackData](docs/StackData.md)
- [StackLifeCycle](docs/StackLifeCycle.md)
- [UpdatableUserData](docs/UpdatableUserData.md)
- [UpdateUserResponse](docs/UpdateUserResponse.md)
- [User](docs/User.md)
Expand Down
94 changes: 51 additions & 43 deletions components/fctl/membershipclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,47 @@ components:
- metadata
- name
type: object
StackLifeCycle:
properties:
status:
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
type: string
state:
enum:
- ACTIVE
- DISABLED
- DELETED
type: string
expectedStatus:
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
type: string
lastStateUpdate:
format: date-time
type: string
lastExpectedStatusUpdate:
format: date-time
type: string
lastStatusUpdate:
format: date-time
type: string
required:
- expectedStatus
- lastExpectedStatusUpdate
- lastStateUpdate
- lastStatusUpdate
- state
- status
type: object
BillingPortal:
example:
url: url
Expand All @@ -856,6 +897,7 @@ components:
Stack:
allOf:
- $ref: '#/components/schemas/StackData'
- $ref: '#/components/schemas/StackLifeCycle'
- $ref: '#/components/schemas/Stack_allOf'
UpdatableUserData:
example:
Expand Down Expand Up @@ -1003,12 +1045,12 @@ components:
type: object
Error:
properties:
error_code:
errorCode:
type: string
error_message:
errorMessage:
type: string
required:
- error_code
- errorCode
type: object
Invitation:
example:
Expand Down Expand Up @@ -1132,16 +1174,13 @@ components:
example: null
PrivateRegion_allOf:
properties:
clientID:
type: string
organizationID:
type: string
creatorID:
type: string
secret:
$ref: '#/components/schemas/PrivateRegion_allOf_secret'
required:
- clientID
- creatorID
- organizationID
type: object
Expand Down Expand Up @@ -1180,6 +1219,12 @@ components:
ownerId:
description: Owner ID
type: string
availableStacks:
description: Number of available stacks
type: integer
availableSandboxes:
description: Number of available sandboxes
type: integer
required:
- id
- ownerId
Expand Down Expand Up @@ -1210,48 +1255,11 @@ components:
disabledAt:
format: date-time
type: string
status:
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
type: string
state:
enum:
- ACTIVE
- DISABLED
- DELETED
type: string
expectedStatus:
enum:
- UNKNOWN
- PROGRESSING
- READY
- DISABLED
- DELETED
type: string
lastStateUpdate:
format: date-time
type: string
lastExpectedStatusUpdate:
format: date-time
type: string
lastStatusUpdate:
format: date-time
type: string
required:
- expectedStatus
- id
- lastExpectedStatusUpdate
- lastStateUpdate
- lastStatusUpdate
- organizationId
- regionID
- stargateEnabled
- state
- status
- uri
type: object
example: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Name | Type | Description | Notes
**Name** | **string** | Organization name |
**Id** | **string** | Organization ID |
**OwnerId** | **string** | Owner ID |
**AvailableStacks** | Pointer to **int32** | Number of available stacks | [optional]
**AvailableSandboxes** | Pointer to **int32** | Number of available sandboxes | [optional]
**TotalStacks** | Pointer to **int32** | | [optional]
**TotalUsers** | Pointer to **int32** | | [optional]
**Owner** | Pointer to [**User**](User.md) | | [optional]
Expand Down Expand Up @@ -90,6 +92,56 @@ and a boolean to check if the value has been set.
SetOwnerId sets OwnerId field to given value.


### GetAvailableStacks

`func (o *ListOrganizationExpandedResponseDataInner) GetAvailableStacks() int32`

GetAvailableStacks returns the AvailableStacks field if non-nil, zero value otherwise.

### GetAvailableStacksOk

`func (o *ListOrganizationExpandedResponseDataInner) GetAvailableStacksOk() (*int32, bool)`

GetAvailableStacksOk returns a tuple with the AvailableStacks field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAvailableStacks

`func (o *ListOrganizationExpandedResponseDataInner) SetAvailableStacks(v int32)`

SetAvailableStacks sets AvailableStacks field to given value.

### HasAvailableStacks

`func (o *ListOrganizationExpandedResponseDataInner) HasAvailableStacks() bool`

HasAvailableStacks returns a boolean if a field has been set.

### GetAvailableSandboxes

`func (o *ListOrganizationExpandedResponseDataInner) GetAvailableSandboxes() int32`

GetAvailableSandboxes returns the AvailableSandboxes field if non-nil, zero value otherwise.

### GetAvailableSandboxesOk

`func (o *ListOrganizationExpandedResponseDataInner) GetAvailableSandboxesOk() (*int32, bool)`

GetAvailableSandboxesOk returns a tuple with the AvailableSandboxes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetAvailableSandboxes

`func (o *ListOrganizationExpandedResponseDataInner) SetAvailableSandboxes(v int32)`

SetAvailableSandboxes sets AvailableSandboxes field to given value.

### HasAvailableSandboxes

`func (o *ListOrganizationExpandedResponseDataInner) HasAvailableSandboxes() bool`

HasAvailableSandboxes returns a boolean if a field has been set.

### GetTotalStacks

`func (o *ListOrganizationExpandedResponseDataInner) GetTotalStacks() int32`
Expand Down
Loading

1 comment on commit 766bb04

@vercel
Copy link

@vercel vercel bot commented on 766bb04 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.