Skip to content

Commit

Permalink
Add Spot, custom image (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 authored May 13, 2024
1 parent d69f79a commit e85cf73
Show file tree
Hide file tree
Showing 13 changed files with 865 additions and 37 deletions.
3 changes: 2 additions & 1 deletion internal/provider/temboclient/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand All @@ -26,6 +25,7 @@ docs/EnvVar.md
docs/EnvVarRef.md
docs/Environment.md
docs/ErrorResponseSchema.md
docs/Experimental.md
docs/Extension.md
docs/ExtensionInstallLocation.md
docs/ExtensionInstallLocationStatus.md
Expand Down Expand Up @@ -89,6 +89,7 @@ model_env_var.go
model_env_var_ref.go
model_environment.go
model_error_response_schema.go
model_experimental.go
model_extension.go
model_extension_install_location.go
model_extension_install_location_status.go
Expand Down
1 change: 1 addition & 0 deletions internal/provider/temboclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Class | Method | HTTP request | Description
- [EnvVarRef](docs/EnvVarRef.md)
- [Environment](docs/Environment.md)
- [ErrorResponseSchema](docs/ErrorResponseSchema.md)
- [Experimental](docs/Experimental.md)
- [Extension](docs/Extension.md)
- [ExtensionInstallLocation](docs/ExtensionInstallLocation.md)
- [ExtensionInstallLocationStatus](docs/ExtensionInstallLocationStatus.md)
Expand Down
107 changes: 73 additions & 34 deletions internal/provider/temboclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ paths:
storage: 10Gi
replicas: 1
environment: dev
spot: true
schema:
$ref: '#/components/schemas/CreateInstance'
required: true
Expand Down Expand Up @@ -762,6 +763,7 @@ components:
- restapi: ""
replicas: 6
cpu: null
experimental: ""
storage: null
environment: null
extensions:
Expand Down Expand Up @@ -796,6 +798,7 @@ components:
value: value
- name: name
value: value
spot: true
trunk_installs:
- name: name
version: version
Expand All @@ -820,6 +823,10 @@ components:
$ref: '#/components/schemas/Cpu'
environment:
$ref: '#/components/schemas/Environment'
experimental:
allOf:
- $ref: '#/components/schemas/Experimental'
nullable: true
extensions:
items:
$ref: '#/components/schemas/Extension'
Expand Down Expand Up @@ -851,6 +858,9 @@ components:
replicas:
format: int32
type: integer
spot:
nullable: true
type: boolean
stack_type:
$ref: '#/components/schemas/StackType'
storage:
Expand Down Expand Up @@ -902,6 +912,12 @@ components:
required:
- error
type: object
Experimental:
properties:
image:
nullable: true
type: string
type: object
Extension:
description: |-
Extension lets you define a list of extensions to enable on the instance. To enable
Expand Down Expand Up @@ -1086,23 +1102,47 @@ components:
type: string
Instance:
example:
memory: null
created_at: 2000-01-23T04:56:07.000+00:00
storage: null
postgres_version: 0
postgres_configs:
- name: name
value: value
- name: name
value: value
trunk_installs:
- error_message: error_message
installed_to_pods:
- installed_to_pods
- installed_to_pods
name: name
error: true
loading: true
version: version
- error_message: error_message
installed_to_pods:
- installed_to_pods
- installed_to_pods
name: name
error: true
loading: true
version: version
state: null
first_recoverability_time: 2000-01-23T04:56:07.000+00:00
image: image
instance_name: instance_name
memory: null
app_services:
- restapi: ""
- restapi: ""
replicas: 6
cpu: null
created_at: 2000-01-23T04:56:07.000+00:00
organization_name: organization_name
storage: null
runtime_config:
- name: name
value: value
- name: name
value: value
postgres_version: 0
environment: null
extensions:
- name: name
Expand Down Expand Up @@ -1142,33 +1182,12 @@ components:
stack_type: null
connection_info: ""
last_updated_at: 2000-01-23T04:56:07.000+00:00
postgres_configs:
- name: name
value: value
- name: name
value: value
organization_id: organization_id
trunk_installs:
- error_message: error_message
installed_to_pods:
- installed_to_pods
- installed_to_pods
name: name
error: true
loading: true
version: version
- error_message: error_message
installed_to_pods:
- installed_to_pods
- installed_to_pods
name: name
error: true
loading: true
version: version
spot: true
namespace: namespace
ip_allow_list:
- ip_allow_list
- ip_allow_list
state: null
connection_pooler: ""
properties:
app_services:
Expand Down Expand Up @@ -1205,6 +1224,9 @@ components:
format: date-time
nullable: true
type: string
image:
nullable: true
type: string
instance_id:
type: string
instance_name:
Expand All @@ -1219,6 +1241,8 @@ components:
type: string
memory:
$ref: '#/components/schemas/Memory'
namespace:
type: string
organization_id:
type: string
organization_name:
Expand All @@ -1243,6 +1267,9 @@ components:
$ref: '#/components/schemas/PgConfig'
nullable: true
type: array
spot:
nullable: true
type: boolean
stack_type:
$ref: '#/components/schemas/StackType'
state:
Expand All @@ -1260,6 +1287,7 @@ components:
- instance_id
- instance_name
- memory
- namespace
- organization_id
- organization_name
- postgres_version
Expand All @@ -1282,7 +1310,9 @@ components:
- 2Gi
- 4Gi
- 8Gi
- 12Gi
- 16Gi
- 24Gi
- 32Gi
type: string
Middleware:
Expand All @@ -1297,6 +1327,14 @@ components:
- $ref: '#/components/schemas/Middleware_oneOf_2'
PatchInstance:
example:
memory: ""
app_services:
- restapi: ""
- restapi: ""
replicas: ""
cpu: ""
experimental: ""
storage: ""
environment: ""
extensions:
- name: name
Expand Down Expand Up @@ -1324,26 +1362,20 @@ components:
extra_domains_rw:
- extra_domains_rw
- extra_domains_rw
memory: ""
app_services:
- restapi: ""
- restapi: ""
postgres_configs:
- name: name
value: value
- name: name
value: value
replicas: ""
spot: true
trunk_installs:
- name: name
version: version
- name: name
version: version
cpu: ""
ip_allow_list:
- ip_allow_list
- ip_allow_list
storage: ""
connection_pooler: ""
properties:
app_services:
Expand All @@ -1363,6 +1395,10 @@ components:
allOf:
- $ref: '#/components/schemas/Environment'
nullable: true
experimental:
allOf:
- $ref: '#/components/schemas/Experimental'
nullable: true
extensions:
items:
$ref: '#/components/schemas/Extension'
Expand Down Expand Up @@ -1391,6 +1427,9 @@ components:
allOf:
- $ref: '#/components/schemas/Replicas'
nullable: true
spot:
nullable: true
type: boolean
storage:
allOf:
- $ref: '#/components/schemas/Storage'
Expand Down
72 changes: 72 additions & 0 deletions internal/provider/temboclient/docs/CreateInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**ConnectionPooler** | Pointer to [**NullableConnectionPooler**](ConnectionPooler.md) | | [optional]
**Cpu** | [**Cpu**](Cpu.md) | |
**Environment** | [**Environment**](Environment.md) | |
**Experimental** | Pointer to [**NullableExperimental**](Experimental.md) | | [optional]
**Extensions** | Pointer to [**[]Extension**](Extension.md) | | [optional]
**ExtraDomainsRw** | Pointer to **[]string** | | [optional]
**InstanceName** | **string** | |
Expand All @@ -16,6 +17,7 @@ Name | Type | Description | Notes
**PgVersion** | Pointer to **int32** | | [optional]
**PostgresConfigs** | Pointer to [**[]PgConfig**](PgConfig.md) | | [optional]
**Replicas** | Pointer to **int32** | | [optional]
**Spot** | Pointer to **NullableBool** | | [optional]
**StackType** | [**StackType**](StackType.md) | |
**Storage** | [**Storage**](Storage.md) | |
**TrunkInstalls** | Pointer to [**[]TrunkInstall**](TrunkInstall.md) | | [optional]
Expand Down Expand Up @@ -149,6 +151,41 @@ and a boolean to check if the value has been set.
SetEnvironment sets Environment field to given value.


### GetExperimental

`func (o *CreateInstance) GetExperimental() Experimental`

GetExperimental returns the Experimental field if non-nil, zero value otherwise.

### GetExperimentalOk

`func (o *CreateInstance) GetExperimentalOk() (*Experimental, bool)`

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

### SetExperimental

`func (o *CreateInstance) SetExperimental(v Experimental)`

SetExperimental sets Experimental field to given value.

### HasExperimental

`func (o *CreateInstance) HasExperimental() bool`

HasExperimental returns a boolean if a field has been set.

### SetExperimentalNil

`func (o *CreateInstance) SetExperimentalNil(b bool)`

SetExperimentalNil sets the value for Experimental to be an explicit nil

### UnsetExperimental
`func (o *CreateInstance) UnsetExperimental()`

UnsetExperimental ensures that no value is present for Experimental, not even an explicit nil
### GetExtensions

`func (o *CreateInstance) GetExtensions() []Extension`
Expand Down Expand Up @@ -379,6 +416,41 @@ SetReplicas sets Replicas field to given value.

HasReplicas returns a boolean if a field has been set.

### GetSpot

`func (o *CreateInstance) GetSpot() bool`

GetSpot returns the Spot field if non-nil, zero value otherwise.

### GetSpotOk

`func (o *CreateInstance) GetSpotOk() (*bool, bool)`

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

### SetSpot

`func (o *CreateInstance) SetSpot(v bool)`

SetSpot sets Spot field to given value.

### HasSpot

`func (o *CreateInstance) HasSpot() bool`

HasSpot returns a boolean if a field has been set.

### SetSpotNil

`func (o *CreateInstance) SetSpotNil(b bool)`

SetSpotNil sets the value for Spot to be an explicit nil

### UnsetSpot
`func (o *CreateInstance) UnsetSpot()`

UnsetSpot ensures that no value is present for Spot, not even an explicit nil
### GetStackType

`func (o *CreateInstance) GetStackType() StackType`
Expand Down
Loading

0 comments on commit e85cf73

Please sign in to comment.