Skip to content

Commit

Permalink
chore: update database create api (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap authored Jul 1, 2024
1 parent f62cb37 commit 8db1877
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 47 deletions.
5 changes: 4 additions & 1 deletion aptibleapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5579,6 +5579,8 @@ components:
type: integer
size:
type: integer
provisioned_iops:
type: integer
host:
type: string
x-nullable: true
Expand Down Expand Up @@ -5625,6 +5627,7 @@ components:
- host
- id
- key_bytes
- provisioned_iops
- size
- updated_at
ephemeral_container:
Expand Down Expand Up @@ -7219,8 +7222,8 @@ components:
current_kms_arn:
type: integer
required:
- database_image_id
- handle
- type
type: object
UpdateDatabase_request:
properties:
Expand Down
16 changes: 8 additions & 8 deletions aptibleapi/docs/CreateDatabaseRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Handle** | **string** | |
**Type** | Pointer to **string** | | [optional]
**Type** | **string** | |
**InitialDiskSize** | Pointer to **int32** | | [optional]
**InitialContainerSize** | Pointer to **int32** | | [optional]
**InitializeFrom** | Pointer to **string** | | [optional]
**DatabaseImage** | Pointer to **int32** | Alternate name for `database_image_id` | [optional]
**DatabaseImageId** | **int32** | |
**DatabaseImageId** | Pointer to **int32** | | [optional]
**CurrentKmsArn** | Pointer to **int32** | | [optional]

## Methods

### NewCreateDatabaseRequest

`func NewCreateDatabaseRequest(handle string, databaseImageId int32, ) *CreateDatabaseRequest`
`func NewCreateDatabaseRequest(handle string, type_ string, ) *CreateDatabaseRequest`

NewCreateDatabaseRequest instantiates a new CreateDatabaseRequest object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -71,11 +71,6 @@ and a boolean to check if the value has been set.

SetType sets Type field to given value.

### HasType

`func (o *CreateDatabaseRequest) HasType() bool`

HasType returns a boolean if a field has been set.

### GetInitialDiskSize

Expand Down Expand Up @@ -196,6 +191,11 @@ and a boolean to check if the value has been set.

SetDatabaseImageId sets DatabaseImageId field to given value.

### HasDatabaseImageId

`func (o *CreateDatabaseRequest) HasDatabaseImageId() bool`

HasDatabaseImageId returns a boolean if a field has been set.

### GetCurrentKmsArn

Expand Down
2 changes: 1 addition & 1 deletion aptibleapi/docs/DatabasesAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

func main() {
accountId := int32(56) // int32 | account_id
createDatabaseRequest := *openapiclient.NewCreateDatabaseRequest("Handle_example", int32(123)) // CreateDatabaseRequest | (optional)
createDatabaseRequest := *openapiclient.NewCreateDatabaseRequest("Handle_example", "Type_example") // CreateDatabaseRequest | (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand Down
23 changes: 22 additions & 1 deletion aptibleapi/docs/Disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**Passphrase** | Pointer to **string** | | [optional]
**KeyBytes** | **int32** | |
**Size** | **int32** | |
**ProvisionedIops** | **int32** | |
**Host** | **NullableString** | |
**Device** | **NullableString** | |
**Attached** | **bool** | |
Expand All @@ -28,7 +29,7 @@ Name | Type | Description | Notes

### NewDisk

`func NewDisk(id int32, handle string, ebsVolumeId NullableString, ebsVolumeType NullableString, filesystem string, keyBytes int32, size int32, host NullableString, device NullableString, attached bool, metaType string, createdAt string, updatedAt string, ec2InstanceId NullableString, baselineIops NullableInt32, availabilityZone NullableString, currentKmsArn NullableString, ) *Disk`
`func NewDisk(id int32, handle string, ebsVolumeId NullableString, ebsVolumeType NullableString, filesystem string, keyBytes int32, size int32, provisionedIops int32, host NullableString, device NullableString, attached bool, metaType string, createdAt string, updatedAt string, ec2InstanceId NullableString, baselineIops NullableInt32, availabilityZone NullableString, currentKmsArn NullableString, ) *Disk`

NewDisk instantiates a new Disk object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -228,6 +229,26 @@ and a boolean to check if the value has been set.
SetSize sets Size field to given value.


### GetProvisionedIops

`func (o *Disk) GetProvisionedIops() int32`

GetProvisionedIops returns the ProvisionedIops field if non-nil, zero value otherwise.

### GetProvisionedIopsOk

`func (o *Disk) GetProvisionedIopsOk() (*int32, bool)`

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

### SetProvisionedIops

`func (o *Disk) SetProvisionedIops(v int32)`

SetProvisionedIops sets ProvisionedIops field to given value.


### GetHost

`func (o *Disk) GetHost() string`
Expand Down
70 changes: 35 additions & 35 deletions aptibleapi/model_create_database_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 30 additions & 1 deletion aptibleapi/model_disk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8db1877

Please sign in to comment.