diff --git a/api/v1/koyeb/.openapi-generator/FILES b/api/v1/koyeb/.openapi-generator/FILES index 55c323c..68f841a 100644 --- a/api/v1/koyeb/.openapi-generator/FILES +++ b/api/v1/koyeb/.openapi-generator/FILES @@ -168,7 +168,7 @@ docs/ExecCommandReply.md docs/ExecCommandRequestBody.md docs/ExecCommandRequestIdType.md docs/ExecCommandRequestTerminalSize.md -docs/FileMount.md +docs/File.md docs/GCPContainerRegistryConfiguration.md docs/GetAppReply.md docs/GetCatalogInstanceReply.md @@ -521,7 +521,7 @@ model_exec_command_reply.go model_exec_command_request_body.go model_exec_command_request_id_type.go model_exec_command_request_terminal_size.go -model_file_mount.go +model_file.go model_gcp_container_registry_configuration.go model_get_app_reply.go model_get_catalog_instance_reply.go diff --git a/api/v1/koyeb/README.md b/api/v1/koyeb/README.md index 4ecc92b..a14f4c7 100644 --- a/api/v1/koyeb/README.md +++ b/api/v1/koyeb/README.md @@ -336,7 +336,7 @@ Class | Method | HTTP request | Description - [ExecCommandRequestBody](docs/ExecCommandRequestBody.md) - [ExecCommandRequestIdType](docs/ExecCommandRequestIdType.md) - [ExecCommandRequestTerminalSize](docs/ExecCommandRequestTerminalSize.md) - - [FileMount](docs/FileMount.md) + - [File](docs/File.md) - [GCPContainerRegistryConfiguration](docs/GCPContainerRegistryConfiguration.md) - [GetAppReply](docs/GetAppReply.md) - [GetCatalogInstanceReply](docs/GetCatalogInstanceReply.md) diff --git a/api/v1/koyeb/api/openapi.yaml b/api/v1/koyeb/api/openapi.yaml index 696ae15..0819f0d 100644 --- a/api/v1/koyeb/api/openapi.yaml +++ b/api/v1/koyeb/api/openapi.yaml @@ -13913,13 +13913,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -14108,6 +14101,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null properties: @@ -14160,13 +14160,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -14355,6 +14348,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null app_id: app_id @@ -14634,13 +14634,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -14829,6 +14822,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null id: id @@ -14992,13 +14992,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -15187,6 +15180,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null properties: @@ -15228,9 +15228,9 @@ components: items: $ref: '#/components/schemas/DeploymentVolume' type: array - file_mounts: + files: items: - $ref: '#/components/schemas/FileMount' + $ref: '#/components/schemas/File' type: array skip_cache: type: boolean @@ -16044,7 +16044,7 @@ components: title: A flag to run the container in privileged mode type: boolean type: object - FileMount: + File: example: path: path permissions: permissions @@ -16054,10 +16054,7 @@ components: title: the path where the file is mounted to type: string permissions: - description: |- - interpolation_enabled is a flag to enable/disable interpolation in the file content - bool interpolation_enabled = 3; - title: the content of the file + title: the permissions of the file in format 0644 type: string content: title: the content of the file @@ -16614,13 +16611,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -16809,6 +16799,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null id: id @@ -17228,13 +17225,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -17423,6 +17413,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null skip_build: true @@ -18708,13 +18705,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -18903,6 +18893,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null id: id @@ -19172,13 +19169,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -19367,6 +19357,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null id: id @@ -19629,13 +19626,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -19824,6 +19814,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null id: id @@ -20037,13 +20034,6 @@ components: - scopes - scopes skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -20232,6 +20222,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null id: id @@ -20483,13 +20480,6 @@ components: replica_index: 5 id: id skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -20593,6 +20583,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null region: region @@ -20698,13 +20695,6 @@ components: replica_index: 5 id: id skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -20808,6 +20798,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null region: region @@ -20859,13 +20856,6 @@ components: replica_index: 5 id: id skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -20969,6 +20959,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null region: region @@ -21196,13 +21193,6 @@ components: replica_index: 5 id: id skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -21306,6 +21296,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null region: region @@ -21447,13 +21444,6 @@ components: replica_index: 5 id: id skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -21557,6 +21547,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null region: region @@ -21596,9 +21593,9 @@ components: items: $ref: '#/components/schemas/RegionalDeploymentVolume' type: array - file_mounts: + files: items: - $ref: '#/components/schemas/FileMount' + $ref: '#/components/schemas/File' type: array skip_cache: type: boolean @@ -21689,13 +21686,6 @@ components: replica_index: 5 id: id skip_cache: true - file_mounts: - - path: path - permissions: permissions - content: content - - path: path - permissions: permissions - content: content archive: id: id buildpack: @@ -21799,6 +21789,13 @@ components: grace_period: 7 timeout: 1 name: name + files: + - path: path + permissions: permissions + content: content + - path: path + permissions: permissions + content: content strategy: type: null region: region diff --git a/api/v1/koyeb/docs/DeploymentDefinition.md b/api/v1/koyeb/docs/DeploymentDefinition.md index f29140d..85c443b 100644 --- a/api/v1/koyeb/docs/DeploymentDefinition.md +++ b/api/v1/koyeb/docs/DeploymentDefinition.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **InstanceTypes** | Pointer to [**[]DeploymentInstanceType**](DeploymentInstanceType.md) | | [optional] **HealthChecks** | Pointer to [**[]DeploymentHealthCheck**](DeploymentHealthCheck.md) | | [optional] **Volumes** | Pointer to [**[]DeploymentVolume**](DeploymentVolume.md) | | [optional] -**FileMounts** | Pointer to [**[]FileMount**](FileMount.md) | | [optional] +**Files** | Pointer to [**[]File**](File.md) | | [optional] **SkipCache** | Pointer to **bool** | | [optional] **Docker** | Pointer to [**DockerSource**](DockerSource.md) | | [optional] **Git** | Pointer to [**GitSource**](GitSource.md) | | [optional] @@ -316,30 +316,30 @@ SetVolumes sets Volumes field to given value. HasVolumes returns a boolean if a field has been set. -### GetFileMounts +### GetFiles -`func (o *DeploymentDefinition) GetFileMounts() []FileMount` +`func (o *DeploymentDefinition) GetFiles() []File` -GetFileMounts returns the FileMounts field if non-nil, zero value otherwise. +GetFiles returns the Files field if non-nil, zero value otherwise. -### GetFileMountsOk +### GetFilesOk -`func (o *DeploymentDefinition) GetFileMountsOk() (*[]FileMount, bool)` +`func (o *DeploymentDefinition) GetFilesOk() (*[]File, bool)` -GetFileMountsOk returns a tuple with the FileMounts field if it's non-nil, zero value otherwise +GetFilesOk returns a tuple with the Files field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFileMounts +### SetFiles -`func (o *DeploymentDefinition) SetFileMounts(v []FileMount)` +`func (o *DeploymentDefinition) SetFiles(v []File)` -SetFileMounts sets FileMounts field to given value. +SetFiles sets Files field to given value. -### HasFileMounts +### HasFiles -`func (o *DeploymentDefinition) HasFileMounts() bool` +`func (o *DeploymentDefinition) HasFiles() bool` -HasFileMounts returns a boolean if a field has been set. +HasFiles returns a boolean if a field has been set. ### GetSkipCache diff --git a/api/v1/koyeb/docs/FileMount.md b/api/v1/koyeb/docs/File.md similarity index 66% rename from api/v1/koyeb/docs/FileMount.md rename to api/v1/koyeb/docs/File.md index a8647ad..1b53f4d 100644 --- a/api/v1/koyeb/docs/FileMount.md +++ b/api/v1/koyeb/docs/File.md @@ -1,104 +1,104 @@ -# FileMount +# File ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Path** | Pointer to **string** | | [optional] -**Permissions** | Pointer to **string** | interpolation_enabled is a flag to enable/disable interpolation in the file content bool interpolation_enabled = 3; | [optional] +**Permissions** | Pointer to **string** | | [optional] **Content** | Pointer to **string** | | [optional] ## Methods -### NewFileMount +### NewFile -`func NewFileMount() *FileMount` +`func NewFile() *File` -NewFileMount instantiates a new FileMount object +NewFile instantiates a new File object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewFileMountWithDefaults +### NewFileWithDefaults -`func NewFileMountWithDefaults() *FileMount` +`func NewFileWithDefaults() *File` -NewFileMountWithDefaults instantiates a new FileMount object +NewFileWithDefaults instantiates a new File object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetPath -`func (o *FileMount) GetPath() string` +`func (o *File) GetPath() string` GetPath returns the Path field if non-nil, zero value otherwise. ### GetPathOk -`func (o *FileMount) GetPathOk() (*string, bool)` +`func (o *File) GetPathOk() (*string, bool)` GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPath -`func (o *FileMount) SetPath(v string)` +`func (o *File) SetPath(v string)` SetPath sets Path field to given value. ### HasPath -`func (o *FileMount) HasPath() bool` +`func (o *File) HasPath() bool` HasPath returns a boolean if a field has been set. ### GetPermissions -`func (o *FileMount) GetPermissions() string` +`func (o *File) GetPermissions() string` GetPermissions returns the Permissions field if non-nil, zero value otherwise. ### GetPermissionsOk -`func (o *FileMount) GetPermissionsOk() (*string, bool)` +`func (o *File) GetPermissionsOk() (*string, bool)` GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPermissions -`func (o *FileMount) SetPermissions(v string)` +`func (o *File) SetPermissions(v string)` SetPermissions sets Permissions field to given value. ### HasPermissions -`func (o *FileMount) HasPermissions() bool` +`func (o *File) HasPermissions() bool` HasPermissions returns a boolean if a field has been set. ### GetContent -`func (o *FileMount) GetContent() string` +`func (o *File) GetContent() string` GetContent returns the Content field if non-nil, zero value otherwise. ### GetContentOk -`func (o *FileMount) GetContentOk() (*string, bool)` +`func (o *File) GetContentOk() (*string, bool)` GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContent -`func (o *FileMount) SetContent(v string)` +`func (o *File) SetContent(v string)` SetContent sets Content field to given value. ### HasContent -`func (o *FileMount) HasContent() bool` +`func (o *File) HasContent() bool` HasContent returns a boolean if a field has been set. diff --git a/api/v1/koyeb/docs/RegionalDeploymentDefinition.md b/api/v1/koyeb/docs/RegionalDeploymentDefinition.md index af9ce3a..2a0683e 100644 --- a/api/v1/koyeb/docs/RegionalDeploymentDefinition.md +++ b/api/v1/koyeb/docs/RegionalDeploymentDefinition.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **DeploymentGroup** | Pointer to **string** | | [optional] **HealthChecks** | Pointer to [**[]DeploymentHealthCheck**](DeploymentHealthCheck.md) | | [optional] **Volumes** | Pointer to [**[]RegionalDeploymentVolume**](RegionalDeploymentVolume.md) | | [optional] -**FileMounts** | Pointer to [**[]FileMount**](FileMount.md) | | [optional] +**Files** | Pointer to [**[]File**](File.md) | | [optional] **SkipCache** | Pointer to **bool** | | [optional] **Docker** | Pointer to [**DockerSource**](DockerSource.md) | | [optional] **Git** | Pointer to [**GitSource**](GitSource.md) | | [optional] @@ -341,30 +341,30 @@ SetVolumes sets Volumes field to given value. HasVolumes returns a boolean if a field has been set. -### GetFileMounts +### GetFiles -`func (o *RegionalDeploymentDefinition) GetFileMounts() []FileMount` +`func (o *RegionalDeploymentDefinition) GetFiles() []File` -GetFileMounts returns the FileMounts field if non-nil, zero value otherwise. +GetFiles returns the Files field if non-nil, zero value otherwise. -### GetFileMountsOk +### GetFilesOk -`func (o *RegionalDeploymentDefinition) GetFileMountsOk() (*[]FileMount, bool)` +`func (o *RegionalDeploymentDefinition) GetFilesOk() (*[]File, bool)` -GetFileMountsOk returns a tuple with the FileMounts field if it's non-nil, zero value otherwise +GetFilesOk returns a tuple with the Files field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFileMounts +### SetFiles -`func (o *RegionalDeploymentDefinition) SetFileMounts(v []FileMount)` +`func (o *RegionalDeploymentDefinition) SetFiles(v []File)` -SetFileMounts sets FileMounts field to given value. +SetFiles sets Files field to given value. -### HasFileMounts +### HasFiles -`func (o *RegionalDeploymentDefinition) HasFileMounts() bool` +`func (o *RegionalDeploymentDefinition) HasFiles() bool` -HasFileMounts returns a boolean if a field has been set. +HasFiles returns a boolean if a field has been set. ### GetSkipCache diff --git a/api/v1/koyeb/model_deployment_definition.go b/api/v1/koyeb/model_deployment_definition.go index 48f3e58..7022bf3 100644 --- a/api/v1/koyeb/model_deployment_definition.go +++ b/api/v1/koyeb/model_deployment_definition.go @@ -27,7 +27,7 @@ type DeploymentDefinition struct { InstanceTypes []DeploymentInstanceType `json:"instance_types,omitempty"` HealthChecks []DeploymentHealthCheck `json:"health_checks,omitempty"` Volumes []DeploymentVolume `json:"volumes,omitempty"` - FileMounts []FileMount `json:"file_mounts,omitempty"` + Files []File `json:"files,omitempty"` SkipCache *bool `json:"skip_cache,omitempty"` Docker *DockerSource `json:"docker,omitempty"` Git *GitSource `json:"git,omitempty"` @@ -408,36 +408,36 @@ func (o *DeploymentDefinition) SetVolumes(v []DeploymentVolume) { o.Volumes = v } -// GetFileMounts returns the FileMounts field value if set, zero value otherwise. -func (o *DeploymentDefinition) GetFileMounts() []FileMount { - if o == nil || isNil(o.FileMounts) { - var ret []FileMount +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *DeploymentDefinition) GetFiles() []File { + if o == nil || isNil(o.Files) { + var ret []File return ret } - return o.FileMounts + return o.Files } -// GetFileMountsOk returns a tuple with the FileMounts field value if set, nil otherwise +// GetFilesOk returns a tuple with the Files field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DeploymentDefinition) GetFileMountsOk() ([]FileMount, bool) { - if o == nil || isNil(o.FileMounts) { +func (o *DeploymentDefinition) GetFilesOk() ([]File, bool) { + if o == nil || isNil(o.Files) { return nil, false } - return o.FileMounts, true + return o.Files, true } -// HasFileMounts returns a boolean if a field has been set. -func (o *DeploymentDefinition) HasFileMounts() bool { - if o != nil && !isNil(o.FileMounts) { +// HasFiles returns a boolean if a field has been set. +func (o *DeploymentDefinition) HasFiles() bool { + if o != nil && !isNil(o.Files) { return true } return false } -// SetFileMounts gets a reference to the given []FileMount and assigns it to the FileMounts field. -func (o *DeploymentDefinition) SetFileMounts(v []FileMount) { - o.FileMounts = v +// SetFiles gets a reference to the given []File and assigns it to the Files field. +func (o *DeploymentDefinition) SetFiles(v []File) { + o.Files = v } // GetSkipCache returns the SkipCache field value if set, zero value otherwise. @@ -635,8 +635,8 @@ func (o DeploymentDefinition) MarshalJSON() ([]byte, error) { if !isNil(o.Volumes) { toSerialize["volumes"] = o.Volumes } - if !isNil(o.FileMounts) { - toSerialize["file_mounts"] = o.FileMounts + if !isNil(o.Files) { + toSerialize["files"] = o.Files } if !isNil(o.SkipCache) { toSerialize["skip_cache"] = o.SkipCache diff --git a/api/v1/koyeb/model_file_mount.go b/api/v1/koyeb/model_file.go similarity index 68% rename from api/v1/koyeb/model_file_mount.go rename to api/v1/koyeb/model_file.go index 0512646..e3422f0 100644 --- a/api/v1/koyeb/model_file_mount.go +++ b/api/v1/koyeb/model_file.go @@ -14,33 +14,32 @@ import ( "encoding/json" ) -// FileMount struct for FileMount -type FileMount struct { +// File struct for File +type File struct { Path *string `json:"path,omitempty"` - // interpolation_enabled is a flag to enable/disable interpolation in the file content bool interpolation_enabled = 3; Permissions *string `json:"permissions,omitempty"` Content *string `json:"content,omitempty"` } -// NewFileMount instantiates a new FileMount object +// NewFile instantiates a new File object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewFileMount() *FileMount { - this := FileMount{} +func NewFile() *File { + this := File{} return &this } -// NewFileMountWithDefaults instantiates a new FileMount object +// NewFileWithDefaults instantiates a new File object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewFileMountWithDefaults() *FileMount { - this := FileMount{} +func NewFileWithDefaults() *File { + this := File{} return &this } // GetPath returns the Path field value if set, zero value otherwise. -func (o *FileMount) GetPath() string { +func (o *File) GetPath() string { if o == nil || isNil(o.Path) { var ret string return ret @@ -50,7 +49,7 @@ func (o *FileMount) GetPath() string { // GetPathOk returns a tuple with the Path field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FileMount) GetPathOk() (*string, bool) { +func (o *File) GetPathOk() (*string, bool) { if o == nil || isNil(o.Path) { return nil, false } @@ -58,7 +57,7 @@ func (o *FileMount) GetPathOk() (*string, bool) { } // HasPath returns a boolean if a field has been set. -func (o *FileMount) HasPath() bool { +func (o *File) HasPath() bool { if o != nil && !isNil(o.Path) { return true } @@ -67,12 +66,12 @@ func (o *FileMount) HasPath() bool { } // SetPath gets a reference to the given string and assigns it to the Path field. -func (o *FileMount) SetPath(v string) { +func (o *File) SetPath(v string) { o.Path = &v } // GetPermissions returns the Permissions field value if set, zero value otherwise. -func (o *FileMount) GetPermissions() string { +func (o *File) GetPermissions() string { if o == nil || isNil(o.Permissions) { var ret string return ret @@ -82,7 +81,7 @@ func (o *FileMount) GetPermissions() string { // GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FileMount) GetPermissionsOk() (*string, bool) { +func (o *File) GetPermissionsOk() (*string, bool) { if o == nil || isNil(o.Permissions) { return nil, false } @@ -90,7 +89,7 @@ func (o *FileMount) GetPermissionsOk() (*string, bool) { } // HasPermissions returns a boolean if a field has been set. -func (o *FileMount) HasPermissions() bool { +func (o *File) HasPermissions() bool { if o != nil && !isNil(o.Permissions) { return true } @@ -99,12 +98,12 @@ func (o *FileMount) HasPermissions() bool { } // SetPermissions gets a reference to the given string and assigns it to the Permissions field. -func (o *FileMount) SetPermissions(v string) { +func (o *File) SetPermissions(v string) { o.Permissions = &v } // GetContent returns the Content field value if set, zero value otherwise. -func (o *FileMount) GetContent() string { +func (o *File) GetContent() string { if o == nil || isNil(o.Content) { var ret string return ret @@ -114,7 +113,7 @@ func (o *FileMount) GetContent() string { // GetContentOk returns a tuple with the Content field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FileMount) GetContentOk() (*string, bool) { +func (o *File) GetContentOk() (*string, bool) { if o == nil || isNil(o.Content) { return nil, false } @@ -122,7 +121,7 @@ func (o *FileMount) GetContentOk() (*string, bool) { } // HasContent returns a boolean if a field has been set. -func (o *FileMount) HasContent() bool { +func (o *File) HasContent() bool { if o != nil && !isNil(o.Content) { return true } @@ -131,11 +130,11 @@ func (o *FileMount) HasContent() bool { } // SetContent gets a reference to the given string and assigns it to the Content field. -func (o *FileMount) SetContent(v string) { +func (o *File) SetContent(v string) { o.Content = &v } -func (o FileMount) MarshalJSON() ([]byte, error) { +func (o File) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.Path) { toSerialize["path"] = o.Path @@ -149,38 +148,38 @@ func (o FileMount) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableFileMount struct { - value *FileMount +type NullableFile struct { + value *File isSet bool } -func (v NullableFileMount) Get() *FileMount { +func (v NullableFile) Get() *File { return v.value } -func (v *NullableFileMount) Set(val *FileMount) { +func (v *NullableFile) Set(val *File) { v.value = val v.isSet = true } -func (v NullableFileMount) IsSet() bool { +func (v NullableFile) IsSet() bool { return v.isSet } -func (v *NullableFileMount) Unset() { +func (v *NullableFile) Unset() { v.value = nil v.isSet = false } -func NewNullableFileMount(val *FileMount) *NullableFileMount { - return &NullableFileMount{value: val, isSet: true} +func NewNullableFile(val *File) *NullableFile { + return &NullableFile{value: val, isSet: true} } -func (v NullableFileMount) MarshalJSON() ([]byte, error) { +func (v NullableFile) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFileMount) UnmarshalJSON(src []byte) error { +func (v *NullableFile) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/v1/koyeb/model_regional_deployment_definition.go b/api/v1/koyeb/model_regional_deployment_definition.go index 2d9b921..b89403b 100644 --- a/api/v1/koyeb/model_regional_deployment_definition.go +++ b/api/v1/koyeb/model_regional_deployment_definition.go @@ -28,7 +28,7 @@ type RegionalDeploymentDefinition struct { DeploymentGroup *string `json:"deployment_group,omitempty"` HealthChecks []DeploymentHealthCheck `json:"health_checks,omitempty"` Volumes []RegionalDeploymentVolume `json:"volumes,omitempty"` - FileMounts []FileMount `json:"file_mounts,omitempty"` + Files []File `json:"files,omitempty"` SkipCache *bool `json:"skip_cache,omitempty"` Docker *DockerSource `json:"docker,omitempty"` Git *GitSource `json:"git,omitempty"` @@ -440,36 +440,36 @@ func (o *RegionalDeploymentDefinition) SetVolumes(v []RegionalDeploymentVolume) o.Volumes = v } -// GetFileMounts returns the FileMounts field value if set, zero value otherwise. -func (o *RegionalDeploymentDefinition) GetFileMounts() []FileMount { - if o == nil || isNil(o.FileMounts) { - var ret []FileMount +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *RegionalDeploymentDefinition) GetFiles() []File { + if o == nil || isNil(o.Files) { + var ret []File return ret } - return o.FileMounts + return o.Files } -// GetFileMountsOk returns a tuple with the FileMounts field value if set, nil otherwise +// GetFilesOk returns a tuple with the Files field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RegionalDeploymentDefinition) GetFileMountsOk() ([]FileMount, bool) { - if o == nil || isNil(o.FileMounts) { +func (o *RegionalDeploymentDefinition) GetFilesOk() ([]File, bool) { + if o == nil || isNil(o.Files) { return nil, false } - return o.FileMounts, true + return o.Files, true } -// HasFileMounts returns a boolean if a field has been set. -func (o *RegionalDeploymentDefinition) HasFileMounts() bool { - if o != nil && !isNil(o.FileMounts) { +// HasFiles returns a boolean if a field has been set. +func (o *RegionalDeploymentDefinition) HasFiles() bool { + if o != nil && !isNil(o.Files) { return true } return false } -// SetFileMounts gets a reference to the given []FileMount and assigns it to the FileMounts field. -func (o *RegionalDeploymentDefinition) SetFileMounts(v []FileMount) { - o.FileMounts = v +// SetFiles gets a reference to the given []File and assigns it to the Files field. +func (o *RegionalDeploymentDefinition) SetFiles(v []File) { + o.Files = v } // GetSkipCache returns the SkipCache field value if set, zero value otherwise. @@ -638,8 +638,8 @@ func (o RegionalDeploymentDefinition) MarshalJSON() ([]byte, error) { if !isNil(o.Volumes) { toSerialize["volumes"] = o.Volumes } - if !isNil(o.FileMounts) { - toSerialize["file_mounts"] = o.FileMounts + if !isNil(o.Files) { + toSerialize["files"] = o.Files } if !isNil(o.SkipCache) { toSerialize["skip_cache"] = o.SkipCache diff --git a/api/v1/koyeb/openapi.json b/api/v1/koyeb/openapi.json index 14e2f6d..c0e96f5 100644 --- a/api/v1/koyeb/openapi.json +++ b/api/v1/koyeb/openapi.json @@ -13706,10 +13706,10 @@ "$ref": "#/definitions/DeploymentVolume" } }, - "file_mounts": { + "files": { "type": "array", "items": { - "$ref": "#/definitions/FileMount" + "$ref": "#/definitions/File" } }, "skip_cache": { @@ -14280,7 +14280,7 @@ } } }, - "FileMount": { + "File": { "type": "object", "properties": { "path": { @@ -14289,8 +14289,7 @@ }, "permissions": { "type": "string", - "description": "interpolation_enabled is a flag to enable/disable interpolation in the file content\n bool interpolation_enabled = 3;", - "title": "the content of the file" + "title": "the permissions of the file in format 0644" }, "content": { "type": "string", @@ -15985,10 +15984,10 @@ "$ref": "#/definitions/RegionalDeploymentVolume" } }, - "file_mounts": { + "files": { "type": "array", "items": { - "$ref": "#/definitions/FileMount" + "$ref": "#/definitions/File" } }, "skip_cache": {