diff --git a/api/v1/koyeb/.openapi-generator/FILES b/api/v1/koyeb/.openapi-generator/FILES index 1fac17f..2d6630c 100644 --- a/api/v1/koyeb/.openapi-generator/FILES +++ b/api/v1/koyeb/.openapi-generator/FILES @@ -118,7 +118,6 @@ docs/DeploymentDefinition.md docs/DeploymentDefinitionType.md docs/DeploymentEnv.md docs/DeploymentEvent.md -docs/DeploymentFileMount.md docs/DeploymentHealthCheck.md docs/DeploymentInstanceType.md docs/DeploymentListItem.md @@ -169,6 +168,7 @@ docs/ExecCommandReply.md docs/ExecCommandRequestBody.md docs/ExecCommandRequestIdType.md docs/ExecCommandRequestTerminalSize.md +docs/FileMount.md docs/GCPContainerRegistryConfiguration.md docs/GetAppReply.md docs/GetCatalogInstanceReply.md @@ -313,7 +313,6 @@ docs/PublicOrganization.md docs/PublicUser.md docs/Quotas.md docs/QuotasApi.md -docs/RawSource.md docs/ReactivateOrganizationReply.md docs/RedeployReply.md docs/RedeployRequestInfo.md @@ -324,11 +323,8 @@ docs/RegionalDeployment.md docs/RegionalDeploymentDefinition.md docs/RegionalDeploymentDefinitionType.md docs/RegionalDeploymentEvent.md -docs/RegionalDeploymentFileMount.md docs/RegionalDeploymentListItem.md -docs/RegionalDeploymentRawSource.md docs/RegionalDeploymentRole.md -docs/RegionalDeploymentSecretSource.md docs/RegionalDeploymentStatus.md docs/RegionalDeploymentVolume.md docs/RegionalDeploymentsApi.md @@ -344,7 +340,6 @@ docs/Sample.md docs/Scaling.md docs/SearchApi.md docs/Secret.md -docs/SecretSource.md docs/SecretType.md docs/SecretsApi.md docs/SecretsSummary.md @@ -477,7 +472,6 @@ model_deployment_definition.go model_deployment_definition_type.go model_deployment_env.go model_deployment_event.go -model_deployment_file_mount.go model_deployment_health_check.go model_deployment_instance_type.go model_deployment_list_item.go @@ -525,6 +519,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_gcp_container_registry_configuration.go model_get_app_reply.go model_get_catalog_instance_reply.go @@ -654,7 +649,6 @@ model_private_registry_configuration.go model_public_organization.go model_public_user.go model_quotas.go -model_raw_source.go model_reactivate_organization_reply.go model_redeploy_reply.go model_redeploy_request_info.go @@ -665,11 +659,8 @@ model_regional_deployment.go model_regional_deployment_definition.go model_regional_deployment_definition_type.go model_regional_deployment_event.go -model_regional_deployment_file_mount.go model_regional_deployment_list_item.go -model_regional_deployment_raw_source.go model_regional_deployment_role.go -model_regional_deployment_secret_source.go model_regional_deployment_status.go model_regional_deployment_volume.go model_remove_organization_member_reply.go @@ -682,7 +673,6 @@ model_route.go model_sample.go model_scaling.go model_secret.go -model_secret_source.go model_secret_type.go model_secrets_summary.go model_service.go diff --git a/api/v1/koyeb/README.md b/api/v1/koyeb/README.md index d69dc9d..628a70a 100644 --- a/api/v1/koyeb/README.md +++ b/api/v1/koyeb/README.md @@ -289,7 +289,6 @@ Class | Method | HTTP request | Description - [DeploymentDefinitionType](docs/DeploymentDefinitionType.md) - [DeploymentEnv](docs/DeploymentEnv.md) - [DeploymentEvent](docs/DeploymentEvent.md) - - [DeploymentFileMount](docs/DeploymentFileMount.md) - [DeploymentHealthCheck](docs/DeploymentHealthCheck.md) - [DeploymentInstanceType](docs/DeploymentInstanceType.md) - [DeploymentListItem](docs/DeploymentListItem.md) @@ -337,6 +336,7 @@ Class | Method | HTTP request | Description - [ExecCommandRequestBody](docs/ExecCommandRequestBody.md) - [ExecCommandRequestIdType](docs/ExecCommandRequestIdType.md) - [ExecCommandRequestTerminalSize](docs/ExecCommandRequestTerminalSize.md) + - [FileMount](docs/FileMount.md) - [GCPContainerRegistryConfiguration](docs/GCPContainerRegistryConfiguration.md) - [GetAppReply](docs/GetAppReply.md) - [GetCatalogInstanceReply](docs/GetCatalogInstanceReply.md) @@ -466,7 +466,6 @@ Class | Method | HTTP request | Description - [PublicOrganization](docs/PublicOrganization.md) - [PublicUser](docs/PublicUser.md) - [Quotas](docs/Quotas.md) - - [RawSource](docs/RawSource.md) - [ReactivateOrganizationReply](docs/ReactivateOrganizationReply.md) - [RedeployReply](docs/RedeployReply.md) - [RedeployRequestInfo](docs/RedeployRequestInfo.md) @@ -477,11 +476,8 @@ Class | Method | HTTP request | Description - [RegionalDeploymentDefinition](docs/RegionalDeploymentDefinition.md) - [RegionalDeploymentDefinitionType](docs/RegionalDeploymentDefinitionType.md) - [RegionalDeploymentEvent](docs/RegionalDeploymentEvent.md) - - [RegionalDeploymentFileMount](docs/RegionalDeploymentFileMount.md) - [RegionalDeploymentListItem](docs/RegionalDeploymentListItem.md) - - [RegionalDeploymentRawSource](docs/RegionalDeploymentRawSource.md) - [RegionalDeploymentRole](docs/RegionalDeploymentRole.md) - - [RegionalDeploymentSecretSource](docs/RegionalDeploymentSecretSource.md) - [RegionalDeploymentStatus](docs/RegionalDeploymentStatus.md) - [RegionalDeploymentVolume](docs/RegionalDeploymentVolume.md) - [RemoveOrganizationMemberReply](docs/RemoveOrganizationMemberReply.md) @@ -494,7 +490,6 @@ Class | Method | HTTP request | Description - [Sample](docs/Sample.md) - [Scaling](docs/Scaling.md) - [Secret](docs/Secret.md) - - [SecretSource](docs/SecretSource.md) - [SecretType](docs/SecretType.md) - [SecretsSummary](docs/SecretsSummary.md) - [Service](docs/Service.md) diff --git a/api/v1/koyeb/api/openapi.yaml b/api/v1/koyeb/api/openapi.yaml index f020fad..2c0bf9a 100644 --- a/api/v1/koyeb/api/openapi.yaml +++ b/api/v1/koyeb/api/openapi.yaml @@ -13849,19 +13849,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -14104,19 +14096,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -14586,19 +14570,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -14952,19 +14928,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -15196,7 +15164,7 @@ components: type: array file_mounts: items: - $ref: '#/components/schemas/DeploymentFileMount' + $ref: '#/components/schemas/FileMount' type: array skip_cache: type: boolean @@ -15237,31 +15205,6 @@ components: secret: type: string type: object - DeploymentFileMount: - example: - path: path - interpolation_enabled: true - permissions: permissions - raw: - content: content - secret: - name: name - properties: - path: - title: the path where the file is mounted to - type: string - permissions: - title: the content of the file - type: string - interpolation_enabled: - title: interpolation_enabled is a flag to enable/disable interpolation in - the file content - type: boolean - secret: - $ref: '#/components/schemas/SecretSource' - raw: - $ref: '#/components/schemas/RawSource' - type: object DeploymentHealthCheck: example: tcp: @@ -16035,6 +15978,25 @@ components: title: A flag to run the container in privileged mode type: boolean type: object + FileMount: + example: + path: path + permissions: permissions + content: content + properties: + path: + 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 + type: string + content: + title: the content of the file + type: string + type: object GetServiceReply: example: service: @@ -16395,14 +16357,6 @@ components: type: object PauseServiceReply: type: object - RawSource: - example: - content: content - properties: - content: - title: the content of the file - type: string - type: object RedeployReply: example: deployment: @@ -16596,19 +16550,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -16844,14 +16790,6 @@ components: type: object ResumeServiceReply: type: object - SecretSource: - example: - name: name - properties: - name: - title: the id of the secret - type: string - type: object Service: example: created_at: 2000-01-23T04:56:07.000+00:00 @@ -17226,19 +17164,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -18714,19 +18644,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -19186,19 +19108,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -19651,19 +19565,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -20067,19 +19973,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -20521,19 +20419,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -20744,19 +20634,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -20913,19 +20795,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -21258,19 +21132,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -21517,19 +21383,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -21674,7 +21532,7 @@ components: type: array file_mounts: items: - $ref: '#/components/schemas/RegionalDeploymentFileMount' + $ref: '#/components/schemas/FileMount' type: array skip_cache: type: boolean @@ -21719,29 +21577,6 @@ components: properties: {} type: object type: object - RegionalDeploymentFileMount: - example: - path: path - interpolation_enabled: true - permissions: permissions - raw: - content: content - secret: - name: name - properties: - path: - title: the path where the file is mounted to - type: string - permissions: - title: the content of the file - type: string - interpolation_enabled: - type: boolean - secret: - $ref: '#/components/schemas/RegionalDeploymentSecretSource' - raw: - $ref: '#/components/schemas/RegionalDeploymentRawSource' - type: object RegionalDeploymentListItem: example: updated_at: 2000-01-23T04:56:07.000+00:00 @@ -21790,19 +21625,11 @@ components: skip_cache: true file_mounts: - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content - path: path - interpolation_enabled: true permissions: permissions - raw: - content: content - secret: - name: name + content: content archive: id: id buildpack: @@ -21935,22 +21762,6 @@ components: type: object RegionalDeploymentMetadata: type: object - RegionalDeploymentRawSource: - example: - content: content - properties: - content: - title: the content of the file - type: string - type: object - RegionalDeploymentSecretSource: - example: - name: name - properties: - name: - title: the id of the secret - type: string - type: object RegionalDeploymentVolume: example: path: path diff --git a/api/v1/koyeb/docs/DeploymentDefinition.md b/api/v1/koyeb/docs/DeploymentDefinition.md index 470393c..f29140d 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 [**[]DeploymentFileMount**](DeploymentFileMount.md) | | [optional] +**FileMounts** | Pointer to [**[]FileMount**](FileMount.md) | | [optional] **SkipCache** | Pointer to **bool** | | [optional] **Docker** | Pointer to [**DockerSource**](DockerSource.md) | | [optional] **Git** | Pointer to [**GitSource**](GitSource.md) | | [optional] @@ -318,20 +318,20 @@ HasVolumes returns a boolean if a field has been set. ### GetFileMounts -`func (o *DeploymentDefinition) GetFileMounts() []DeploymentFileMount` +`func (o *DeploymentDefinition) GetFileMounts() []FileMount` GetFileMounts returns the FileMounts field if non-nil, zero value otherwise. ### GetFileMountsOk -`func (o *DeploymentDefinition) GetFileMountsOk() (*[]DeploymentFileMount, bool)` +`func (o *DeploymentDefinition) GetFileMountsOk() (*[]FileMount, bool)` GetFileMountsOk returns a tuple with the FileMounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFileMounts -`func (o *DeploymentDefinition) SetFileMounts(v []DeploymentFileMount)` +`func (o *DeploymentDefinition) SetFileMounts(v []FileMount)` SetFileMounts sets FileMounts field to given value. diff --git a/api/v1/koyeb/docs/DeploymentFileMount.md b/api/v1/koyeb/docs/DeploymentFileMount.md deleted file mode 100644 index ddb415a..0000000 --- a/api/v1/koyeb/docs/DeploymentFileMount.md +++ /dev/null @@ -1,160 +0,0 @@ -# DeploymentFileMount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Path** | Pointer to **string** | | [optional] -**Permissions** | Pointer to **string** | | [optional] -**InterpolationEnabled** | Pointer to **bool** | | [optional] -**Secret** | Pointer to [**SecretSource**](SecretSource.md) | | [optional] -**Raw** | Pointer to [**RawSource**](RawSource.md) | | [optional] - -## Methods - -### NewDeploymentFileMount - -`func NewDeploymentFileMount() *DeploymentFileMount` - -NewDeploymentFileMount instantiates a new DeploymentFileMount 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 - -### NewDeploymentFileMountWithDefaults - -`func NewDeploymentFileMountWithDefaults() *DeploymentFileMount` - -NewDeploymentFileMountWithDefaults instantiates a new DeploymentFileMount 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 *DeploymentFileMount) GetPath() string` - -GetPath returns the Path field if non-nil, zero value otherwise. - -### GetPathOk - -`func (o *DeploymentFileMount) 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 *DeploymentFileMount) SetPath(v string)` - -SetPath sets Path field to given value. - -### HasPath - -`func (o *DeploymentFileMount) HasPath() bool` - -HasPath returns a boolean if a field has been set. - -### GetPermissions - -`func (o *DeploymentFileMount) GetPermissions() string` - -GetPermissions returns the Permissions field if non-nil, zero value otherwise. - -### GetPermissionsOk - -`func (o *DeploymentFileMount) 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 *DeploymentFileMount) SetPermissions(v string)` - -SetPermissions sets Permissions field to given value. - -### HasPermissions - -`func (o *DeploymentFileMount) HasPermissions() bool` - -HasPermissions returns a boolean if a field has been set. - -### GetInterpolationEnabled - -`func (o *DeploymentFileMount) GetInterpolationEnabled() bool` - -GetInterpolationEnabled returns the InterpolationEnabled field if non-nil, zero value otherwise. - -### GetInterpolationEnabledOk - -`func (o *DeploymentFileMount) GetInterpolationEnabledOk() (*bool, bool)` - -GetInterpolationEnabledOk returns a tuple with the InterpolationEnabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterpolationEnabled - -`func (o *DeploymentFileMount) SetInterpolationEnabled(v bool)` - -SetInterpolationEnabled sets InterpolationEnabled field to given value. - -### HasInterpolationEnabled - -`func (o *DeploymentFileMount) HasInterpolationEnabled() bool` - -HasInterpolationEnabled returns a boolean if a field has been set. - -### GetSecret - -`func (o *DeploymentFileMount) GetSecret() SecretSource` - -GetSecret returns the Secret field if non-nil, zero value otherwise. - -### GetSecretOk - -`func (o *DeploymentFileMount) GetSecretOk() (*SecretSource, bool)` - -GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecret - -`func (o *DeploymentFileMount) SetSecret(v SecretSource)` - -SetSecret sets Secret field to given value. - -### HasSecret - -`func (o *DeploymentFileMount) HasSecret() bool` - -HasSecret returns a boolean if a field has been set. - -### GetRaw - -`func (o *DeploymentFileMount) GetRaw() RawSource` - -GetRaw returns the Raw field if non-nil, zero value otherwise. - -### GetRawOk - -`func (o *DeploymentFileMount) GetRawOk() (*RawSource, bool)` - -GetRawOk returns a tuple with the Raw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRaw - -`func (o *DeploymentFileMount) SetRaw(v RawSource)` - -SetRaw sets Raw field to given value. - -### HasRaw - -`func (o *DeploymentFileMount) HasRaw() bool` - -HasRaw returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/v1/koyeb/docs/FileMount.md b/api/v1/koyeb/docs/FileMount.md new file mode 100644 index 0000000..a8647ad --- /dev/null +++ b/api/v1/koyeb/docs/FileMount.md @@ -0,0 +1,108 @@ +# FileMount + +## 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] +**Content** | Pointer to **string** | | [optional] + +## Methods + +### NewFileMount + +`func NewFileMount() *FileMount` + +NewFileMount instantiates a new FileMount 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 + +`func NewFileMountWithDefaults() *FileMount` + +NewFileMountWithDefaults instantiates a new FileMount 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` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *FileMount) 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)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *FileMount) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetPermissions + +`func (o *FileMount) GetPermissions() string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *FileMount) 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)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *FileMount) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + +### GetContent + +`func (o *FileMount) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *FileMount) 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)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *FileMount) HasContent() bool` + +HasContent returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/v1/koyeb/docs/RawSource.md b/api/v1/koyeb/docs/RawSource.md deleted file mode 100644 index dbfa64e..0000000 --- a/api/v1/koyeb/docs/RawSource.md +++ /dev/null @@ -1,56 +0,0 @@ -# RawSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Content** | Pointer to **string** | | [optional] - -## Methods - -### NewRawSource - -`func NewRawSource() *RawSource` - -NewRawSource instantiates a new RawSource 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 - -### NewRawSourceWithDefaults - -`func NewRawSourceWithDefaults() *RawSource` - -NewRawSourceWithDefaults instantiates a new RawSource 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 - -### GetContent - -`func (o *RawSource) GetContent() string` - -GetContent returns the Content field if non-nil, zero value otherwise. - -### GetContentOk - -`func (o *RawSource) 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 *RawSource) SetContent(v string)` - -SetContent sets Content field to given value. - -### HasContent - -`func (o *RawSource) HasContent() bool` - -HasContent returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/v1/koyeb/docs/RegionalDeploymentDefinition.md b/api/v1/koyeb/docs/RegionalDeploymentDefinition.md index ac8234a..af9ce3a 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 [**[]RegionalDeploymentFileMount**](RegionalDeploymentFileMount.md) | | [optional] +**FileMounts** | Pointer to [**[]FileMount**](FileMount.md) | | [optional] **SkipCache** | Pointer to **bool** | | [optional] **Docker** | Pointer to [**DockerSource**](DockerSource.md) | | [optional] **Git** | Pointer to [**GitSource**](GitSource.md) | | [optional] @@ -343,20 +343,20 @@ HasVolumes returns a boolean if a field has been set. ### GetFileMounts -`func (o *RegionalDeploymentDefinition) GetFileMounts() []RegionalDeploymentFileMount` +`func (o *RegionalDeploymentDefinition) GetFileMounts() []FileMount` GetFileMounts returns the FileMounts field if non-nil, zero value otherwise. ### GetFileMountsOk -`func (o *RegionalDeploymentDefinition) GetFileMountsOk() (*[]RegionalDeploymentFileMount, bool)` +`func (o *RegionalDeploymentDefinition) GetFileMountsOk() (*[]FileMount, bool)` GetFileMountsOk returns a tuple with the FileMounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFileMounts -`func (o *RegionalDeploymentDefinition) SetFileMounts(v []RegionalDeploymentFileMount)` +`func (o *RegionalDeploymentDefinition) SetFileMounts(v []FileMount)` SetFileMounts sets FileMounts field to given value. diff --git a/api/v1/koyeb/docs/RegionalDeploymentFileMount.md b/api/v1/koyeb/docs/RegionalDeploymentFileMount.md deleted file mode 100644 index 0ac694d..0000000 --- a/api/v1/koyeb/docs/RegionalDeploymentFileMount.md +++ /dev/null @@ -1,160 +0,0 @@ -# RegionalDeploymentFileMount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Path** | Pointer to **string** | | [optional] -**Permissions** | Pointer to **string** | | [optional] -**InterpolationEnabled** | Pointer to **bool** | | [optional] -**Secret** | Pointer to [**RegionalDeploymentSecretSource**](RegionalDeploymentSecretSource.md) | | [optional] -**Raw** | Pointer to [**RegionalDeploymentRawSource**](RegionalDeploymentRawSource.md) | | [optional] - -## Methods - -### NewRegionalDeploymentFileMount - -`func NewRegionalDeploymentFileMount() *RegionalDeploymentFileMount` - -NewRegionalDeploymentFileMount instantiates a new RegionalDeploymentFileMount 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 - -### NewRegionalDeploymentFileMountWithDefaults - -`func NewRegionalDeploymentFileMountWithDefaults() *RegionalDeploymentFileMount` - -NewRegionalDeploymentFileMountWithDefaults instantiates a new RegionalDeploymentFileMount 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 *RegionalDeploymentFileMount) GetPath() string` - -GetPath returns the Path field if non-nil, zero value otherwise. - -### GetPathOk - -`func (o *RegionalDeploymentFileMount) 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 *RegionalDeploymentFileMount) SetPath(v string)` - -SetPath sets Path field to given value. - -### HasPath - -`func (o *RegionalDeploymentFileMount) HasPath() bool` - -HasPath returns a boolean if a field has been set. - -### GetPermissions - -`func (o *RegionalDeploymentFileMount) GetPermissions() string` - -GetPermissions returns the Permissions field if non-nil, zero value otherwise. - -### GetPermissionsOk - -`func (o *RegionalDeploymentFileMount) 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 *RegionalDeploymentFileMount) SetPermissions(v string)` - -SetPermissions sets Permissions field to given value. - -### HasPermissions - -`func (o *RegionalDeploymentFileMount) HasPermissions() bool` - -HasPermissions returns a boolean if a field has been set. - -### GetInterpolationEnabled - -`func (o *RegionalDeploymentFileMount) GetInterpolationEnabled() bool` - -GetInterpolationEnabled returns the InterpolationEnabled field if non-nil, zero value otherwise. - -### GetInterpolationEnabledOk - -`func (o *RegionalDeploymentFileMount) GetInterpolationEnabledOk() (*bool, bool)` - -GetInterpolationEnabledOk returns a tuple with the InterpolationEnabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterpolationEnabled - -`func (o *RegionalDeploymentFileMount) SetInterpolationEnabled(v bool)` - -SetInterpolationEnabled sets InterpolationEnabled field to given value. - -### HasInterpolationEnabled - -`func (o *RegionalDeploymentFileMount) HasInterpolationEnabled() bool` - -HasInterpolationEnabled returns a boolean if a field has been set. - -### GetSecret - -`func (o *RegionalDeploymentFileMount) GetSecret() RegionalDeploymentSecretSource` - -GetSecret returns the Secret field if non-nil, zero value otherwise. - -### GetSecretOk - -`func (o *RegionalDeploymentFileMount) GetSecretOk() (*RegionalDeploymentSecretSource, bool)` - -GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecret - -`func (o *RegionalDeploymentFileMount) SetSecret(v RegionalDeploymentSecretSource)` - -SetSecret sets Secret field to given value. - -### HasSecret - -`func (o *RegionalDeploymentFileMount) HasSecret() bool` - -HasSecret returns a boolean if a field has been set. - -### GetRaw - -`func (o *RegionalDeploymentFileMount) GetRaw() RegionalDeploymentRawSource` - -GetRaw returns the Raw field if non-nil, zero value otherwise. - -### GetRawOk - -`func (o *RegionalDeploymentFileMount) GetRawOk() (*RegionalDeploymentRawSource, bool)` - -GetRawOk returns a tuple with the Raw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRaw - -`func (o *RegionalDeploymentFileMount) SetRaw(v RegionalDeploymentRawSource)` - -SetRaw sets Raw field to given value. - -### HasRaw - -`func (o *RegionalDeploymentFileMount) HasRaw() bool` - -HasRaw returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/v1/koyeb/docs/RegionalDeploymentRawSource.md b/api/v1/koyeb/docs/RegionalDeploymentRawSource.md deleted file mode 100644 index b240967..0000000 --- a/api/v1/koyeb/docs/RegionalDeploymentRawSource.md +++ /dev/null @@ -1,56 +0,0 @@ -# RegionalDeploymentRawSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Content** | Pointer to **string** | | [optional] - -## Methods - -### NewRegionalDeploymentRawSource - -`func NewRegionalDeploymentRawSource() *RegionalDeploymentRawSource` - -NewRegionalDeploymentRawSource instantiates a new RegionalDeploymentRawSource 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 - -### NewRegionalDeploymentRawSourceWithDefaults - -`func NewRegionalDeploymentRawSourceWithDefaults() *RegionalDeploymentRawSource` - -NewRegionalDeploymentRawSourceWithDefaults instantiates a new RegionalDeploymentRawSource 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 - -### GetContent - -`func (o *RegionalDeploymentRawSource) GetContent() string` - -GetContent returns the Content field if non-nil, zero value otherwise. - -### GetContentOk - -`func (o *RegionalDeploymentRawSource) 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 *RegionalDeploymentRawSource) SetContent(v string)` - -SetContent sets Content field to given value. - -### HasContent - -`func (o *RegionalDeploymentRawSource) HasContent() bool` - -HasContent returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/v1/koyeb/docs/RegionalDeploymentSecretSource.md b/api/v1/koyeb/docs/RegionalDeploymentSecretSource.md deleted file mode 100644 index 931782e..0000000 --- a/api/v1/koyeb/docs/RegionalDeploymentSecretSource.md +++ /dev/null @@ -1,56 +0,0 @@ -# RegionalDeploymentSecretSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewRegionalDeploymentSecretSource - -`func NewRegionalDeploymentSecretSource() *RegionalDeploymentSecretSource` - -NewRegionalDeploymentSecretSource instantiates a new RegionalDeploymentSecretSource 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 - -### NewRegionalDeploymentSecretSourceWithDefaults - -`func NewRegionalDeploymentSecretSourceWithDefaults() *RegionalDeploymentSecretSource` - -NewRegionalDeploymentSecretSourceWithDefaults instantiates a new RegionalDeploymentSecretSource 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 - -### GetName - -`func (o *RegionalDeploymentSecretSource) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *RegionalDeploymentSecretSource) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *RegionalDeploymentSecretSource) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *RegionalDeploymentSecretSource) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/v1/koyeb/docs/SecretSource.md b/api/v1/koyeb/docs/SecretSource.md deleted file mode 100644 index 88cb900..0000000 --- a/api/v1/koyeb/docs/SecretSource.md +++ /dev/null @@ -1,56 +0,0 @@ -# SecretSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] - -## Methods - -### NewSecretSource - -`func NewSecretSource() *SecretSource` - -NewSecretSource instantiates a new SecretSource 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 - -### NewSecretSourceWithDefaults - -`func NewSecretSourceWithDefaults() *SecretSource` - -NewSecretSourceWithDefaults instantiates a new SecretSource 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 - -### GetName - -`func (o *SecretSource) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *SecretSource) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *SecretSource) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *SecretSource) HasName() bool` - -HasName returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/v1/koyeb/model_deployment_definition.go b/api/v1/koyeb/model_deployment_definition.go index 373b21c..48f3e58 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 []DeploymentFileMount `json:"file_mounts,omitempty"` + FileMounts []FileMount `json:"file_mounts,omitempty"` SkipCache *bool `json:"skip_cache,omitempty"` Docker *DockerSource `json:"docker,omitempty"` Git *GitSource `json:"git,omitempty"` @@ -409,9 +409,9 @@ func (o *DeploymentDefinition) SetVolumes(v []DeploymentVolume) { } // GetFileMounts returns the FileMounts field value if set, zero value otherwise. -func (o *DeploymentDefinition) GetFileMounts() []DeploymentFileMount { +func (o *DeploymentDefinition) GetFileMounts() []FileMount { if o == nil || isNil(o.FileMounts) { - var ret []DeploymentFileMount + var ret []FileMount return ret } return o.FileMounts @@ -419,7 +419,7 @@ func (o *DeploymentDefinition) GetFileMounts() []DeploymentFileMount { // GetFileMountsOk returns a tuple with the FileMounts field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DeploymentDefinition) GetFileMountsOk() ([]DeploymentFileMount, bool) { +func (o *DeploymentDefinition) GetFileMountsOk() ([]FileMount, bool) { if o == nil || isNil(o.FileMounts) { return nil, false } @@ -435,8 +435,8 @@ func (o *DeploymentDefinition) HasFileMounts() bool { return false } -// SetFileMounts gets a reference to the given []DeploymentFileMount and assigns it to the FileMounts field. -func (o *DeploymentDefinition) SetFileMounts(v []DeploymentFileMount) { +// SetFileMounts gets a reference to the given []FileMount and assigns it to the FileMounts field. +func (o *DeploymentDefinition) SetFileMounts(v []FileMount) { o.FileMounts = v } diff --git a/api/v1/koyeb/model_deployment_file_mount.go b/api/v1/koyeb/model_deployment_file_mount.go deleted file mode 100644 index a83bc80..0000000 --- a/api/v1/koyeb/model_deployment_file_mount.go +++ /dev/null @@ -1,259 +0,0 @@ -/* -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package koyeb - -import ( - "encoding/json" -) - -// DeploymentFileMount struct for DeploymentFileMount -type DeploymentFileMount struct { - Path *string `json:"path,omitempty"` - Permissions *string `json:"permissions,omitempty"` - InterpolationEnabled *bool `json:"interpolation_enabled,omitempty"` - Secret *SecretSource `json:"secret,omitempty"` - Raw *RawSource `json:"raw,omitempty"` -} - -// NewDeploymentFileMount instantiates a new DeploymentFileMount 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 NewDeploymentFileMount() *DeploymentFileMount { - this := DeploymentFileMount{} - return &this -} - -// NewDeploymentFileMountWithDefaults instantiates a new DeploymentFileMount 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 NewDeploymentFileMountWithDefaults() *DeploymentFileMount { - this := DeploymentFileMount{} - return &this -} - -// GetPath returns the Path field value if set, zero value otherwise. -func (o *DeploymentFileMount) GetPath() string { - if o == nil || isNil(o.Path) { - var ret string - return ret - } - return *o.Path -} - -// 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 *DeploymentFileMount) GetPathOk() (*string, bool) { - if o == nil || isNil(o.Path) { - return nil, false - } - return o.Path, true -} - -// HasPath returns a boolean if a field has been set. -func (o *DeploymentFileMount) HasPath() bool { - if o != nil && !isNil(o.Path) { - return true - } - - return false -} - -// SetPath gets a reference to the given string and assigns it to the Path field. -func (o *DeploymentFileMount) SetPath(v string) { - o.Path = &v -} - -// GetPermissions returns the Permissions field value if set, zero value otherwise. -func (o *DeploymentFileMount) GetPermissions() string { - if o == nil || isNil(o.Permissions) { - var ret string - return ret - } - return *o.Permissions -} - -// 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 *DeploymentFileMount) GetPermissionsOk() (*string, bool) { - if o == nil || isNil(o.Permissions) { - return nil, false - } - return o.Permissions, true -} - -// HasPermissions returns a boolean if a field has been set. -func (o *DeploymentFileMount) HasPermissions() bool { - if o != nil && !isNil(o.Permissions) { - return true - } - - return false -} - -// SetPermissions gets a reference to the given string and assigns it to the Permissions field. -func (o *DeploymentFileMount) SetPermissions(v string) { - o.Permissions = &v -} - -// GetInterpolationEnabled returns the InterpolationEnabled field value if set, zero value otherwise. -func (o *DeploymentFileMount) GetInterpolationEnabled() bool { - if o == nil || isNil(o.InterpolationEnabled) { - var ret bool - return ret - } - return *o.InterpolationEnabled -} - -// GetInterpolationEnabledOk returns a tuple with the InterpolationEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeploymentFileMount) GetInterpolationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.InterpolationEnabled) { - return nil, false - } - return o.InterpolationEnabled, true -} - -// HasInterpolationEnabled returns a boolean if a field has been set. -func (o *DeploymentFileMount) HasInterpolationEnabled() bool { - if o != nil && !isNil(o.InterpolationEnabled) { - return true - } - - return false -} - -// SetInterpolationEnabled gets a reference to the given bool and assigns it to the InterpolationEnabled field. -func (o *DeploymentFileMount) SetInterpolationEnabled(v bool) { - o.InterpolationEnabled = &v -} - -// GetSecret returns the Secret field value if set, zero value otherwise. -func (o *DeploymentFileMount) GetSecret() SecretSource { - if o == nil || isNil(o.Secret) { - var ret SecretSource - return ret - } - return *o.Secret -} - -// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeploymentFileMount) GetSecretOk() (*SecretSource, bool) { - if o == nil || isNil(o.Secret) { - return nil, false - } - return o.Secret, true -} - -// HasSecret returns a boolean if a field has been set. -func (o *DeploymentFileMount) HasSecret() bool { - if o != nil && !isNil(o.Secret) { - return true - } - - return false -} - -// SetSecret gets a reference to the given SecretSource and assigns it to the Secret field. -func (o *DeploymentFileMount) SetSecret(v SecretSource) { - o.Secret = &v -} - -// GetRaw returns the Raw field value if set, zero value otherwise. -func (o *DeploymentFileMount) GetRaw() RawSource { - if o == nil || isNil(o.Raw) { - var ret RawSource - return ret - } - return *o.Raw -} - -// GetRawOk returns a tuple with the Raw field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeploymentFileMount) GetRawOk() (*RawSource, bool) { - if o == nil || isNil(o.Raw) { - return nil, false - } - return o.Raw, true -} - -// HasRaw returns a boolean if a field has been set. -func (o *DeploymentFileMount) HasRaw() bool { - if o != nil && !isNil(o.Raw) { - return true - } - - return false -} - -// SetRaw gets a reference to the given RawSource and assigns it to the Raw field. -func (o *DeploymentFileMount) SetRaw(v RawSource) { - o.Raw = &v -} - -func (o DeploymentFileMount) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Path) { - toSerialize["path"] = o.Path - } - if !isNil(o.Permissions) { - toSerialize["permissions"] = o.Permissions - } - if !isNil(o.InterpolationEnabled) { - toSerialize["interpolation_enabled"] = o.InterpolationEnabled - } - if !isNil(o.Secret) { - toSerialize["secret"] = o.Secret - } - if !isNil(o.Raw) { - toSerialize["raw"] = o.Raw - } - return json.Marshal(toSerialize) -} - -type NullableDeploymentFileMount struct { - value *DeploymentFileMount - isSet bool -} - -func (v NullableDeploymentFileMount) Get() *DeploymentFileMount { - return v.value -} - -func (v *NullableDeploymentFileMount) Set(val *DeploymentFileMount) { - v.value = val - v.isSet = true -} - -func (v NullableDeploymentFileMount) IsSet() bool { - return v.isSet -} - -func (v *NullableDeploymentFileMount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableDeploymentFileMount(val *DeploymentFileMount) *NullableDeploymentFileMount { - return &NullableDeploymentFileMount{value: val, isSet: true} -} - -func (v NullableDeploymentFileMount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableDeploymentFileMount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/api/v1/koyeb/model_file_mount.go b/api/v1/koyeb/model_file_mount.go new file mode 100644 index 0000000..0512646 --- /dev/null +++ b/api/v1/koyeb/model_file_mount.go @@ -0,0 +1,188 @@ +/* +Koyeb Rest API + +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package koyeb + +import ( + "encoding/json" +) + +// FileMount struct for FileMount +type FileMount 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 +// 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{} + return &this +} + +// NewFileMountWithDefaults instantiates a new FileMount 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{} + return &this +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *FileMount) GetPath() string { + if o == nil || isNil(o.Path) { + var ret string + return ret + } + return *o.Path +} + +// 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) { + if o == nil || isNil(o.Path) { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *FileMount) HasPath() bool { + if o != nil && !isNil(o.Path) { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *FileMount) SetPath(v string) { + o.Path = &v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *FileMount) GetPermissions() string { + if o == nil || isNil(o.Permissions) { + var ret string + return ret + } + return *o.Permissions +} + +// 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) { + if o == nil || isNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *FileMount) HasPermissions() bool { + if o != nil && !isNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given string and assigns it to the Permissions field. +func (o *FileMount) SetPermissions(v string) { + o.Permissions = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *FileMount) GetContent() string { + if o == nil || isNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// 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) { + if o == nil || isNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *FileMount) HasContent() bool { + if o != nil && !isNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *FileMount) SetContent(v string) { + o.Content = &v +} + +func (o FileMount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if !isNil(o.Path) { + toSerialize["path"] = o.Path + } + if !isNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } + if !isNil(o.Content) { + toSerialize["content"] = o.Content + } + return json.Marshal(toSerialize) +} + +type NullableFileMount struct { + value *FileMount + isSet bool +} + +func (v NullableFileMount) Get() *FileMount { + return v.value +} + +func (v *NullableFileMount) Set(val *FileMount) { + v.value = val + v.isSet = true +} + +func (v NullableFileMount) IsSet() bool { + return v.isSet +} + +func (v *NullableFileMount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFileMount(val *FileMount) *NullableFileMount { + return &NullableFileMount{value: val, isSet: true} +} + +func (v NullableFileMount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFileMount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/api/v1/koyeb/model_raw_source.go b/api/v1/koyeb/model_raw_source.go deleted file mode 100644 index 4bf7585..0000000 --- a/api/v1/koyeb/model_raw_source.go +++ /dev/null @@ -1,115 +0,0 @@ -/* -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package koyeb - -import ( - "encoding/json" -) - -// RawSource struct for RawSource -type RawSource struct { - Content *string `json:"content,omitempty"` -} - -// NewRawSource instantiates a new RawSource 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 NewRawSource() *RawSource { - this := RawSource{} - return &this -} - -// NewRawSourceWithDefaults instantiates a new RawSource 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 NewRawSourceWithDefaults() *RawSource { - this := RawSource{} - return &this -} - -// GetContent returns the Content field value if set, zero value otherwise. -func (o *RawSource) GetContent() string { - if o == nil || isNil(o.Content) { - var ret string - return ret - } - return *o.Content -} - -// 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 *RawSource) GetContentOk() (*string, bool) { - if o == nil || isNil(o.Content) { - return nil, false - } - return o.Content, true -} - -// HasContent returns a boolean if a field has been set. -func (o *RawSource) HasContent() bool { - if o != nil && !isNil(o.Content) { - return true - } - - return false -} - -// SetContent gets a reference to the given string and assigns it to the Content field. -func (o *RawSource) SetContent(v string) { - o.Content = &v -} - -func (o RawSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Content) { - toSerialize["content"] = o.Content - } - return json.Marshal(toSerialize) -} - -type NullableRawSource struct { - value *RawSource - isSet bool -} - -func (v NullableRawSource) Get() *RawSource { - return v.value -} - -func (v *NullableRawSource) Set(val *RawSource) { - v.value = val - v.isSet = true -} - -func (v NullableRawSource) IsSet() bool { - return v.isSet -} - -func (v *NullableRawSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRawSource(val *RawSource) *NullableRawSource { - return &NullableRawSource{value: val, isSet: true} -} - -func (v NullableRawSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRawSource) 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 ecb84af..2d9b921 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 []RegionalDeploymentFileMount `json:"file_mounts,omitempty"` + FileMounts []FileMount `json:"file_mounts,omitempty"` SkipCache *bool `json:"skip_cache,omitempty"` Docker *DockerSource `json:"docker,omitempty"` Git *GitSource `json:"git,omitempty"` @@ -441,9 +441,9 @@ func (o *RegionalDeploymentDefinition) SetVolumes(v []RegionalDeploymentVolume) } // GetFileMounts returns the FileMounts field value if set, zero value otherwise. -func (o *RegionalDeploymentDefinition) GetFileMounts() []RegionalDeploymentFileMount { +func (o *RegionalDeploymentDefinition) GetFileMounts() []FileMount { if o == nil || isNil(o.FileMounts) { - var ret []RegionalDeploymentFileMount + var ret []FileMount return ret } return o.FileMounts @@ -451,7 +451,7 @@ func (o *RegionalDeploymentDefinition) GetFileMounts() []RegionalDeploymentFileM // GetFileMountsOk returns a tuple with the FileMounts field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RegionalDeploymentDefinition) GetFileMountsOk() ([]RegionalDeploymentFileMount, bool) { +func (o *RegionalDeploymentDefinition) GetFileMountsOk() ([]FileMount, bool) { if o == nil || isNil(o.FileMounts) { return nil, false } @@ -467,8 +467,8 @@ func (o *RegionalDeploymentDefinition) HasFileMounts() bool { return false } -// SetFileMounts gets a reference to the given []RegionalDeploymentFileMount and assigns it to the FileMounts field. -func (o *RegionalDeploymentDefinition) SetFileMounts(v []RegionalDeploymentFileMount) { +// SetFileMounts gets a reference to the given []FileMount and assigns it to the FileMounts field. +func (o *RegionalDeploymentDefinition) SetFileMounts(v []FileMount) { o.FileMounts = v } diff --git a/api/v1/koyeb/model_regional_deployment_file_mount.go b/api/v1/koyeb/model_regional_deployment_file_mount.go deleted file mode 100644 index 8a37c73..0000000 --- a/api/v1/koyeb/model_regional_deployment_file_mount.go +++ /dev/null @@ -1,259 +0,0 @@ -/* -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package koyeb - -import ( - "encoding/json" -) - -// RegionalDeploymentFileMount struct for RegionalDeploymentFileMount -type RegionalDeploymentFileMount struct { - Path *string `json:"path,omitempty"` - Permissions *string `json:"permissions,omitempty"` - InterpolationEnabled *bool `json:"interpolation_enabled,omitempty"` - Secret *RegionalDeploymentSecretSource `json:"secret,omitempty"` - Raw *RegionalDeploymentRawSource `json:"raw,omitempty"` -} - -// NewRegionalDeploymentFileMount instantiates a new RegionalDeploymentFileMount 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 NewRegionalDeploymentFileMount() *RegionalDeploymentFileMount { - this := RegionalDeploymentFileMount{} - return &this -} - -// NewRegionalDeploymentFileMountWithDefaults instantiates a new RegionalDeploymentFileMount 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 NewRegionalDeploymentFileMountWithDefaults() *RegionalDeploymentFileMount { - this := RegionalDeploymentFileMount{} - return &this -} - -// GetPath returns the Path field value if set, zero value otherwise. -func (o *RegionalDeploymentFileMount) GetPath() string { - if o == nil || isNil(o.Path) { - var ret string - return ret - } - return *o.Path -} - -// 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 *RegionalDeploymentFileMount) GetPathOk() (*string, bool) { - if o == nil || isNil(o.Path) { - return nil, false - } - return o.Path, true -} - -// HasPath returns a boolean if a field has been set. -func (o *RegionalDeploymentFileMount) HasPath() bool { - if o != nil && !isNil(o.Path) { - return true - } - - return false -} - -// SetPath gets a reference to the given string and assigns it to the Path field. -func (o *RegionalDeploymentFileMount) SetPath(v string) { - o.Path = &v -} - -// GetPermissions returns the Permissions field value if set, zero value otherwise. -func (o *RegionalDeploymentFileMount) GetPermissions() string { - if o == nil || isNil(o.Permissions) { - var ret string - return ret - } - return *o.Permissions -} - -// 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 *RegionalDeploymentFileMount) GetPermissionsOk() (*string, bool) { - if o == nil || isNil(o.Permissions) { - return nil, false - } - return o.Permissions, true -} - -// HasPermissions returns a boolean if a field has been set. -func (o *RegionalDeploymentFileMount) HasPermissions() bool { - if o != nil && !isNil(o.Permissions) { - return true - } - - return false -} - -// SetPermissions gets a reference to the given string and assigns it to the Permissions field. -func (o *RegionalDeploymentFileMount) SetPermissions(v string) { - o.Permissions = &v -} - -// GetInterpolationEnabled returns the InterpolationEnabled field value if set, zero value otherwise. -func (o *RegionalDeploymentFileMount) GetInterpolationEnabled() bool { - if o == nil || isNil(o.InterpolationEnabled) { - var ret bool - return ret - } - return *o.InterpolationEnabled -} - -// GetInterpolationEnabledOk returns a tuple with the InterpolationEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RegionalDeploymentFileMount) GetInterpolationEnabledOk() (*bool, bool) { - if o == nil || isNil(o.InterpolationEnabled) { - return nil, false - } - return o.InterpolationEnabled, true -} - -// HasInterpolationEnabled returns a boolean if a field has been set. -func (o *RegionalDeploymentFileMount) HasInterpolationEnabled() bool { - if o != nil && !isNil(o.InterpolationEnabled) { - return true - } - - return false -} - -// SetInterpolationEnabled gets a reference to the given bool and assigns it to the InterpolationEnabled field. -func (o *RegionalDeploymentFileMount) SetInterpolationEnabled(v bool) { - o.InterpolationEnabled = &v -} - -// GetSecret returns the Secret field value if set, zero value otherwise. -func (o *RegionalDeploymentFileMount) GetSecret() RegionalDeploymentSecretSource { - if o == nil || isNil(o.Secret) { - var ret RegionalDeploymentSecretSource - return ret - } - return *o.Secret -} - -// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RegionalDeploymentFileMount) GetSecretOk() (*RegionalDeploymentSecretSource, bool) { - if o == nil || isNil(o.Secret) { - return nil, false - } - return o.Secret, true -} - -// HasSecret returns a boolean if a field has been set. -func (o *RegionalDeploymentFileMount) HasSecret() bool { - if o != nil && !isNil(o.Secret) { - return true - } - - return false -} - -// SetSecret gets a reference to the given RegionalDeploymentSecretSource and assigns it to the Secret field. -func (o *RegionalDeploymentFileMount) SetSecret(v RegionalDeploymentSecretSource) { - o.Secret = &v -} - -// GetRaw returns the Raw field value if set, zero value otherwise. -func (o *RegionalDeploymentFileMount) GetRaw() RegionalDeploymentRawSource { - if o == nil || isNil(o.Raw) { - var ret RegionalDeploymentRawSource - return ret - } - return *o.Raw -} - -// GetRawOk returns a tuple with the Raw field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RegionalDeploymentFileMount) GetRawOk() (*RegionalDeploymentRawSource, bool) { - if o == nil || isNil(o.Raw) { - return nil, false - } - return o.Raw, true -} - -// HasRaw returns a boolean if a field has been set. -func (o *RegionalDeploymentFileMount) HasRaw() bool { - if o != nil && !isNil(o.Raw) { - return true - } - - return false -} - -// SetRaw gets a reference to the given RegionalDeploymentRawSource and assigns it to the Raw field. -func (o *RegionalDeploymentFileMount) SetRaw(v RegionalDeploymentRawSource) { - o.Raw = &v -} - -func (o RegionalDeploymentFileMount) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Path) { - toSerialize["path"] = o.Path - } - if !isNil(o.Permissions) { - toSerialize["permissions"] = o.Permissions - } - if !isNil(o.InterpolationEnabled) { - toSerialize["interpolation_enabled"] = o.InterpolationEnabled - } - if !isNil(o.Secret) { - toSerialize["secret"] = o.Secret - } - if !isNil(o.Raw) { - toSerialize["raw"] = o.Raw - } - return json.Marshal(toSerialize) -} - -type NullableRegionalDeploymentFileMount struct { - value *RegionalDeploymentFileMount - isSet bool -} - -func (v NullableRegionalDeploymentFileMount) Get() *RegionalDeploymentFileMount { - return v.value -} - -func (v *NullableRegionalDeploymentFileMount) Set(val *RegionalDeploymentFileMount) { - v.value = val - v.isSet = true -} - -func (v NullableRegionalDeploymentFileMount) IsSet() bool { - return v.isSet -} - -func (v *NullableRegionalDeploymentFileMount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegionalDeploymentFileMount(val *RegionalDeploymentFileMount) *NullableRegionalDeploymentFileMount { - return &NullableRegionalDeploymentFileMount{value: val, isSet: true} -} - -func (v NullableRegionalDeploymentFileMount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRegionalDeploymentFileMount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/api/v1/koyeb/model_regional_deployment_raw_source.go b/api/v1/koyeb/model_regional_deployment_raw_source.go deleted file mode 100644 index 69af9a1..0000000 --- a/api/v1/koyeb/model_regional_deployment_raw_source.go +++ /dev/null @@ -1,115 +0,0 @@ -/* -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package koyeb - -import ( - "encoding/json" -) - -// RegionalDeploymentRawSource struct for RegionalDeploymentRawSource -type RegionalDeploymentRawSource struct { - Content *string `json:"content,omitempty"` -} - -// NewRegionalDeploymentRawSource instantiates a new RegionalDeploymentRawSource 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 NewRegionalDeploymentRawSource() *RegionalDeploymentRawSource { - this := RegionalDeploymentRawSource{} - return &this -} - -// NewRegionalDeploymentRawSourceWithDefaults instantiates a new RegionalDeploymentRawSource 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 NewRegionalDeploymentRawSourceWithDefaults() *RegionalDeploymentRawSource { - this := RegionalDeploymentRawSource{} - return &this -} - -// GetContent returns the Content field value if set, zero value otherwise. -func (o *RegionalDeploymentRawSource) GetContent() string { - if o == nil || isNil(o.Content) { - var ret string - return ret - } - return *o.Content -} - -// 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 *RegionalDeploymentRawSource) GetContentOk() (*string, bool) { - if o == nil || isNil(o.Content) { - return nil, false - } - return o.Content, true -} - -// HasContent returns a boolean if a field has been set. -func (o *RegionalDeploymentRawSource) HasContent() bool { - if o != nil && !isNil(o.Content) { - return true - } - - return false -} - -// SetContent gets a reference to the given string and assigns it to the Content field. -func (o *RegionalDeploymentRawSource) SetContent(v string) { - o.Content = &v -} - -func (o RegionalDeploymentRawSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Content) { - toSerialize["content"] = o.Content - } - return json.Marshal(toSerialize) -} - -type NullableRegionalDeploymentRawSource struct { - value *RegionalDeploymentRawSource - isSet bool -} - -func (v NullableRegionalDeploymentRawSource) Get() *RegionalDeploymentRawSource { - return v.value -} - -func (v *NullableRegionalDeploymentRawSource) Set(val *RegionalDeploymentRawSource) { - v.value = val - v.isSet = true -} - -func (v NullableRegionalDeploymentRawSource) IsSet() bool { - return v.isSet -} - -func (v *NullableRegionalDeploymentRawSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegionalDeploymentRawSource(val *RegionalDeploymentRawSource) *NullableRegionalDeploymentRawSource { - return &NullableRegionalDeploymentRawSource{value: val, isSet: true} -} - -func (v NullableRegionalDeploymentRawSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRegionalDeploymentRawSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/api/v1/koyeb/model_regional_deployment_secret_source.go b/api/v1/koyeb/model_regional_deployment_secret_source.go deleted file mode 100644 index 5af8b3c..0000000 --- a/api/v1/koyeb/model_regional_deployment_secret_source.go +++ /dev/null @@ -1,115 +0,0 @@ -/* -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package koyeb - -import ( - "encoding/json" -) - -// RegionalDeploymentSecretSource struct for RegionalDeploymentSecretSource -type RegionalDeploymentSecretSource struct { - Name *string `json:"name,omitempty"` -} - -// NewRegionalDeploymentSecretSource instantiates a new RegionalDeploymentSecretSource 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 NewRegionalDeploymentSecretSource() *RegionalDeploymentSecretSource { - this := RegionalDeploymentSecretSource{} - return &this -} - -// NewRegionalDeploymentSecretSourceWithDefaults instantiates a new RegionalDeploymentSecretSource 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 NewRegionalDeploymentSecretSourceWithDefaults() *RegionalDeploymentSecretSource { - this := RegionalDeploymentSecretSource{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *RegionalDeploymentSecretSource) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RegionalDeploymentSecretSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *RegionalDeploymentSecretSource) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *RegionalDeploymentSecretSource) SetName(v string) { - o.Name = &v -} - -func (o RegionalDeploymentSecretSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - return json.Marshal(toSerialize) -} - -type NullableRegionalDeploymentSecretSource struct { - value *RegionalDeploymentSecretSource - isSet bool -} - -func (v NullableRegionalDeploymentSecretSource) Get() *RegionalDeploymentSecretSource { - return v.value -} - -func (v *NullableRegionalDeploymentSecretSource) Set(val *RegionalDeploymentSecretSource) { - v.value = val - v.isSet = true -} - -func (v NullableRegionalDeploymentSecretSource) IsSet() bool { - return v.isSet -} - -func (v *NullableRegionalDeploymentSecretSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegionalDeploymentSecretSource(val *RegionalDeploymentSecretSource) *NullableRegionalDeploymentSecretSource { - return &NullableRegionalDeploymentSecretSource{value: val, isSet: true} -} - -func (v NullableRegionalDeploymentSecretSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRegionalDeploymentSecretSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/api/v1/koyeb/model_secret_source.go b/api/v1/koyeb/model_secret_source.go deleted file mode 100644 index 5c2ac6a..0000000 --- a/api/v1/koyeb/model_secret_source.go +++ /dev/null @@ -1,115 +0,0 @@ -/* -Koyeb Rest API - -The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package koyeb - -import ( - "encoding/json" -) - -// SecretSource struct for SecretSource -type SecretSource struct { - Name *string `json:"name,omitempty"` -} - -// NewSecretSource instantiates a new SecretSource 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 NewSecretSource() *SecretSource { - this := SecretSource{} - return &this -} - -// NewSecretSourceWithDefaults instantiates a new SecretSource 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 NewSecretSourceWithDefaults() *SecretSource { - this := SecretSource{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SecretSource) GetName() string { - if o == nil || isNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SecretSource) GetNameOk() (*string, bool) { - if o == nil || isNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *SecretSource) HasName() bool { - if o != nil && !isNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SecretSource) SetName(v string) { - o.Name = &v -} - -func (o SecretSource) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if !isNil(o.Name) { - toSerialize["name"] = o.Name - } - return json.Marshal(toSerialize) -} - -type NullableSecretSource struct { - value *SecretSource - isSet bool -} - -func (v NullableSecretSource) Get() *SecretSource { - return v.value -} - -func (v *NullableSecretSource) Set(val *SecretSource) { - v.value = val - v.isSet = true -} - -func (v NullableSecretSource) IsSet() bool { - return v.isSet -} - -func (v *NullableSecretSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSecretSource(val *SecretSource) *NullableSecretSource { - return &NullableSecretSource{value: val, isSet: true} -} - -func (v NullableSecretSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSecretSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/api/v1/koyeb/openapi.json b/api/v1/koyeb/openapi.json index 1280b7a..53a634f 100644 --- a/api/v1/koyeb/openapi.json +++ b/api/v1/koyeb/openapi.json @@ -13669,7 +13669,7 @@ "file_mounts": { "type": "array", "items": { - "$ref": "#/definitions/DeploymentFileMount" + "$ref": "#/definitions/FileMount" } }, "skip_cache": { @@ -13719,29 +13719,6 @@ } } }, - "DeploymentFileMount": { - "type": "object", - "properties": { - "path": { - "type": "string", - "title": "the path where the file is mounted to" - }, - "permissions": { - "type": "string", - "title": "the content of the file" - }, - "interpolation_enabled": { - "type": "boolean", - "title": "interpolation_enabled is a flag to enable/disable interpolation in the file content" - }, - "secret": { - "$ref": "#/definitions/SecretSource" - }, - "raw": { - "$ref": "#/definitions/RawSource" - } - } - }, "DeploymentHealthCheck": { "type": "object", "properties": { @@ -14263,6 +14240,24 @@ } } }, + "FileMount": { + "type": "object", + "properties": { + "path": { + "type": "string", + "title": "the path where the file is mounted to" + }, + "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" + }, + "content": { + "type": "string", + "title": "the content of the file" + } + } + }, "GetServiceReply": { "type": "object", "properties": { @@ -14482,15 +14477,6 @@ "PauseServiceReply": { "type": "object" }, - "RawSource": { - "type": "object", - "properties": { - "content": { - "type": "string", - "title": "the content of the file" - } - } - }, "RedeployReply": { "type": "object", "properties": { @@ -14521,15 +14507,6 @@ "ResumeServiceReply": { "type": "object" }, - "SecretSource": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "the id of the secret" - } - } - }, "Service": { "type": "object", "properties": { @@ -15971,7 +15948,7 @@ "file_mounts": { "type": "array", "items": { - "$ref": "#/definitions/RegionalDeploymentFileMount" + "$ref": "#/definitions/FileMount" } }, "skip_cache": { @@ -16024,28 +16001,6 @@ } } }, - "RegionalDeploymentFileMount": { - "type": "object", - "properties": { - "path": { - "type": "string", - "title": "the path where the file is mounted to" - }, - "permissions": { - "type": "string", - "title": "the content of the file" - }, - "interpolation_enabled": { - "type": "boolean" - }, - "secret": { - "$ref": "#/definitions/RegionalDeploymentSecretSource" - }, - "raw": { - "$ref": "#/definitions/RegionalDeploymentRawSource" - } - } - }, "RegionalDeploymentListItem": { "type": "object", "properties": { @@ -16080,24 +16035,6 @@ "RegionalDeploymentMetadata": { "type": "object" }, - "RegionalDeploymentRawSource": { - "type": "object", - "properties": { - "content": { - "type": "string", - "title": "the content of the file" - } - } - }, - "RegionalDeploymentSecretSource": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "the id of the secret" - } - } - }, "RegionalDeploymentVolume": { "type": "object", "properties": {